You could create a puppet module and clone the repo into a subirectory of the files-dir of that module. Then you create a cronjob(on the puppet master) that pulls the repo every n minutes. Then you can use this file now in a puppet manifest. But I would highly recommend to add some kind of automated testing(like some continous integration environment) before pulling so you don't pull bad/broken files.
On Friday, May 24, 2013 10:12:22 AM UTC+2, dusan.d...@clavistechnology.com wrote: > > Hi, > > I want to manage some configuration files (let's say my.cnf) using Puppet. > I want to keep that file in some version control repository and developers > will have access to it. Once they change it, Puppet should pull it, put it > in place on server and restart service. > > Is there any general guide what is the best practice how to achieve this ? > > Thanks... > -- 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 puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.