이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 9. Enforcing Puppet configuration on hosts
You can enforce configuration from Satellite either manually on demand (run once) or automatically in configurable intervals.
9.1. Running Puppet once using SSH 링크 복사링크가 클립보드에 복사되었습니다!
Assign the proper job template to the Run Puppet Once feature to run Puppet on hosts.
Procedure
- In the Satellite web UI, navigate to Administer > Remote Execution Features.
-
Select the
puppet_run_hostremote execution feature. -
Assign the
Run Puppet Once – SSH Defaultjob template.
Run Puppet on hosts by running a job and selecting category Puppet and template Run Puppet Once - SSH Default. Alternatively, click Run Puppet Once in the Schedule Remote Job drop down menu on the host details page.
9.2. Understanding intervals of automatic enforcement 링크 복사링크가 클립보드에 복사되었습니다!
Satellite considers hosts to be out of sync if the last Puppet report is older than the combined values of outofsync_interval and puppet_interval set in minutes. By default, the Puppet agent on your hosts runs every 30 minutes, the puppet_interval is set to 35 minutes and the global outofsync_interval is set to 30 minutes.
The effective time after which hosts are considered out of sync is the sum of outofsync_interval and puppet_interval. For example, setting the global outofsync_interval to 30 and the puppet_interval to 60 results in a total of 90 minutes after which the host status changes to out of sync.
9.3. Setting the Puppet agent run interval on a host 링크 복사링크가 클립보드에 복사되었습니다!
Set the interval when the Puppet agent runs and sends reports to Satellite.
Procedure
- Connect to your host using SSH.
-
Add the Puppet agent run interval to
/etc/puppetlabs/puppet/puppet.conf, for exampleruninterval = 1h.
9.4. Setting the global out-of-sync interval 링크 복사링크가 클립보드에 복사되었습니다!
Procedure
- In the Satellite web UI, navigate to Administer > Settings.
On the General tab, edit Out of sync interval. Set a duration, in minutes, after which hosts are considered to be out of sync.
You can also override this interval on host groups or individual hosts by adding the
outofsync_intervalparameter.
9.5. Setting the Puppet out-of-sync interval 링크 복사링크가 클립보드에 복사되었습니다!
Procedure
- In the Satellite web UI, navigate to Administer > Settings, and click the Config Management tab.
- In the Puppet interval field, set the value to the duration, in minutes, after which hosts reporting using Puppet are considered to be out of sync.
9.6. Overriding out-of-sync interval for a host group 링크 복사링크가 클립보드에 복사되었습니다!
Procedure
- In the Satellite web UI, navigate to Configure > Host Groups.
- Select a host group.
- On the Parameters tab, click Add Parameter.
-
In the Name field, enter
outofsync_interval. -
From the Type dropdown menu, select
integer. - In the Value field, enter the new interval in minutes.
- Click Submit.
9.7. Overriding out-of-sync interval for an individual host 링크 복사링크가 클립보드에 복사되었습니다!
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Click Edit for a selected host.
- On the Parameters tab, click Add Parameter.
-
In the Name field, enter
outofsync_interval. -
From the Type dropdown menu, select
integer. - In the Value field, enter the new interval in minutes.
- Click Submit.