Adding a node to Foreman/Puppet

  1. Install agent following Puppetlabs howto
  2. Add the line server = foreman.rmlab to the "agent" section of puppet agent conf file (/etc/puppet/puppet.conf)
  3. Run puppet agent --test
  4. If the host domain is different from ".rmlab" you have to accept the connection to the puppet master: go to Foreman Web UI → Infrastructure → Smart Proxy → Certificates and enable agent hostname
  5. Assign node from Foreman Web UI to an host group or config group
  6. Run puppet agent --test to apply first configuration