[Puppet Users] Re: How does puppet copy files?
On Nov 11, 9:46 pm, Peter Meier wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > When agent notices that master.passwd should be refreshed, how > > exactly does copy process happen? Is it atomic (e.g. fetch to some > > temp filename on local filesystem and then rename)? > > it does it this way. > Okay, thanks. Imagine now that I want to update several config files related to each other. It would be error to update some of them and leave others in older state. So I want either all of them to be refreshed, or, if disk is full, to keep all them untouched. How can I accomplish this? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: How does puppet copy files?
On Nov 13, 4:59 am, Dmitry wrote: > On Nov 11, 9:46 pm, Peter Meier wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > When agent notices that master.passwd should be refreshed, how > > > exactly does copy process happen? Is it atomic (e.g. fetch to some > > > temp filename on local filesystem and then rename)? > > > it does it this way. > > Okay, thanks. > > Imagine now that I want to update several config files related to each > other. > It would be error to update some of them and leave others in older > state. > So I want either all of them to be refreshed, or, if disk is full, to > keep all them untouched. > > How can I accomplish this? If you want to manage multiple files as a group then one of your better options is to package them up in an .rpm, .deb, or whatever other flavor of package your system prefers. This works best if the files change rarely and are not customized on a per-machine basis, but in principle it could be done dynamically. If a full disk is a significant concern, however, and not just an example, then please do recognize that the package approach has more overhead on the client than some alternatives. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Re: How does puppet copy files?
On Sun, Nov 13, 2011 at 02:59:45AM -0800, Dmitry wrote: > > > On Nov 11, 9:46 pm, Peter Meier wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > > When agent notices that master.passwd should be refreshed, how > > > exactly does copy process happen? Is it atomic (e.g. fetch to some > > > temp filename on local filesystem and then rename)? > > > > it does it this way. > > > > Okay, thanks. > > Imagine now that I want to update several config files related to each > other. > It would be error to update some of them and leave others in older > state. > So I want either all of them to be refreshed, or, if disk is full, to > keep all them untouched. > > How can I accomplish this? Have an exec or custom function checking for a full disk, with the file refreshes depending on that exec. On the other hand, you should already be monitoring for full or filling disks, and have alerting or remediative action available. > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.