## 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 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], } } }