summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 75698f9..16c8dce 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -6,7 +6,8 @@ class check_mk (
$workspace = '/root/check_mk',
$omd_service_name = 'omd',
$http_service_name = 'httpd',
- $xinitd_service_name = 'xinetd' ) {
+ $xinitd_service_name = 'xinetd',
+ $omdadmin_htpasswd = undef ) {
class { 'check_mk::install':
filestore => $filestore,
@@ -22,4 +23,9 @@ class check_mk (
class { 'check_mk::service':
require => Class['check_mk::config'],
}
+ if $omdadmin_htpasswd {
+ class { 'check_mk::htpasswd':
+ password => $omdadmin_htpasswd
+ }
+ }
}