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?

-- 
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.

Reply via email to