Skip to content

Instantly share code, notes, and snippets.

@mkotsur
Created August 2, 2012 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkotsur/3237018 to your computer and use it in GitHub Desktop.
Save mkotsur/3237018 to your computer and use it in GitHub Desktop.
Creating user with password in puppet [works]
class test {
Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] }
exec { 'uuu':
command => 'sudo useradd -p \'$6$ho0rkgYB$tWX9tiduG4orUmc6Z6hfaha5C4v5xCzK.Xa1d2mSBRW5TwzkgeWap2tUuiEdUQBfo3KnvQi/Y1XjesFFZrMBj1\' myuser'
}
}
include test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment