Files
confdroid_haproxy/manifests/main/user.pp

31 lines
809 B
ObjectPascal
Raw Normal View History

2025-03-02 16:28:57 +01:00
## haproxy_cd::main::user.pp
# Module name: haproxy_cd
2018-12-10 14:36:54 +01:00
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
2025-03-02 16:28:57 +01:00
# @summary Class manages service users for haproxy_cd.
2018-12-10 14:36:54 +01:00
#############################################################################
2025-03-02 16:28:57 +01:00
class haproxy_cd::main::user (
2018-12-10 14:36:54 +01:00
2025-03-02 16:28:57 +01:00
) inherits haproxy_cd::params {
2018-12-10 14:36:54 +01:00
if $fqdn == $hy_host_fqdn {
2025-03-02 16:28:57 +01:00
require haproxy_cd::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
}
}
}