Difference between revisions of "Puppet"

From Levy

m
m
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
When installation is complete edit your <tt>/etc/puppetlabs/puppet/puppet.conf</tt> en add at least the following:
When installation is complete edit your <tt>/etc/puppetlabs/puppet/puppet.conf</tt> en add at least the following:
  [agent]
  [agent]
  server = \<your puppet master\>
  server = <your puppet master>
  runinterval = 30m
  runinterval = 30m


Line 25: Line 25:
  systemctl start puppet
  systemctl start puppet
  systemctl enable puppet
  systemctl enable puppet
[[Category:Linux]] [[Category:OpenSuSE]]

Latest revision as of 09:05, 14 July 2020

This page gives guidelines on how to get your own puppet installation up and running.

Installation of the puppet master

For the puppet master I've chosen to run it on Debian. This is by far the easiest as running it on OpenSuSE would require to build it from source. For the installation follow the instructions here. This will install puppet 5.

Client installation and configuration on SuSE

To install the puppet client on SuSE, first we need to add the puppet repository:

zypper addrepo https://yum.puppetlabs.com/puppet5/sles/15/x86_64/ Puppet
zypper refresh

And then you can install the puppet agent:

zypper install puppet-agent

During installation you may get this warning:

puppet-agent-5.5.20-1.sles15.x86_64 (Puppet): Signature verification failed [4-Signatures public key is not available]

If so, choose i to ignore.

When installation is complete edit your /etc/puppetlabs/puppet/puppet.conf en add at least the following:

[agent]
server = <your puppet master>
runinterval = 30m

The server parameter tells your client what server to use, and the runinterval tells it to run every 30 minutes.

Now start and enable the puppet client:

systemctl start puppet
systemctl enable puppet