Monty Taylor 527eddbb77 Add upstart script to update puppet on boot.
Change-Id: I42e45aac4aae9abf2ace051d53112ae6b0d8d0a9
2012-05-22 13:40:59 -04:00

14 lines
433 B
Plaintext

author "Monty Taylor <mordred@inaugust.com>"
description "Applying puppet config on boot"
start on runlevel[2345]
script
cd /root/openstack-ci-puppet/modules
/usr/bin/git pull --ff-only
echo "Running puppet on boot" >> /var/log/manifest.log
date >> /var/log/manifest.log
/usr/bin/puppet apply --modulepath=/root/openstack-ci-puppet/modules -l /var/log/manifest.log /root/openstack-ci-puppet/manifests/site.pp
end script