Skip to content

Instantly share code, notes, and snippets.

@jrmoserbaltimore
Created February 1, 2013 16:30
Show Gist options
  • Save jrmoserbaltimore/4692386 to your computer and use it in GitHub Desktop.
Save jrmoserbaltimore/4692386 to your computer and use it in GitHub Desktop.
node 'panera.example.com' {
$sudogroup = 'wheel'
user { 'baked':
name => 'Baked Pumpernickel',
uid => '1000',
gid => 'users',
groups => [ $sudogroup, 'puppet' ],
shell => '/bin/bash',
password => '$6$dJGfA238999hashthisstuff33deafcows7',
}
}
@kesor
Copy link

kesor commented Feb 1, 2013

define user_with_sudo( $uid => undef, ... ) {
$sudogroup = 'wheel'
user { $name: uid => $uid, ... }
}

create_resources("user_with_sudo", hiera("my_hash_with_users")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment