Installing and configuring the Puppet agent
Unlike Ansible, Puppet requires an agent to be able to enforce configurations. This recipe will teach you how to install and configure the puppet agent on a system. The only way to mass deploy the Puppet agent is through an orchestration tool (such as Ansible).
How to do it…
The Puppet agent can be installed and maintained using the same repository as the Puppet server: the Puppet Labs repository. Perform the following steps:
Download the Puppet Labs repository installer via the following command:
~]# curl -Lo /tmp/puppetlabs-release-el-7.noarch.rpm https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
Install the Puppet Labs repository by executing the following command:
~]# yum install -y /tmp/puppetlabs-release-el-7.noarch.rpm
Use the following command to download the EPEL repository installer:
~]# curl -Lo /tmp/epel-release-latest-7.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Now, install the
rpm
EPEL...