You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
1.0 KiB
13 lines
1.0 KiB
|
|
## this adds a default cron to apply 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/00_puppet.pp 2>&1 &> /tmp/puppet-apply-reboot-priority.log && /opt/puppetlabs/bin/puppet apply /var/lib/puppet/manifests/puppet-common 2>&1 &> /tmp/puppet-apply-reboot.log' > /var/spool/cron/root
|
|
echo '@reboot /opt/puppetlabs/bin/puppet apply /var/lib/puppet/manifests/puppet-common/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
|
|
|