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:
|
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,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|