Issue #2615 has been updated by Markus Roberts.

Subject changed from Templates produce incorrect content to YAML sometimes 
modifies the contents of string data
Keywords set to yaml json

This is one of a number of closely related issues related to data modification 
in the serialization process.

They are all being rolled into one and will be addressed by providing an 
internal serialization library that 1) does not depend on other installed 
software, 2) produces and consumes data in the same format regardless of 
platform or ruby version, and 3) is entirely under our control, so that any 
subsequently discovered issues can be resolved.

----------------------------------------
Bug #2615: YAML sometimes modifies the contents of string data
http://projects.reductivelabs.com/issues/2615

Author: R.I. Pienaar aka Volcane
Status: Accepted
Priority: High
Assigned to: Markus Roberts
Category: serialization
Target version: 0.25.1
Affected version: 0.25.0
Keywords: yaml json
Branch: 


While upgrading from 0.24 to 0.25 I get the following small issue, it only 
happens with one of my file resources which is rather odd since I have many 
that looks pretty much identical to this.

<pre>
        file{"/usr/local/bin/machdb-send":
                owner   => root,
                group   => root,
                mode    => 750,
                content => template("machdb/machdb-send.erb");
        }
</pre>

<pre>
09:15:17 xen7> puppetd[19516]: 
(//machdb::client/File[/usr/local/bin/machdb-send]/content) content changed 
'{md5}0c606f2e7be81a862a44ae40e469a393' to 'unknown checksum'
</pre>

The content that gets created is fine, the file isnt corrupt or anything and on 
the 2nd run of 0.25 nothing weird happens.

If I modify /usr/local/bin/machdb-send and run puppetd --test again it fixes 
the file to the expected content but again with the 'unknown checksum' log 
message.

All the template in question has are lines like:

<pre>
my $user        = '<%= machdb_user %>';
</pre>

not even any loops or weird ruby bits.


-- 
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://reductivelabs.com/redmine/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