summaryrefslogtreecommitdiff
path: root/puppet/modules/check_mk/manifests/init.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2016-11-04 10:54:28 -0400
committerMicah Anderson <micah@riseup.net>2016-11-04 10:54:28 -0400
commit34a381efa8f6295080c843f86bfa07d4e41056af (patch)
tree9282cf5d4c876688602705a7fa0002bc4a810bde /puppet/modules/check_mk/manifests/init.pp
parent0a72bc6fd292bf9367b314fcb0347c4d35042f16 (diff)
parent5821964ff7e16ca7aa9141bd09a77d355db492a9 (diff)
Merge branch 'develop'
Diffstat (limited to 'puppet/modules/check_mk/manifests/init.pp')
m---------puppet/modules/check_mk0
-rw-r--r--puppet/modules/check_mk/manifests/init.pp44
2 files changed, 44 insertions, 0 deletions
diff --git a/puppet/modules/check_mk b/puppet/modules/check_mk
deleted file mode 160000
-Subproject aa02571537af90ac73309e6e216c9417802548c
diff --git a/puppet/modules/check_mk/manifests/init.pp b/puppet/modules/check_mk/manifests/init.pp
new file mode 100644
index 00000000..4aab837d
--- /dev/null
+++ b/puppet/modules/check_mk/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': }
+ }
+
+}