diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-11 07:45:22 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-11 08:02:15 +0200 |
commit | 0363f38e186b8c942a6db2de4974befbc373f618 (patch) | |
tree | 4c3b08bface133b92748f33bfdb0c58065433a91 /modules/profile/manifests/monitoring.pp | |
parent | bff7d1b743bc2239d7ce7ced37dd03e4e846c03d (diff) | |
download | Puppet-0363f38e186b8c942a6db2de4974befbc373f618.tar.gz Puppet-0363f38e186b8c942a6db2de4974befbc373f618.tar.zst Puppet-0363f38e186b8c942a6db2de4974befbc373f618.zip |
Refactor a bit monitoring profile
Diffstat (limited to 'modules/profile/manifests/monitoring.pp')
-rw-r--r-- | modules/profile/manifests/monitoring.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/profile/manifests/monitoring.pp b/modules/profile/manifests/monitoring.pp index 7df4ce9..8633626 100644 --- a/modules/profile/manifests/monitoring.pp +++ b/modules/profile/manifests/monitoring.pp | |||
@@ -1,7 +1,7 @@ | |||
1 | class profile::monitoring ( | 1 | class profile::monitoring ( |
2 | Optional[String] $naemon_url = undef, | 2 | Optional[String] $naemon_url = undef, |
3 | Optional[String] $naemon_token = undef, | 3 | Optional[String] $naemon_token = undef, |
4 | ) { | 4 | ) inherits profile::monitoring::params { |
5 | ensure_packages(["naemon", "cnagios"]) | 5 | ensure_packages(["naemon", "cnagios"]) |
6 | 6 | ||
7 | file { "/etc/naemon": | 7 | file { "/etc/naemon": |
@@ -28,7 +28,7 @@ class profile::monitoring ( | |||
28 | content => template("profile/monitoring/naemon.cfg.erb"), | 28 | content => template("profile/monitoring/naemon.cfg.erb"), |
29 | } | 29 | } |
30 | -> | 30 | -> |
31 | file { "/etc/naemon/objects.cfg": | 31 | file { $objects: |
32 | ensure => "file", | 32 | ensure => "file", |
33 | owner => "naemon", | 33 | owner => "naemon", |
34 | group => "naemon", | 34 | group => "naemon", |