Este conteúdo não está disponível no idioma selecionado.

Chapter 8. Assigning a Puppet Class to an Individual Host


Procedure

  1. In the Satellite web UI, navigate to Hosts > All hosts.
  2. Click on the Edit button of the host you want to add the ntp Puppet class to.
  3. Select the Puppet ENC tab and look for the ntp class.
  4. Click the + symbol next to ntp to add the ntp submodule to the list of included classes.
  5. Click the Submit button at the bottom to save your changes.

    Tip

    If the Puppet classes tab of an individual host is empty, check if it is assigned to the proper Puppet environment.

  6. Verify the Puppet configuration.

    1. Navigate to Hosts > All Hosts and select the host.
    2. From the top overflow menu, select Legacy UI.
    3. Under Details, click the Puppet YAML button. This produces output similar as follows:

      ---
      parameters:
        // shortened YAML output
      classes:
        ntp:
          servers: '["0.de.pool.ntp.org","1.de.pool.ntp.org","2.de.pool.ntp.org","3.de.pool.ntp.org"]'
      environment: production
      ...
      Copy to Clipboard Toggle word wrap
  7. 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.

    Tip

    You may need to run the Puppet agent on your host by executing the following command:

    # puppet agent -t
    Copy to Clipboard Toggle word wrap
  8. Running the following command on the host checks which ntp servers are used for clock synchronization:

    # cat /etc/ntp.conf
    Copy to Clipboard Toggle word wrap

    This returns output similar as follows:

    # 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.org
    Copy to Clipboard Toggle word wrap

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.

Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat