diff options
author | Johan Lundberg <lundberg@nordu.net> | 2015-03-31 13:32:08 +0200 |
---|---|---|
committer | Johan Lundberg <lundberg@nordu.net> | 2015-03-31 13:32:08 +0200 |
commit | 1b9540600fe30425d878dc0461d01975931b63f1 (patch) | |
tree | 7a62597b7bf4d4dceb4b47a4344fac9fef1a1ab0 /global/overlay/etc/puppet/modules/sunet/manifests/system_user.pp | |
parent | 8960793d16aaf4bd7a94e6bf152dd4049ea0212c (diff) |
Adding helper functions from eduid.
Diffstat (limited to 'global/overlay/etc/puppet/modules/sunet/manifests/system_user.pp')
-rw-r--r-- | global/overlay/etc/puppet/modules/sunet/manifests/system_user.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/global/overlay/etc/puppet/modules/sunet/manifests/system_user.pp b/global/overlay/etc/puppet/modules/sunet/manifests/system_user.pp new file mode 100644 index 0000000..819ef4a --- /dev/null +++ b/global/overlay/etc/puppet/modules/sunet/manifests/system_user.pp @@ -0,0 +1,22 @@ +define sunet::system_user( + $username, + $group, + $system = true, + $shell = '/bin/false' + ) { + + user { $username : + ensure => present, + name => $username, + membership => minimum, + system => $system, + require => Group[ $group ], + shell => $shell, + } + + group { $group : + ensure => present, + name => $group, + } + +} |