Hi everyone quick question,
Im trying to update some files in my one of my modules/nginx/files based on
a file located in some remote repo. My nginx module is distributing a HTML
file to all managed nodes, and I need to make sure this HTML file is the
latest commit from the remote repo. Im pulling this HTML file from Git
remote into my nginx/files/repo folder, and from there, serving the HTML
file to my managed nodes.
I installed the vcsrepo module on my PE master but trying to decide a good
way to schedule a periodic pull from the remote repo to my nginx/files
directory.
I have a pull_repo.pp
vcsrepo {
'/etc/puppetlabs/code/environments/production/modules/nginx/files/repo':
ensure => latest,
provider => git,
source => 'https://github.com/puppetlabs/exercise-webpage.git',
revision => 'master',
force => true,
}
This works and pulls in the freshest HTML file each time. Whats a good way
of scheduling this to run on my PE master? Should I setup a regular cron
job 'crontab -e' and have it do 'puppet apply pull_repo.pp' or is there a
more recomended method to run something scheduled on PE master?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/357d8208-08b8-4a24-85da-eba24f27a246%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.