Files
confdroid_nagios/manifests/main/user.pp

33 lines
942 B
ObjectPascal
Raw Normal View History

2026-02-10 14:04:06 +01:00
## confdroid_nagios::main::user.pp
# Module name: confdroid_nagios
# Author: 12ww1160 (12ww1160@confdroid.com)
# @summary Class manaages main configuration for the confdroid_nagios module.
###############################################################################
class confdroid_nagios::main::user (
) inherits confdroid_nagios::params {
2026-02-13 14:57:03 +01:00
require confdroid_nagios::main::install
2026-02-10 14:04:06 +01:00
if $ng_nagios_server == $fqdn {
2026-02-12 16:49:36 +01:00
group { $ng_user:
2026-02-13 14:57:03 +01:00
ensure => present,
name => $ng_user,
gid => $ng_u_uid,
allowdupe => false,
}
2026-02-12 16:49:36 +01:00
user { $ng_user:
ensure => present,
name => $ng_user,
allowdupe => false,
comment => $ng_u_comment,
uid => $ng_u_uid,
2026-02-12 17:04:10 +01:00
gid => $ng_u_uid,
2026-02-12 16:49:36 +01:00
groups => $ng_u_groups,
managehome => true,
2026-02-12 17:04:10 +01:00
home => $ng_u_home,
shell => $ng_u_shell,
2026-02-12 16:49:36 +01:00
require => Group[$ng_user],
}
2026-02-10 14:04:06 +01:00
}
}