Este conteúdo não está disponível no idioma selecionado.
Chapter 8. Assigning a Puppet Class to an Individual Host
Procedure
- In the Satellite web UI, navigate to Hosts > All hosts.
-
Click on the Edit button of the host you want to add the
ntpPuppet class to. - Select the Puppet ENC tab and look for the ntp class.
-
Click the + symbol next to
ntpto add the ntp submodule to the list of included classes. Click the Submit button at the bottom to save your changes.
TipIf the Puppet classes tab of an individual host is empty, check if it is assigned to the proper Puppet environment.
Verify the Puppet configuration.
- Navigate to Hosts > All Hosts and select the host.
- From the top overflow menu, select Legacy UI.
Under Details, click the Puppet YAML button. This produces output similar as follows:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verify the ntp configuration.
Connect to your host using SSH and check the content of
/etc/ntp.conf.This example assumes your host is running CentOS 7. Other operating systems may store the ntp config file in a different path.
TipYou may need to run the Puppet agent on your host by executing the following command:
puppet agent -t
# puppet agent -tCopy to Clipboard Copied! Toggle word wrap Toggle overflow Running the following command on the host checks which ntp servers are used for clock synchronization:
cat /etc/ntp.conf
# cat /etc/ntp.confCopy to Clipboard Copied! Toggle word wrap Toggle overflow This returns output similar as follows:
ntp.conf: Managed by puppet.
# ntp.conf: Managed by puppet. server 0.de.pool.ntp.org server 1.de.pool.ntp.org server 2.de.pool.ntp.org server 3.de.pool.ntp.orgCopy to Clipboard Copied! Toggle word wrap Toggle overflow
You now have a working ntp module which you can add to a host or group of hosts to roll out your ntp configuration automatically.