Using 'replace => false' should not trigger a checksum operation but given
the time it takes with big files I think it does.
Does it make sense to perform checksum when 'replace' is set to false?
* exec { 'wget -O - http://repo01.demo.lan/coreos/coreos_qemu.img.bz2 |
bzcat > /root/coreos/core01/core01.img':*
* path => '/usr/bin',*
* creates => '/root/coreos/core01/core01.img',*
* }*
* file { [ '/root/coreos/core02/core02.img',*
* '/root/coreos/core03/core03.img',*
* '/root/coreos/core04/core04.img' ]:*
* ensure => file,*
* replace => false,*
* source => '/root/coreos/core01/core01.img',*
* owner => 'root',*
* group => 'root',*
* mode => '0644',*
* }*
Marc
On Thursday, February 5, 2009 at 5:59:06 AM UTC+1, Luke Kanies wrote:
>
> On Jan 30, 2009, at 9:54 AM, Jeff wrote:
>
> >
> > On Jan 28, 7:18 pm, Andrew Shafer <[email protected]> wrote:
> >> Jeff,
> >>
> >> What version of Puppet are you using?
> >
> > Andrew,
> >
> > Each time I used a template, it overwrote a changed file. Each time I
> > used a source, it did not.
> >
> > Version: 0.24.4
> >
> > I just tested one more time to make sure. The results were the same.
> > If I used a template AND replace => false, it still overwrote a
> > modified file. If I used source AND replace => false, it did not.
>
>
> Definitely not the right behaviour, and fixed in recent releases.
>
> --
> The leader of Jamestown was "John Smith" (not his real name), under
> whose direction the colony engaged in a number of activities,
> primarily related to starving. -- Dave Barry, "Dave Barry Slept Here"
> ---------------------------------------------------------------------
> Luke Kanies | http://reductivelabs.com | http://madstop.com
>
>
--
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/b2d3014f-b8de-4cb4-8b92-e62a7a9d9d6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.