Re: [Puppet Users] How does puppet copy files?

2011-11-11 Thread Peter Meier
-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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] How does puppet copy files?

2011-11-11 Thread Dmitry
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.