OP#421 add user settings
This commit is contained in:
@@ -12,6 +12,14 @@
|
|||||||
# the Nagios clients.
|
# the Nagios clients.
|
||||||
# @param [String] ng_pkg_ensure The ensure value for all packages. Default is
|
# @param [String] ng_pkg_ensure The ensure value for all packages. Default is
|
||||||
# 'present'.
|
# 'present'.
|
||||||
|
# @param [String] ng_user The name of the Nagios user to be created on the
|
||||||
|
# Nagios server. Default is 'nagios'.
|
||||||
|
# @param [String] ng_u_comment The comment field for the Nagios user. Default
|
||||||
|
# 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 [Integer] ng_u_uid The user ID for the Nagios user. Default is 1004.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
class confdroid_nagios::params (
|
class confdroid_nagios::params (
|
||||||
|
|
||||||
@@ -21,6 +29,14 @@ class confdroid_nagios::params (
|
|||||||
Array $ng_reqpackages_client = ['net-snmp-utils','nagios-plugins','nagios-plugins-all','nagios-plugins-nrpe','nagios-common'],
|
Array $ng_reqpackages_client = ['net-snmp-utils','nagios-plugins','nagios-plugins-all','nagios-plugins-nrpe','nagios-common'],
|
||||||
String $ng_pkg_ensure = 'present',
|
String $ng_pkg_ensure = 'present',
|
||||||
|
|
||||||
|
# user
|
||||||
|
String $ng_user = 'nagios',
|
||||||
|
String $ng_u_comment = 'Nagios User',
|
||||||
|
String $ng_u_groups = 'nagios',
|
||||||
|
String $ng_u_shell = '/sbin/nologin',
|
||||||
|
String $ng_user_home = '/home/nagios',
|
||||||
|
Integer $ng_u_uid = 1004,
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# Default facts
|
# Default facts
|
||||||
$fqdn = $facts['networking']['fqdn']
|
$fqdn = $facts['networking']['fqdn']
|
||||||
|
|||||||
Reference in New Issue
Block a user