OP#436 add main file control link to wiki
This commit is contained in:
@@ -78,34 +78,6 @@ class confdroid_nagios::params (
|
|||||||
$ng_nagios_cfg_file = "${ng_main_dir}/nagios.cfg"
|
$ng_nagios_cfg_file = "${ng_main_dir}/nagios.cfg"
|
||||||
$ng_nagios_cfg_erb = 'confdroid_nagios/nagios/nagios_cfg.erb'
|
$ng_nagios_cfg_erb = 'confdroid_nagios/nagios/nagios_cfg.erb'
|
||||||
|
|
||||||
## old
|
|
||||||
$ng_main_config = "${ng_main_dir}/nagios.cfg"
|
|
||||||
$ng_cgi_cfg_file = "${ng_main_dir}/cgi.cfg"
|
|
||||||
$ng_cgi_cfg_erb = 'confdroid_nagios/nagios/cgi_cfg.erb'
|
|
||||||
$ng_htpasswd_file = "${ng_main_dir}/passwd"
|
|
||||||
$ng_htpasswd_head = 'confdroid_nagios/nagios/htpasswd_head.erb'
|
|
||||||
$ng_htpasswd_rule = 'confdroid_nagios/nagios/htpasswd_rule.erb'
|
|
||||||
$ng_taccgi_erb = 'confdroid_nagios/selinux/taccgi.erb'
|
|
||||||
$ng_statcgi_erb = 'confdroid_nagios/selinux/statuscgi.erb'
|
|
||||||
$ng_statdat_erb = 'confdroid_nagios/selinux/statusdat.erb'
|
|
||||||
$ng_checknrpe_erb = 'confdroid_nagios/selinux/checknrpe.erb'
|
|
||||||
$ng_checknagios_erb = 'confdroid_nagios/selinux/checknagios.erb'
|
|
||||||
$ng_nagios_conf = '/etc/httpd/conf.d/nagios.conf'
|
|
||||||
$ng_nagios_conf_erb = 'confdroid_nagios/httpd/nagios_conf.erb'
|
|
||||||
$ng_welcome_conf = '/etc/httpd/conf.d/welcome.conf'
|
|
||||||
$ng_welcome_conf_erb = 'confdroid_nagios/httpd/welcome_conf.erb'
|
|
||||||
$ng_forward_conf = '/etc/httpd/conf.d/nagios_forward.conf'
|
|
||||||
$ng_forward_conf_erb = 'confdroid_nagios/httpd/forward_conf.erb'
|
|
||||||
$ng_get_cert_erb = 'confdroid_nagios/certbot/get_cert.erb'
|
|
||||||
$ng_unless_get_cert = 'confdroid_nagios/certbot/unless_get_cert.erb'
|
|
||||||
$ng_unless_renew_erb = 'confdroid_nagios/certbot/unless_renew_cert.erb'
|
|
||||||
$ng_index_html_file = '/var/www/html/index.html'
|
|
||||||
$ng_index_html_erb = 'confdroid_nagios/httpd/index_html.erb'
|
|
||||||
$ng_ssl_vhost_file = '/etc/httpd/conf.d/nagios_ssl.conf'
|
|
||||||
$ng_ssl_vhost_erb = 'confdroid_nagios/httpd/nagios_ssl_vhost.erb'
|
|
||||||
$ng_resource_erb = 'confdroid_nagios/nagios/resource_cfg.erb'
|
|
||||||
$ng_grep_erb = 'confdroid_nagios/selinux/grep.erb'
|
|
||||||
|
|
||||||
# nagios
|
# nagios
|
||||||
$ng_target_templates = "${ng_conf_d_dir}/nagios_templates.cfg"
|
$ng_target_templates = "${ng_conf_d_dir}/nagios_templates.cfg"
|
||||||
$ng_templates_head_erb = 'confdroid_nagios/nagios/templates_cfg_head.erb'
|
$ng_templates_head_erb = 'confdroid_nagios/nagios/templates_cfg_head.erb'
|
||||||
@@ -139,6 +111,34 @@ class confdroid_nagios::params (
|
|||||||
$ng_target_command = "${ng_conf_d_dir}/nagios_commands_base.cfg"
|
$ng_target_command = "${ng_conf_d_dir}/nagios_commands_base.cfg"
|
||||||
$ng_nagios_service_cmd = 'check_nagios!/var/log/nagios/status.dat!5!/usr/sbin/nagios'
|
$ng_nagios_service_cmd = 'check_nagios!/var/log/nagios/status.dat!5!/usr/sbin/nagios'
|
||||||
|
|
||||||
|
## old
|
||||||
|
$ng_main_config = "${ng_main_dir}/nagios.cfg"
|
||||||
|
$ng_cgi_cfg_file = "${ng_main_dir}/cgi.cfg"
|
||||||
|
$ng_cgi_cfg_erb = 'confdroid_nagios/nagios/cgi_cfg.erb'
|
||||||
|
$ng_htpasswd_file = "${ng_main_dir}/passwd"
|
||||||
|
$ng_htpasswd_head = 'confdroid_nagios/nagios/htpasswd_head.erb'
|
||||||
|
$ng_htpasswd_rule = 'confdroid_nagios/nagios/htpasswd_rule.erb'
|
||||||
|
$ng_taccgi_erb = 'confdroid_nagios/selinux/taccgi.erb'
|
||||||
|
$ng_statcgi_erb = 'confdroid_nagios/selinux/statuscgi.erb'
|
||||||
|
$ng_statdat_erb = 'confdroid_nagios/selinux/statusdat.erb'
|
||||||
|
$ng_checknrpe_erb = 'confdroid_nagios/selinux/checknrpe.erb'
|
||||||
|
$ng_checknagios_erb = 'confdroid_nagios/selinux/checknagios.erb'
|
||||||
|
$ng_nagios_conf = '/etc/httpd/conf.d/nagios.conf'
|
||||||
|
$ng_nagios_conf_erb = 'confdroid_nagios/httpd/nagios_conf.erb'
|
||||||
|
$ng_welcome_conf = '/etc/httpd/conf.d/welcome.conf'
|
||||||
|
$ng_welcome_conf_erb = 'confdroid_nagios/httpd/welcome_conf.erb'
|
||||||
|
$ng_forward_conf = '/etc/httpd/conf.d/nagios_forward.conf'
|
||||||
|
$ng_forward_conf_erb = 'confdroid_nagios/httpd/forward_conf.erb'
|
||||||
|
$ng_get_cert_erb = 'confdroid_nagios/certbot/get_cert.erb'
|
||||||
|
$ng_unless_get_cert = 'confdroid_nagios/certbot/unless_get_cert.erb'
|
||||||
|
$ng_unless_renew_erb = 'confdroid_nagios/certbot/unless_renew_cert.erb'
|
||||||
|
$ng_index_html_file = '/var/www/html/index.html'
|
||||||
|
$ng_index_html_erb = 'confdroid_nagios/httpd/index_html.erb'
|
||||||
|
$ng_ssl_vhost_file = '/etc/httpd/conf.d/nagios_ssl.conf'
|
||||||
|
$ng_ssl_vhost_erb = 'confdroid_nagios/httpd/nagios_ssl_vhost.erb'
|
||||||
|
$ng_resource_erb = 'confdroid_nagios/nagios/resource_cfg.erb'
|
||||||
|
$ng_grep_erb = 'confdroid_nagios/selinux/grep.erb'
|
||||||
|
|
||||||
# includes must be last
|
# includes must be last
|
||||||
include confdroid_nagios::main::config
|
include confdroid_nagios::main::config
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
certbot certonly -t -n --agree-tos --webroot -w <%= @ng_certbot_webroot %>/ -d <%= @ng_webserver_name %> --email <%= @ng_mail_user %>
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
<% if @ng_enable_certbot == true %>
|
|
||||||
test -d /etc/letsencrypt/archive/<%= @ng_nagios_server %>
|
|
||||||
<% end %>
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
<% if @ng_enable_certbot == true %>
|
|
||||||
case `find /etc/letsencrypt/renewal -type f -name "<%= @ng_nagios_server %>.conf" -mtime +80` in
|
|
||||||
'') echo 'No filename found' exit 0 ;;
|
|
||||||
*) echo 'Found filename' exit 1 ;;
|
|
||||||
esac
|
|
||||||
<% end %>
|
|
||||||
@@ -9,13 +9,13 @@
|
|||||||
log_file=<%= @ng_log_file %>
|
log_file=<%= @ng_log_file %>
|
||||||
|
|
||||||
# OBJECT CONFIGURATION FILE(S)
|
# OBJECT CONFIGURATION FILE(S)
|
||||||
# These are the object configuration files in which you define hosts,
|
# This section has been outsourced into <%= @ng_conf_d_dir %>/*.cfg files,
|
||||||
# host groups, contacts, contact groups, services, etc.
|
# because the commands are now built via PuppetDB exports and imports.
|
||||||
# You can split your object definitions across several config files
|
# Original files are available at https://3for.me/hn6ca (membership area)
|
||||||
# if you wish (as shown below), or keep them all in a single config file.
|
# or at nagios.org
|
||||||
|
|
||||||
# You can specify individual object config files as shown below:
|
# You can specify individual object config files as shown below:
|
||||||
cfg_file=/etc/nagios/objects/commands.cfg
|
cfg_file=<%= @ng_target_command %>
|
||||||
cfg_file=/etc/nagios/objects/contacts.cfg
|
cfg_file=/etc/nagios/objects/contacts.cfg
|
||||||
cfg_file=/etc/nagios/objects/timeperiods.cfg
|
cfg_file=/etc/nagios/objects/timeperiods.cfg
|
||||||
cfg_file=/etc/nagios/objects/templates.cfg
|
cfg_file=/etc/nagios/objects/templates.cfg
|
||||||
|
|||||||
Reference in New Issue
Block a user