Skip to content

Instantly share code, notes, and snippets.

@jarv
Created March 20, 2013 16:00
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 jarv/5205864 to your computer and use it in GitHub Desktop.
Save jarv/5205864 to your computer and use it in GitHub Desktop.
define user_manage(
$ensure = 'present'
) {
if $ensure == 'absent' {
User[$name] -> Group[$name]
}
user { $name:
ensure => $ensure,
gid => 'test-user',
home => "/home/test-user",
shell => '/bin/bash',
}
group { $name:
ensure => $ensure,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment