OP#421 add user settings
This commit is contained in:
@@ -22,11 +22,11 @@ class confdroid_nagios::main::user (
|
|||||||
allowdupe => false,
|
allowdupe => false,
|
||||||
comment => $ng_u_comment,
|
comment => $ng_u_comment,
|
||||||
uid => $ng_u_uid,
|
uid => $ng_u_uid,
|
||||||
gid => $ng_user,
|
gid => $ng_u_uid,
|
||||||
groups => $ng_u_groups,
|
groups => $ng_u_groups,
|
||||||
managehome => true,
|
managehome => true,
|
||||||
home => $ng_user_home,
|
home => $ng_u_home,
|
||||||
shell => $ng_user_shell,
|
shell => $ng_u_shell,
|
||||||
require => Group[$ng_user],
|
require => Group[$ng_user],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
# is 'Nagios User'.
|
# 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_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_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.
|
# @param [Integer] ng_u_uid The user ID for the Nagios user. Default is 1004.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
class confdroid_nagios::params (
|
class confdroid_nagios::params (
|
||||||
@@ -34,7 +34,7 @@ class confdroid_nagios::params (
|
|||||||
String $ng_u_comment = 'Nagios User',
|
String $ng_u_comment = 'Nagios User',
|
||||||
String $ng_u_groups = 'nagios',
|
String $ng_u_groups = 'nagios',
|
||||||
String $ng_u_shell = '/sbin/nologin',
|
String $ng_u_shell = '/sbin/nologin',
|
||||||
String $ng_user_home = '/home/nagios',
|
String $ng_u_home = '/home/nagios',
|
||||||
Integer $ng_u_uid = 1004,
|
Integer $ng_u_uid = 1004,
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user