Issue #1679 has been updated by James Turnbull. Status changed from Accepted to Closed
Given XMLRPC support is now gone I am going to close this. ---------------------------------------- Bug #1679: Control characters can't be used within a file resource https://projects.puppetlabs.com/issues/1679#change-54969 Author: Oliver Hookins Status: Closed Priority: Normal Assignee: Category: file Target version: Affected Puppet version: 0.24.5 Keywords: Branch: Our use case is thus: occasionally users will copy perl scripts over to our Linux machines from a Windows machine, unchanged, resulting in carriage return characters on the end of the line. Therefore the shebang might end up looking like this: <pre> #!/usr/bin/perl^M </pre> where the ^M is a carriage return character (you can get this in Vi by typing ^V^M). To alleviate problems with these scripts we usually create a few links: /usr/bin/perl^M -> /usr/bin/perl /usr/local/bin/perl^M -> /usr/bin/perl etc. If you attempt to put the control character ^M into the manifest to create the link, it is ignored (or stripped out) by puppet and we end up over-writing /usr/bin/perl with an invalid link to itself. <pre> file { "/usr/bin/perl^M": ensure => "/usr/bin/perl"; } </pre> For the moment I've had to resort to execs to get the job done (which unfortunately still messes with puppet's debug output due to the ^M) but it would be nice if puppet could handle the control character natively. -- 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.
