progetti:cloud-areapd:best_practices:config_puppetrun
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| progetti:cloud-areapd:best_practices:config_puppetrun [2014/01/24 23:13] – aiftim@infn.it | progetti:cloud-areapd:best_practices:config_puppetrun [2014/01/29 19:29] (current) – [Reference] aiftim@infn.it | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Configure Host " | ||
| + | |||
| + | ===== Reference ===== | ||
| + | * [[http:// | ||
| + | |||
| + | ===== Configuration Log ===== | ||
| + | |||
| + | ==== on client node ==== | ||
| + | |||
| + | * modify puppet.conf < | ||
| + | [root@cld-ganglia ~]# egrep -v ' | ||
| + | [main] | ||
| + | vardir = / | ||
| + | logdir = / | ||
| + | rundir = / | ||
| + | ssldir = $vardir/ssl | ||
| + | listen | ||
| + | [agent] | ||
| + | pluginsync | ||
| + | report | ||
| + | ignoreschedules = true | ||
| + | daemon | ||
| + | ca_server | ||
| + | certname | ||
| + | environment | ||
| + | server | ||
| + | </ | ||
| + | * modify auth.conf: < | ||
| + | [root@cld-ganglia ~]# tail -11 / | ||
| + | # added to enable puppetrun | ||
| + | path /run | ||
| + | auth any | ||
| + | method save | ||
| + | allow cld-foreman.cloud.pd.infn.it | ||
| + | |||
| + | # this one is not stricly necessary, but it has the merit | ||
| + | # to show the default policy which is deny everything else | ||
| + | path / | ||
| + | auth any | ||
| + | </ | ||
| + | |||
| + | ==== on foreman node ==== | ||
| + | |||
| + | * in foreman settings (More --> Settings --> " | ||
| + | * enable foreman-proxy in sudoers: < | ||
| + | [root@cld-foreman ~]# grep foreman / | ||
| + | ## Allow foreman-proxy to do puppetrun | ||
| + | Defaults: | ||
| + | foreman-proxy ALL = NOPASSWD: / | ||
| + | </ | ||
| + | |||
