diff options
author | varac <varacanero@zeromail.org> | 2012-09-17 18:52:22 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2012-09-17 18:52:22 +0200 |
commit | 76be2210f45090cfbd79d73b9dc72496c4dde8a1 (patch) | |
tree | fba6a428e89b06088da1b7cadfaf3561835bd20e | |
parent | f1eb9a37e0e8c3b94e79276d009848522c6e8de9 (diff) |
package pnp4nagios available now, fix permissions for config files
-rw-r--r-- | manifests/pnp4nagios.pp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/manifests/pnp4nagios.pp b/manifests/pnp4nagios.pp index 3971f36..9026d3e 100644 --- a/manifests/pnp4nagios.pp +++ b/manifests/pnp4nagios.pp @@ -1,7 +1,7 @@ class nagios::pnp4nagios { include nagios::defaults::pnp4nagios - package { [php5, php5-gd, rrdcollect, rrdtool, librrdp-perl, librrds-perl ]: + package { pnp4nagios: ensure => installed } @@ -12,14 +12,15 @@ class nagios::pnp4nagios { file { 'pnp4nagios-templates.cfg': path => "$nagios::nagios_cfgdir/conf.d/pnp4nagios-templates.cfg", source => [ "puppet:///modules/site-nagios/pnp4nagios/pnp4nagios-templates.cfg", - "puppet:///modules/nagios/pnp4nagios/pnp4nagios-templates.cfg" ] + "puppet:///modules/nagios/pnp4nagios/pnp4nagios-templates.cfg" ], + mode => 0644, owner => root, group => root; } file { 'apache.conf': path => "/etc/pnp4nagios/apache.conf", source => [ "puppet:///modules/site-nagios/pnp4nagios/apache.conf", - "puppet:///modules/nagios/pnp4nagios/apache.conf" - ], + "puppet:///modules/nagios/pnp4nagios/apache.conf" ], + mode => 0644, owner => root, group => root; notify => Service['apache'], } |