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