|
Verified with puppet-agent-0.3.2.90.gc5e3bb3-1 on RHEL 7.
Install Puppet server
Add `puppet` alias to master in /etc/hosts
Install and start puppetserver on master node
curl -O http://builds.puppetlabs.lan/puppet-agent/c5e3bb3384ba87507711dd2a2d70102e185388e5/artifacts/el/7/products/x86_64/puppet-agent-0.3.2.90.gc5e3bb-1.el7.x86_64.rpm
|
curl -O http://nightlies.puppetlabs.com/puppetserver/2.0.0.SNAPSHOT.2015.02.25T1428/repos/el/7/products/x86_64/puppetserver-2.0.0.SNAPSHOT.2015.02.25T1428-1.el7.noarch.rpm
|
rpm -ivh puppet-agent-0.3.2.90.gc5e3bb3-1.el7.x86_64.rpm
|
yum -y install java-1.7.0-openjdk
|
yum -y install net-tools
|
rpm -ivh puppetserver-2.0.0.SNAPSHOT.2015.02.25T1428-1.el7.noarch.rpm
|
systemctl enable puppetserver
|
systemctl restart puppetserver
|
Install puppet-agent
Add `puppet` alias to master in /etc/hosts file on agent node
Install puppet-agent on agent node
curl -O http://builds.puppetlabs.lan/puppet-agent/c5e3bb3384ba87507711dd2a2d70102e185388e5/artifacts/el/7/products/x86_64/puppet-agent-0.3.2.90.gc5e3bb3-1.el7.x86_64.rpm
|
rpm -ivh puppet-agent-0.3.2.90.gc5e3bb3-1.el7.x86_64.rpm
|
Start daemonized agent
/opt/puppetlabs/puppet/bin/puppet agent --daemonize
|
Sign cert
Sign agent node cert on master
/opt/puppetlabs/puppet/bin/puppet cert sign --all
|
Watch server log
Tail puppetserver log on master node to see interaction with agent node
tail -f /var/log/puppetlabs/puppetserver/puppetserver.log
|
Send USR1 signal
Send USR1 signal to daemonized puppet agent process on agent node
# ps ax | grep puppet
|
2155 ? Ssl 0:06 /opt/puppetlabs/puppet/bin/ruby /opt/puppetlabs/puppet/bin/puppet agent --daemonize
|
8989 pts/0 S+ 0:00 grep --color=auto puppet
|
# kill -USR1 2155
|
Verify agent communication with master
From the puppetserver log output showing the agent run after sending the USR1 signal to the agent.
2015-02-26 18:39:02,087 INFO [puppet-server] Puppet Caching node for qaqut9ulfivby6x.delivery.puppetlabs.net
|
2015-02-26 18:39:02,238 INFO [puppet-server] Puppet Could not find filesystem info for file 'pluginfacts' in environment production
|
2015-02-26 18:39:02,239 INFO [puppet-server] Puppet Not Found: Could not find instances in file_metadata with 'pluginfacts'
|
2015-02-26 18:39:02,268 INFO [puppet-server] Puppet Not Found: Could not find file_metadata pluginfacts
|
2015-02-26 18:39:02,296 INFO [puppet-server] Puppet Could not find filesystem info for file 'plugins' in environment production
|
2015-02-26 18:39:02,296 INFO [puppet-server] Puppet Not Found: Could not find instances in file_metadata with 'plugins'
|
2015-02-26 18:39:02,318 INFO [puppet-server] Puppet Not Found: Could not find file_metadata plugins
|
2015-02-26 18:39:02,894 INFO [puppet-server] Puppet Caching node for qaqut9ulfivby6x.delivery.puppetlabs.net
|
2015-02-26 18:39:03,385 INFO [puppet-server] Puppet Compiled catalog for qaqut9ulfivby6x.delivery.puppetlabs.net in environment production in 0.43 seconds
|
|