Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

puppet agent is not reflecting my changes

I have installed puppet enterprise 3.7.2 on centos 7.Both Puppet master and agent is working .I can able to view the node from puppet enterprise console and attached screen shot.

enter image description here

I created the manifest file /etc/puppetlabs/puppet/manifests/node.pp with the following content on puppet server.

node 'puppet.client.net' {
  file { '/tmp/hello':
    content => "Hello, world\n",
  }
}

After I executed the following command on master:

 #puppet agent apply  nodes.pp

And then Executed the following command on client node :

#puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for puppet.client.net
Info: Applying configuration version '1424179235'
Notice: Finished catalog run in 2.12 seconds

Puppet node does not pick any changes from master.

like image 385
Nataraj Avatar asked Nov 29 '25 13:11

Nataraj


1 Answers

The master will typically try and find manifests in site.pp, not nodes.pp, as that is the default setting for manifest in puppet.conf.

Try setting

manifest=/etc/puppetlabs/puppet/manifests

or better yet, use directory environments from the start.

like image 78
Felix Frank Avatar answered Dec 02 '25 04:12

Felix Frank