Am Dienstag, 20. Januar 2015 20:28:33 UTC+1 schrieb Marc:
>
> 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?
>

what about setting "checksum => none"?

https://docs.puppetlabs.com/references/latest/type.html#file-attribute-checksum

- Thomas

 

>
> *  exec { 'wget -O - http://repo01.demo.lan/coreos/coreos_qemu.img.bz2 
> <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 <and...@reductivelabs.com> 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.
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/9d8206eb-9ba2-49e6-99dc-4fb1d1e1e2a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to