Hello! Imagine that I have the following in my puppet manifest: file { ''/etc/master.passwd'': mode => 0600, source => ''puppet:///modules/test/etc/master.passwd'', } 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)? Or it will fetch the file over the net to the destination name (and so there is some short period of time when target file is in inconsistent state)? Thanks! -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
-----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. ~pete -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk69X4QACgkQbwltcAfKi3/UlACfWrlwrdCCg+9tjjRQJ31iNLvg OyUAn3FONkQR1aDxYtwlS2Xphb9PneaV =4KAu -----END PGP SIGNATURE----- -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Nov 11, 9:46 pm, Peter Meier <peter.me...@immerda.ch> 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Sun, Nov 13, 2011 at 02:59:45AM -0800, Dmitry wrote:> > > On Nov 11, 9:46 pm, Peter Meier <peter.me...@immerda.ch> 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+unsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Nov 13, 4:59 am, Dmitry <trtrmi...@gmail.com> wrote:> On Nov 11, 9:46 pm, Peter Meier <peter.me...@immerda.ch> 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.