Search code examples
puppet

puppet apply is working but puppet agent --test is not working?


I wrote a simple manifest test.pp

node'c-d'{ user{'abc': ensure=>absent, }

notify{'Notifying to client':}

}

But when i am trying to run it on agent node, its configuration is not getting applied , output is as under. Node c-d

[output] Info: Retrieving plugin Info: Caching catalog for <c-d.domain.com> Info: Applying configuration version '1420702685' Notice: Finished catalog run in 0.03 seconds

Note: puppetmaster and agent version is 3.4.3


Solution

  • The master uses the central manifest as configured, see

    puppet master --configprint manifest
    

    This file will be used and searched for node definitions.

    Specifically you cannot

    1. Use just any arbitrary name and location for your manifest nor
    2. Put the manifest onto the agent machine (which would be the way to use puppet apply).