diff options
author | Micah <micah@leap.se> | 2016-05-24 10:19:41 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-05-24 10:19:41 -0400 |
commit | c9d50f333a81c716f3e227e9eb449dc76b6eb6e3 (patch) | |
tree | 1a09a2775045f854000f6cba5ee4efb2c3a802b2 /manifests/init.pp |
Squashed 'puppet/modules/check_mk/' content from commit aa02571
git-subtree-dir: puppet/modules/check_mk
git-subtree-split: aa02571537af90ac73309e6e216c9417802548c3
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp new file mode 100644 index 00000000..4aab837d --- /dev/null +++ b/manifests/init.pp @@ -0,0 +1,44 @@ +# configure check_mk server +class check_mk ( + $filestore = undef, + $host_groups = undef, + $package = 'omd-0.56', + $site = 'monitoring', + $workspace = '/root/check_mk', + $omd_service_name = 'omd', + $http_service_name = 'httpd', + $xinitd_service_name = 'xinetd', + $omdadmin_htpasswd = undef, + $use_ssh = false, + $shelluser = 'monitoring', + $shellgroup = 'monitoring', + $use_storedconfigs = true, + $inventory_only_on_changes = true) { + + class { 'check_mk::install': + filestore => $filestore, + package => $package, + site => $site, + workspace => $workspace, + } + class { 'check_mk::config': + host_groups => $host_groups, + site => $site, + use_storedconfigs => $use_storedconfigs, + inventory_only_on_changes => $inventory_only_on_changes, + require => Class['check_mk::install'], + } + class { 'check_mk::service': + require => Class['check_mk::config'], + } + if $omdadmin_htpasswd { + class { 'check_mk::htpasswd': + password => $omdadmin_htpasswd + } + } + + if ( $use_ssh == true ) { + class { 'check_mk::server::configure_ssh': } + } + +} |