Ubuntu – Install Puppet Agent

  1. Download the Puppet Labs package
    user puppet-agent:# cd ~; wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb
    
  2. Install the Puppet Labs package
    user puppet-agent:# sudo dpkg -i puppetlabs-release-trusty.deb
    
  3. Update apt’s available packages
    user puppet-agent:# sudo apt-get update
    
  4. Install the Puppet Agent package
    user puppet-agent:# sudo apt-get install puppet
    
  5. Modify puppet default file.
    user puppet-agent:# sudo vi /etc/default/puppet
    
    1. Enable the Puppet Agent by changing START from “no” to “yes”
      START=yes
      
  6. Modify puppet.conf
    user puppet-agent:# sudo vi /etc/puppet/puppet.conf
    
    1. Delete the templatedir line and the [master] section from puppet.conf
      sudo vi /etc/puppet/puppet.conf
      
    2. Tell your agent where it’s master is. This step is not required if your master is called puppet, but this will only happen wiht micro networks.
      [agent]
      server = puppet-master.my.lan
      
  7. Start the puppet agent
    user puppet-agent:# sudo service puppet start
    
  8. Now goto your puppet master so you can accept the cert of the new client.
    root puppet-master:# puppet cert list
    "puppet-agent" (SHA256) XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
    
    root puppet-master:# puppet cert sign puppet-agent
    Notice: Signed certificate request for puppet-agent
    Notice: Removing file Puppet::SSL::CertificateRequest puppet-agent at '/var/lib/puppet/ssl/ca/requests/puppet-agent.pem'
    

Source