diff options
author | varac <varacanero@zeromail.org> | 2014-02-06 15:36:12 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2014-02-10 18:40:08 +0100 |
commit | 6255e58bf9ff3489bf2707bc2be9759ec5c7db68 (patch) | |
tree | bfa557eec681fbedcad1f699ccc2af11e9fa3738 /puppet/modules/site_nagios | |
parent | d8112f6c897579cbb8bbe1230ca5d0eff6746def (diff) |
move leap_webapp.conf template to common.conf which is included by the nagios and webapp node (#5096)
Diffstat (limited to 'puppet/modules/site_nagios')
-rw-r--r-- | puppet/modules/site_nagios/manifests/server.pp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/puppet/modules/site_nagios/manifests/server.pp b/puppet/modules/site_nagios/manifests/server.pp index 3e1ef7e7..b1e8a8cb 100644 --- a/puppet/modules/site_nagios/manifests/server.pp +++ b/puppet/modules/site_nagios/manifests/server.pp @@ -11,18 +11,26 @@ class site_nagios::server inherits nagios::base { include nagios::defaults include nagios::base - #Class ['nagios'] -> Class ['nagios::defaults'] - class {'nagios::apache': + class {'nagios': + # don't manage apache class from nagios, cause we already include + # it in site_apache::common + httpd => 'absent', allow_external_cmd => true, stored_config => false, - #before => Class ['nagios::defaults'] } + file { '/etc/apache2/conf.d/nagios3.conf': + ensure => link, + target => '/usr/share/doc/nagios3-common/examples/apache2.conf', + notify => Service['apache'] + } + + include site_apache::common include site_apache::module::headers File ['nagios_htpasswd'] { source => undef, - content => "nagiosadmin:$nagiosadmin_pw", + content => "nagiosadmin:${nagiosadmin_pw}", mode => '0640', } |