Files
confdroid_nagios/manifests/main/user.pp

34 lines
940 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 {
if $ng_nagios_server == $fqdn {
require confdroid_nagios::main::install
2026-02-12 16:49:36 +01:00
group { $ng_user:
ensure => present,
name => $ng_user,
gid => $ng_u_uid,
allowdupe => false,
}
user { $ng_user:
ensure => present,
name => $ng_user,
allowdupe => false,
comment => $ng_u_comment,
uid => $ng_u_uid,
gid => $ng_user,
groups => $ng_u_groups,
managehome => true,
home => $ng_user_home,
shell => $ng_user_shell,
require => Group[$ng_user],
}
2026-02-10 14:04:06 +01:00
}
}