On Wednesday, February 5, 2014 7:25:53 PM UTC+1, Chuck Anderson wrote:
 

> Use single quotes rather than double quotes so the $ aren't 
> interpolated as variables: 
>

But if you are accustomed to using double quotes around strings, you might 
prefer using them here too, for consistency.
Just be sure you escape the $'s.

What's more, the results I got when trying from a single command line were 
confusing.
I did expect this to work:

> puppet apply -e "user { 'testuser': password => 
'$1$RCxCmL.x$MRHrLKqYpha19ERGC/5FQ/' }"

But it had the same problem.
And for some reason bash did not interpret the following alternative 
version as I expected it to:

> puppet apply -e 'user { \'testuser\': password => 
\'$1$RCxCmL.x$MRHrLKqYpha19ERGC/5FQ/\' }'

Marco

-- 
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/f07e7ef0-f0e0-45cb-b25b-7dc4b9aeaa5a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to