## confdroid_nagios::server::files.pp # Module name: confdroid_nagios # Author: 12ww1160 (12ww1160@confdroid.com) # @summary Class manages configuration files for the confdroid_nagios module. ############################################################################### 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', selrange => s0, selrole => object_r, seltype => nagios_etc_t, seluser => system_u, content => template($ng_nagios_cfg_erb), notify => Service[$ng_service], } file { $ng_cgi_cfg_file: ensure => file, owner => 'root', group => 'nagios', mode => '0644', selrange => s0, selrole => object_r, seltype => nagios_etc_t, seluser => system_u, content => template($ng_cgi_cfg_erb), notify => Service[$ng_service], } file { $ng_lock_file: ensure => file, owner => 'nagios', group => 'nagios', mode => '0644', selrange => s0, selrole => object_r, seltype => nagios_var_run_t, seluser => system_u, } if $ng_use_lb == true { file { $ng_remoteip_file: ensure => file, owner => 'root', group => 'root', mode => '0644', selrange => s0, selrole => object_r, seltype => httpd_conf_t, seluser => system_u, content => template('confdroid_nagios/loadbalancer/remoteip.conf.erb'), notify => Service['httpd'], } } } }