The recent traffic about "
puppet master --compile ..." got me tinkering with it.
I found a lot of old syntax in my templates, so I added "@" in front of all the current scope variables.
That got rid of all the grumbles but one:
Warning: Unrecognised escape sequence '\1'
Warning: Unrecognised escape sequence '\2'from one of my manifests/init.pp files.
The offending code can be found here:
https://github.com/mcgonagle/puppet_nist/blob/master/nist/modules/umask/manifests/init.pp...at the end of the file,
define umask-replace($file) {
exec {
"umask_replace_${file}":
command => "/bin/sed -i -r 's/(umask)([ \t]*)[0-9]{3}/\1\2077/gi' $file",
onlyif => "/usr/bin/test `/bin/egrep -i '(umask|UMASK)[[:space:]]*[0-9]{3}' $file | /bin/egrep -v -i '(umask|UMASK)[[:space:]]*077' | /bin/wc -l` -ne 0";
}
}
Specifically, the "command" line
Besides the fact that
Unrecognized is misspelled (I copied/pasted out of the command output),
can anyone suggest a fix to remove the warnings ?
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)