Browse Source

Not using the common one until we sort NFT

master
dave 2 years ago
parent
commit
d3121ff62e
  1. 11
      albert/newcron.cfg

11
albert/newcron.cfg

@ -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…
Cancel
Save