Skip to content

Instantly share code, notes, and snippets.

@blt
Created August 9, 2011 22:45
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 blt/1135403 to your computer and use it in GitHub Desktop.
Save blt/1135403 to your computer and use it in GitHub Desktop.
user { $username:
comment => "$email",
home => "/home/$username",
shell => "/bin/bash",
uid => $uid,
groups => $admin ? {
true => $groups += ['wheel'],
false => $groups,
} += $http ? {
true => [$nginx::params::nx_daemon_user],
false => []
},
require => $http ? {
true => Class['nginx::package'],
false => []
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment