Issue #7295 has been updated by Charlie Sharpsteen.

Keywords changed from file checksum md5 goalie_06_28_2012 to file checksum md5 
goalie_06_28_2012 customer

----------------------------------------
Bug #7295: File checksum is not being written to state.yaml
https://projects.puppetlabs.com/issues/7295#change-88659

* Author: Zach Leslie
* Status: Closed
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
* Affected Puppet version: 2.6.4
* Keywords: file checksum md5 goalie_06_28_2012 customer
* 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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to