Files
confdroid_haproxy/manifests/main/user.pp

32 lines
835 B
ObjectPascal
Raw Normal View History

2018-12-10 14:36:54 +01:00
## cd_haproxy::main::user.pp
# Module name: cd_haproxy
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
# @summary Class manages service users for cd_haproxy.
#############################################################################
class cd_haproxy::main::user (
) inherits cd_haproxy::params {
if $fqdn == $hy_host_fqdn {
require cd_haproxy::main::install
# manage user
2018-12-10 16:09:52 +01:00
user { $hy_user_name:
2018-12-10 14:36:54 +01:00
ensure => present,
2018-12-10 16:09:52 +01:00
name => $hy_user_name,
2018-12-10 14:36:54 +01:00
allowdupe => false,
comment => $hy_user_comment,
2018-12-10 16:09:52 +01:00
gid => $hy_user_name,
2018-12-10 14:36:54 +01:00
managehome => true,
home => $hy_user_home,
shell => $hy_user_shell,
}
2018-12-10 16:09:52 +01:00
group { $hy_user_name:
2018-12-10 14:36:54 +01:00
ensure => present,
2018-12-10 16:09:52 +01:00
name => $hy_user_name,
2018-12-10 14:36:54 +01:00
allowdupe => false,
}
}
}