Issue #7295 has been updated by Jeff McCune.

# Properties #

I believe this is because content is a parameter and not a property.

Zach, could you try:

<pre>
file {
  "/tmp/test":
    content  => "bla",
    audit    => [ owner, group, mode, content ],
    checksum => md5,
}
</pre>
----------------------------------------
Bug #7295: File chsecksum is not being written to state.yaml
https://projects.puppetlabs.com/issues/7295

Author: Zach Leslie
Status: Accepted
Priority: High
Assignee: 
Category: 
Target version: 
Affected Puppet version: 2.6.4
Keywords: 
Branch: 


When the following manifest is run, I expect that the md5sum gets written to 
state.yaml. 

<pre>
file {
  "/tmp/test":
    content => "bla",
    audit   => all,
    checksum => md5,
}
</pre>

But no such content is written to state.yaml. 

<pre>
$ sudo puppet -v /tmp/test.pp; sudo grep -A11 "/tmp/test" 
/var/lib/puppet/state/state.yaml

notice: /Stage[main]//File[/tmp/test]/content: content changed 
'{md5}128ecf542a35ac5270a87dc740918404' to 
'{md5}bc164a80b614c873a25ea8ea38471ced'

  "File[/tmp/test]": 
    !ruby/sym owner: 0
    !ruby/sym mode: 420
    !ruby/sym seluser: 
    !ruby/sym group: 0
    !ruby/sym selrole: 
    !ruby/sym target: !ruby/sym notlink
    !ruby/sym seltype: 
    !ruby/sym selrange: 
    !ruby/sym checked: 2011-04-29 18:11:26.128960 -07:00
    !ruby/sym synced: 2011-04-29 17:29:56.315849 -07:00
</pre>

The only thing missing from what I can tell is the md5sum.

Also, the mode here is 420, which looking at the file, is incorrect:

<pre>
$ ls -ld /tmp/test
-rw-r--r--  1 root  wheel  4 Apr 29 18:14 /tmp/test
</pre>



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

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

Reply via email to