OP#436 add main file control
This commit is contained in:
@@ -37,6 +37,7 @@ At this stage, the module is being redeveloped and being built to the latest sta
|
||||
- an additional directory /etc/nagios/conf.d is created to place the custom checks etc. without being overwritten by updates.
|
||||
- if `ng_include_nrpe`is set to `true`, the confdroid_nrpe module is automatically applied on clients ([confdroid_nrpe](https://sourcecode.confdroid.com/confdroid/confdroid_nrpe) must be in the catalogue then)
|
||||
|
||||
- configures all required directories for server and clients and sets proper permissions and selinux contexts
|
||||
|
||||
### configuring user access
|
||||
ToDo
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
# @param [String] ng_main_password The encrypted password for the Nagios web
|
||||
# interface. Default is 'nagios'. Must be properly encrypted using the
|
||||
# htpasswd utility.
|
||||
# @param [String] ng_context_help Whether to enable the context help in the
|
||||
# Nagios web interface. Default is '1'.
|
||||
###############################################################################
|
||||
class confdroid_nagios::params (
|
||||
|
||||
@@ -35,6 +37,9 @@ class confdroid_nagios::params (
|
||||
String $ng_main_user = 'nagios',
|
||||
String $ng_main_password = 'nagios',
|
||||
|
||||
# cgi
|
||||
String $ng_context_help = '1',
|
||||
|
||||
# httpd
|
||||
Boolean $ng_use_https = false,
|
||||
|
||||
|
||||
@@ -7,14 +7,14 @@ class confdroid_nagios::server::files (
|
||||
|
||||
) inherits confdroid_nagios::params {
|
||||
require confdroid_nagios::main::dirs
|
||||
# if $ng_nagios_server == $fqdn {
|
||||
# file { $ng_nagios_cfg_file:
|
||||
# ensure => file,
|
||||
# owner => 'nagios',
|
||||
# group => 'nagios',
|
||||
# mode => '0644',
|
||||
# content => template($ng_nagios_cfg_erb),
|
||||
# notify => Service[$ng_nagios_service],
|
||||
# }
|
||||
# }
|
||||
if $ng_nagios_server == $fqdn {
|
||||
file { $ng_nagios_cfg_file:
|
||||
ensure => file,
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0644',
|
||||
content => template($ng_nagios_cfg_erb),
|
||||
notify => Service[$ng_nagios_service],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user