From 06dc99f43c3653fbfd396adf647320b5a8847a6a Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Thu, 12 Feb 2026 17:04:10 +0100 Subject: [PATCH] OP#421 add user settings --- manifests/main/user.pp | 6 +++--- manifests/params.pp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/manifests/main/user.pp b/manifests/main/user.pp index 3da0fbb..90c9b48 100644 --- a/manifests/main/user.pp +++ b/manifests/main/user.pp @@ -22,11 +22,11 @@ class confdroid_nagios::main::user ( allowdupe => false, comment => $ng_u_comment, uid => $ng_u_uid, - gid => $ng_user, + gid => $ng_u_uid, groups => $ng_u_groups, managehome => true, - home => $ng_user_home, - shell => $ng_user_shell, + home => $ng_u_home, + shell => $ng_u_shell, require => Group[$ng_user], } } diff --git a/manifests/params.pp b/manifests/params.pp index 3f6cbbc..31c5826 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -18,7 +18,7 @@ # is 'Nagios User'. # @param [String] ng_u_groups The group(s) to which the Nagios user should be added. Default is 'nagios'. # @param [String] ng_u_shell The login shell for the Nagios user. Default is '/sbin/nologin'. -# @param [String] ng_user_home The home directory for the Nagios user. Default is '/home/nagios'. +# @param [String] ng_u_home The home directory for the Nagios user. Default is '/home/nagios'. # @param [Integer] ng_u_uid The user ID for the Nagios user. Default is 1004. ############################################################################### class confdroid_nagios::params ( @@ -34,7 +34,7 @@ class confdroid_nagios::params ( String $ng_u_comment = 'Nagios User', String $ng_u_groups = 'nagios', String $ng_u_shell = '/sbin/nologin', - String $ng_user_home = '/home/nagios', + String $ng_u_home = '/home/nagios', Integer $ng_u_uid = 1004, ) {