added control for welcome.conf

This commit is contained in:
Arne Teuke
2017-07-21 14:05:55 +01:00
parent 5d12bf4437
commit 46d3b02f76
3 changed files with 72 additions and 24 deletions

View File

@@ -62,5 +62,24 @@ class cd_nagios::server::files (
content => template($ng_nagios_conf_erb),
notify => Service[$ae_service],
}
# manage index.gtml for nagios web server
if $ng_disable_welcome == true {
file { $ng_welcome_conf:
ensure => file,
path => $ng_welcome_conf,
owner => 'root',
group => 'root',
mode => '0644',
selrange => s0,
selrole => object_r,
seltype => httpd_config_t,
seluser => system_u,
content => template($ng_welcome_conf_erb),
notify => Service[$ae_service],
}
}
}
}