How to disable file checksums?

704 views
Skip to first unread message

Tim Stoop

unread,
Feb 8, 2010, 3:54:16 PM2/8/10
to Puppet Users
Hi all,

The docs seem to indicate that it's possible to disable checksum
checking for file resources:

"The default checksum parameter, *if checksums are enabled*, is md5."

But I can't find how to disable them. I vaguely remember something
like 'nosum', but it seems that's not valid. Any hints?

--
Kind regards,
Tim

Dan Bode

unread,
Feb 8, 2010, 3:58:21 PM2/8/10
to puppet...@googlegroups.com
Hi Tim,

On Mon, Feb 8, 2010 at 12:54 PM, Tim Stoop <tim....@gmail.com> wrote:
Hi all,

The docs seem to indicate that it's possible to disable checksum
checking for file resources:

"The default checksum parameter, *if checksums are enabled*, is md5."


http://docs.reductivelabs.com/guides/types/file.html

checksum attribute of the file resource. I dont know of a way to disable this, but you can pick something faster based on timestamps.
 
But I can't find how to disable them. I vaguely remember something
like 'nosum', but it seems that's not valid. Any hints?

--
Kind regards,
Tim


-Dan
 
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.


Tim Stoop

unread,
Feb 8, 2010, 4:18:50 PM2/8/10
to Puppet Users
Hi Dan,

Thanks for the reply!

On 8 feb, 21:58, Dan Bode <d...@reductivelabs.com> wrote:
> checksum attribute of the file resource. I dont know of a way to disable
> this, but you can pick something faster based on timestamps.

I don't want faster, I want no checksumming :) We use puppet to set
some sane defaults (like mode 1777 on /tmp) and I don't want to get
messages about the checksum of /tmp changing every time.

--
Kind regards,
Tim

Brice Figureau

unread,
Feb 8, 2010, 4:43:39 PM2/8/10
to puppet...@googlegroups.com

In 0.24.x I know it was possible to:
checksum => undef

I don't know if that still works in 0.25.x
--
Brice Figureau
My Blog: http://www.masterzen.fr/

Tim Stoop

unread,
Feb 9, 2010, 9:30:26 AM2/9/10
to Puppet Users
Hi Brice,

Thanks for your suggestion, but alas, it seems to default to mtime
'checksum' then.

On 8 feb, 22:43, Brice Figureau <brice-pup...@daysofwonder.com> wrote:
> In 0.24.x I know it was possible to:
> checksum => undef

Honestly, knowing how other parts work, I'd expect it to default to
mtime checksum in 0.24.x too... Thanks for the suggestion, though.

Any other thoughts?

--
Kind regards,
Tim

Dan Bode

unread,
Feb 9, 2010, 11:40:30 AM2/9/10
to puppet...@googlegroups.com
If you don't specify source or content, then it should just touch the file. I am still missing the exact use case for this though.
 
--
Kind regards,
Tim

Tim Stoop

unread,
Feb 9, 2010, 2:12:15 PM2/9/10
to Puppet Users
Hi Dan,

On 9 feb, 17:40, Dan Bode <d...@reductivelabs.com> wrote:
> I am still missing the exact use case for this though.

I made a ticket out of it, #3170. If I have something like:

file { "/tmp": mode => 1777 }

Every puppetd run gives me something like:

notice: //kbp_debian/File[/tmp]/checksum: checksum changed '{mtime}Mon
Feb 08 22:50:00 +0100 2010' to '{mtime}Tue Feb 09 21:11:06 +0100 2010'

If you have this for a lot of resources, it kind of clutters :) Since
I do not need checksumming for these resources, it would be nice if I
could simply disable checksumming.

--
Kind regards,
Tim

Joshua Anderson

unread,
Feb 12, 2010, 4:50:54 AM2/12/10
to puppet...@googlegroups.com
On Feb 9, 2010, at 11:12 AM, Tim Stoop wrote:

file { "/tmp": mode => 1777 }

I think you're seeing odd behavior because Puppet doesn't know that /tmp is supposed to be a directory.

Try this instead:

file { "/tmp": ensure => directory, mode => 1777 }

-Josh
Reply all
Reply to author
Forward
0 new messages