Release packages configure your system to download and install appropriate versions of the puppetserverand puppet-agent packages. These packages are grouped into a Puppet Collection repository comprised of compatible versions of Puppet tools.
To enable the repository:
puppetlabs-release-<CODE NAME>.deb. (For Ubuntu releases, the code name is the adjective, not the animal.)dpkg -i <PACKAGE NAME>.apt-get update to get the new list of available packages.For example, to enable the repository for Debian Jessie :
wget https://apt.puppetlabs.com/puppetlabs-release-pc1-jessie.debdpkg -i puppetlabs-release-jessie.debapt-get updateBy doing this the sources list have been modified to this :
root@gitlab2-public:~ cat /etc/apt/sources.list.d/puppetlabs.list# Puppetlabs PC1 jessie Repositorydeb http://apt.puppetlabs.com jessie PC1The new location for Puppet’s executables is /opt/puppetlabs/bin/, which is not in your PATHenvironment variable by default.
This doesn’t matter for Puppet services — for instance, service puppet start works regardless of the PATH — but if you’re running interactive puppet commands, you must either add their location to your PATH or execute them using their full path.
To quickly add this location to your PATH for your current terminal session, use the command export PATH=/opt/puppetlabs/bin:$PATH. You can also add this location wherever you configure your PATH, such
On your Puppet agent nodes, run sudo apt-get install puppet-agent.
Do not start the puppet service yet.
To start the Puppet service, run sudo /opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true.
Configure the puppet.conf file with the server information :
root@gitlab2-public:~ vim /etc/puppetlabs/puppet/puppet.conf# This file can be used to override the default puppet settings.# See the following links for more details on what settings are available:# - https://docs.puppetlabs.com/puppet/latest/reference/config_important_settings.html# - https://docs.puppetlabs.com/puppet/latest/reference/config_about_settings.html# - https://docs.puppetlabs.com/puppet/latest/reference/config_file_main.html# - https://docs.puppetlabs.com/puppet/latest/reference/configuration.html[main]certname = gitlab2-public.YOURDOMAIN.lanserver = cos-foreman-pa.YOURDOMAIN.lanenvironment = Productionruninterval = 30mTo manually launch and watch a Puppet run, run sudo /opt/puppetlabs/bin/puppet agent --test or puppet agent --test
root@gitlab2-public:~ puppet agent --testInfo: Caching certificate for caInfo: csr_attributes file loading from /etc/puppetlabs/puppet/csr_attributes.yamlInfo: Creating a new SSL certificate request for gitlab2-public.YOURDOMAIN.lanInfo: Certificate Request fingerprint (SHA256): D5:20:AA:7F:29:25:26:B1:02:A8:39:7B:36:F3:73:ED:5F:A7:44:88:63:C8:F8:7B:31:49:58:7C:2E:74:CB:67Info: Caching certificate for caExiting; no certificate found and waitforcert is disabled