Files

31 lines
851 B
Puppet

## confdroid_haproxy::main::user.pp
# Module name: confdroid_haproxy
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
# @summary Class manages service users for confdroid_haproxy.
#############################################################################
class confdroid_haproxy::main::user (
) inherits confdroid_haproxy::params {
if $fqdn == $hy_host_fqdn {
require confdroid_haproxy::main::install
# manage user
user { $hy_user_name:
ensure => present,
name => $hy_user_name,
allowdupe => false,
comment => $hy_user_comment,
gid => $hy_user_name,
managehome => true,
home => $hy_user_home,
shell => $hy_user_shell,
}
group { $hy_user_name:
ensure => present,
name => $hy_user_name,
allowdupe => false,
}
}
}