summaryrefslogtreecommitdiff
path: root/puppet
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-01-28 22:33:25 +0100
committervarac <varacanero@zeromail.org>2013-01-28 22:33:25 +0100
commit39cd7faddb030dbf4f789ff5964e5c96201c64dc (patch)
tree29d97cd3d16314a32e3e8cb8ef7a6f18eedee5bf /puppet
parent5380b3add3c1cd9c016905d0c339744fc9f2be98 (diff)
set nagiosadmin htpasswd
Diffstat (limited to 'puppet')
-rw-r--r--puppet/modules/site_nagios/manifests/server.pp11
1 files changed, 9 insertions, 2 deletions
diff --git a/puppet/modules/site_nagios/manifests/server.pp b/puppet/modules/site_nagios/manifests/server.pp
index fe3ab542..7c17fe82 100644
--- a/puppet/modules/site_nagios/manifests/server.pp
+++ b/puppet/modules/site_nagios/manifests/server.pp
@@ -1,7 +1,7 @@
-class site_nagios::server {
+class site_nagios::server inherits nagios::base {
$nagios_hiera=hiera('nagios')
- $nagiosadmin_pw = $nagios_hiera['nagiosadmin_pw']
+ $nagiosadmin_pw = htpasswd_sha1($nagios_hiera['nagiosadmin_pw'])
$hosts = $nagios_hiera['hosts']
include nagios::defaults
@@ -13,6 +13,13 @@ class site_nagios::server {
#before => Class ['nagios::defaults']
}
+ File ['nagios_htpasswd'] {
+ source => undef,
+ content => "nagiosadmin:$nagiosadmin_pw",
+ mode => '0640',
+ }
+
+
# deploy serverside plugins
file { '/usr/lib/nagios/plugins/check_openvpn_server.pl':
source => 'puppet:///modules/nagios/plugins/check_openvpn_server.pl',