puppet is telling you that it is trying to interpret the backslash-hash (\#) sequence in the string, but has not found a useful interpretation. I guess that you'd like to ACTUALLY have a backslash and a has in the string, in which case you'll need to put backslash-backslash-hash (\\#) in there as long as you're using double quotes (").

Read more about this in the Language Reference:

http://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#strings



Regards, David

On 04.02.2014 17:15, Andreas Dvorak wrote:
Dear all,

I have several exec resources that work fine, but the puppet master
throws a syslog message

"Unrecognised escape sequence \# in file
/data/git/simulation/modules/base_modification/manifests/only_solaris.pp
at line 14"

14: exec{ "/bin/sed '\#^/home#d' /etc/auto_master > /tmp/sed.tmp.$$ &&
mv /tmp/sed.tmp.$$ /etc/auto_master":
15:        onlyif => "/bin/grep '^/home' /etc/auto_master"
16:      }

I do not want to filter that mesage, but how can tell puppet this is
fine or do I need to change the exec resource.

Regards
Andreas

--
You received this message because you are subscribed to the Google
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/df83f496-54cb-4c65-9382-dd907c0393d9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52F1233A.8080208%40dasz.at.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to