diff options
author | Keith Burdis <keith@burdis.org> | 2013-02-07 12:43:50 +0000 |
---|---|---|
committer | Keith Burdis <keith@burdis.org> | 2013-02-07 12:43:50 +0000 |
commit | 6405936dae74ed336f1421a27c7c22abf6d02d9e (patch) | |
tree | 3b37c068b7814c628e77313f2cae07a9ae56322a /manifests/init.pp | |
parent | eb88e7dfeef1939130394671568fba189f752c7e (diff) |
Initial Nagios server-side installation and setup.
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp new file mode 100644 index 0000000..491571e --- /dev/null +++ b/manifests/init.pp @@ -0,0 +1,23 @@ +class check_mk ( + $version, + $filestore = 'puppet:///files/check_mk', + $workspace = '/root/check_mk', +) { + if ! defined(File[$workspace]) { + file { $workspace: + ensure => directory, + } + } + class { 'check_mk::install': + filestore => $filestore, + version => $version, + workspace => $workspace, + require => File[$workspace], + } + class { 'check_mk::config': + require => Class['check_mk::install'], + } + class { 'check_mk::service': + require => Class['check_mk::config'], + } +} |