Files
confdroid_haproxy/manifests/main/user.pp

31 lines
851 B
ObjectPascal
Raw Normal View History

## confdroid_haproxy::main::user.pp
# Module name: confdroid_haproxy
2018-12-10 14:36:54 +01:00
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
# @summary Class manages service users for confdroid_haproxy.
2018-12-10 14:36:54 +01:00
#############################################################################
class confdroid_haproxy::main::user (
2018-12-10 14:36:54 +01:00
) inherits confdroid_haproxy::params {
2018-12-10 14:36:54 +01:00
if $fqdn == $hy_host_fqdn {
require confdroid_haproxy::main::install
2018-12-10 14:36:54 +01:00
# manage user
2018-12-10 16:09:52 +01:00
user { $hy_user_name:
2025-03-02 17:26:09 +01:00
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,
2018-12-10 14:36:54 +01:00
}
2018-12-10 16:09:52 +01:00
group { $hy_user_name:
2025-03-02 17:26:09 +01:00
ensure => present,
name => $hy_user_name,
allowdupe => false,
2018-12-10 14:36:54 +01:00
}
}
}