X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprofile%2Fmanifests%2Fmonitoring.pp;h=99956c3bc1bd88314b5fd88c58ff91eb93a1ca9f;hb=1b2e270afc9da7bbab85e0d729d317a97cca962f;hp=beabe70ea22ac881fb77a2818da943177fa9b464;hpb=d8f933bd00a5cc416da00cd26c9d13f7a1c02486;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/modules/profile/manifests/monitoring.pp b/modules/profile/manifests/monitoring.pp index beabe70..99956c3 100644 --- a/modules/profile/manifests/monitoring.pp +++ b/modules/profile/manifests/monitoring.pp @@ -1,8 +1,8 @@ class profile::monitoring ( Optional[String] $naemon_url = undef, Optional[String] $naemon_token = undef, -) { - ensure_packages(["naemon", "cnagios"]) +) inherits profile::monitoring::params { + ensure_packages(["naemon", "cnagios"], { ensure => latest }) file { "/etc/naemon": ensure => "directory", @@ -28,6 +28,13 @@ class profile::monitoring ( content => template("profile/monitoring/naemon.cfg.erb"), } -> + file { $objects: + ensure => "file", + owner => "naemon", + group => "naemon", + mode => "0600" + } + -> service { "naemon": ensure => "running", enable => true,