That is the behavior I want, and I am actually using "replace => false" (though I didn't in my example). My only problem is that I have nodes that run in noop mode, and even though the file doesn't change, they will complain that the checksum has changed eventually. I think puppet "forgets" the checksum after a while, because the nodes all start complaining at the same time. If the behavior I want is not possible, I will just turn off reporting for that resource.
On Aug 27, 2:53 pm, Dan Bode <d...@puppetlabs.com> wrote: > On Fri, Aug 27, 2010 at 11:49 AM, Patrick <kc7...@gmail.com> wrote: > > > On Aug 27, 2010, at 7:07 AM, John Lyman wrote: > > > > On a file resource, if the content parameter is set and checksum is > > > set to none, I am getting "Parameter content failed: Munging > > > failed..." > > > > This appears to be a bug, but maybe I missed something in the > > > documentation and it isn't supposed to work. > > > > cat test.pp > > > file { "/tmp/foo": > > > checksum => none, > > > content => "this is foo\n", > > > } > > > > puppet test.pp --debug > > > debug: Failed to load library 'selinux' for feature 'selinux' > > > Parameter content failed: Munging failed for value "this is foo\n" in > > > class content: undefined method `none' for > > > #<Puppet::Type::File::Content:0x90212d8> > > > What are you trying to do? You want it to create the file with that > > content if the file doesn't exist, but not change the file if the file > > exists but doesn't match? > > if this is the behavior you want, try > > replace => false > > > -- > > You received this message because you are subscribed to the Google Groups > > "Puppet Users" group. > > To post to this group, send email to puppet-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@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-us...@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.