Issue #4233 has been updated by James Turnbull.
The patch inline for Jasper as well:
<pre>
diff --git a/lib/puppet/resource/catalog.rb b/lib/puppet/resource/catalog.rb
index 4ac99ee..9b5e68f 100644
--- a/lib/puppet/resource/catalog.rb
+++ b/lib/puppet/resource/catalog.rb
@@ -57,7 +57,7 @@ class Puppet::Resource::Catalog < Puppet::SimpleGraph
end
def title_key_for_ref( ref )
- ref =~ /^(.+)\[(.*)\]/m
+ ref =~ /^(\w+)\[(.*)\]$/m
[$1, $2]
end
</pre>
----------------------------------------
Bug #4233: Catalogs fail to deserialize if resources contain a newline in the
title
http://projects.puppetlabs.com/issues/4233
Author: Jasper Poppe
Status: Ready for Testing
Priority: Normal
Assigned to: Markus Roberts
Category:
Target version: 2.6.0
Affected version: 2.6.0rc3
Keywords:
Branch: http://github.com/jes5199/puppet/tree/bug/master/4233
The following exec works fine with Puppet 0.25.4 but fails in 2.6rc2 and 2.6rc3
, I've tested in 2 Debian Lenny nodes, 1 with a clean puppet installation from
source, the other one with a master and a client.
<pre>
node ritalin {
exec { '/bin/echo -e "\nif [ -d /etc/profile.d ]; then for i in
/etc/profile.d/*; do . \$i; done; fi; unset i" >> /etc/profile':
unless => '/bin/grep -qF "if [ -d /etc/profile.d ]; then for i in
/etc/profile.d/*; do . \$i; done; fi; unset i" /etc/profile';
}
}
</pre>
Error on master client configuration:
cs-ops001b:/home/seedpimp/rc3# puppetd --test
info: Retrieving plugin
info: /File[/var/lib/puppet/lib]: Setting mode to 493
info: /File[/var/lib/puppet/lib]: Storing newly-audited value for content
info: /File[/var/lib/puppet/lib/facter]: Setting mode to 493
info: /File[/var/lib/puppet/lib/facter/conterm.rb]: Setting mode to 420
info: /File[/var/lib/puppet/lib/facter/conterm.rb]: Setting content to
{md5}2d189bceaac522ae1f78d171b8e45531
info: Loading facts in conterm
info: Loading facts in conterm
err: Could not retrieve catalog from remote server: Could not intern from pson:
Could not convert from pson: Could not find relationship target "Exec[/bin/echo
-e \"\nif [ -d /etc/profile.d ]; then for i in /etc/profile.d/*; do . $i; done;
fi; unset i\" >> /etc/profile]"
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
Error on clean installation without use of master:
lenny001:/etc/puppet/manifests/classes# puppet test.pp
err: /Stage[main]//Node[lenny001]/Exec[/bin/echo -e "
if [ -d /etc/profile.d ]; then for i in /etc/profile.d/*; do . $i; done; fi;
unset i" >> /etc/profile]/returns: change from notrun to 0 failed: /bin/echo -e
" returned 2 instead of one of [0] at /etc/puppet/manifests/classes/test.pp:9
lenny001:/etc/puppet/manifests/classes#
If you need more information, ping me..
--
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.