Skip to content

Instantly share code, notes, and snippets.

@rharrison10
Created September 7, 2012 17:39
Show Gist options
  • Save rharrison10/3668065 to your computer and use it in GitHub Desktop.
Save rharrison10/3668065 to your computer and use it in GitHub Desktop.
False positive unquoted resource title for colons in resource parameters
class test {
exec { "${::hostname}_fix_root_pw" :
command => '/bin/echo root:\!! | /usr/sbin/chpasswd -e',
onlyif => '/usr/bin/test ! `/bin/grep \'^root:!!:\' /etc/shadow`',
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment