In my last post, we installed the Puppet Enterprise 2017.3 Server. In this post we will go through the process of installing Puppet Agents that puppet will manage for us.
When we installed our Puppet Enterprise server, it also installed a package repository that allows agents to get the latest Puppet Enterprise Agent package directly from the Puppet Server. This makes installing our agents a snap.
The first thing we need to do is update our OS.
# apt update && apt upgrade -y # reboot
Use the curl command to run the installation script from our Puppet Server:
# curl -k https://<MASTER HOSTNAME>:8140/packages/current/install.bash | sudo bash
Once that completes, we need to go to the Puppet Console on the Master and sign the certificate request that was just submitted. Login to your Puppet console using the username ‘admin’ and the password you configured during installation.
After you login to the Puppet Console, you will notice that there is a ‘1’ next to Unsigned certs in the menu on the left:
Click on Unsigned certs to veiw the unsigned certificates. You will see our newly installed agent listed:
Click on Accept. You will then see Accepted. Your new agent is now installed and ready to run puppet.
SSH to your agent node and run puppet as root.
$ sudo su - # /opt/puppetlabs/bin/puppet agent --test Info: Using configured environment 'production' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Info: Caching catalog for agent.admintome.local Info: Applying configuration version '1514830704' Notice: Applied catalog in 0.29 seconds
After you run puppet, you will be able to see the node in the Puppet Console under Nodes:
There you go, we now have our little Puppet Enterprise 2017.3 environment configured.Tags: puppet