1 changed files with 11 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||||
|
## this adds a default cron to apply ALBERTS puppet configs upon reboot |
||||
|
|
||||
|
mkdir -p /var/spool/cron |
||||
|
## -- seems you can't apply all manifests, need to be eased in gradually. |
||||
|
#echo "@reboot /opt/puppetlabs/bin/puppet apply /var/lib/puppet/manifests &> /tmp/puppet-apply-reboot-priority.log" > /var/spool/cron/root |
||||
|
|
||||
|
## -- apply 00_puppet first, then all of puppet-common. |
||||
|
## -- after that the 15-min cronjob will apply ALL manifests |
||||
|
echo '@reboot /opt/puppetlabs/bin/puppet apply /var/lib/puppet/manifests/puppet-common-albert/00_puppet.pp 2>&1 1>/tmp/puppet-reboot-00puppet.log && /opt/puppetlabs/bin/puppet apply /var/lib/puppet/manifests/puppet-common 2>&1 1>/tmp/puppet-reboot-01common.log ' > /var/spool/cron/root |
||||
|
|
||||
|
## need to leave a space at the end |
Loading…
Reference in new issue