From 436b4f3044c13498760cb28f8eb9159bdced48e2 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Fri, 26 Jun 2015 16:10:32 -0400 Subject: add agent::install_local to facilitate installation of local checks, for example: check-mk::agent::install_local { 'check-kvm' : ensure => present, source => 'puppet:///modules/ganeti/check-kvm', } --- manifests/agent/install_local.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 manifests/agent/install_local.pp diff --git a/manifests/agent/install_local.pp b/manifests/agent/install_local.pp new file mode 100644 index 0000000..77268db --- /dev/null +++ b/manifests/agent/install_local.pp @@ -0,0 +1,12 @@ +define check-mk::agent::install_local($source=undef, $content=undef, $ensure='present') { + @file { "/usr/lib/check_mk_agent/local/${name}" : + ensure => $ensure, + owner => 'root', + group => 'root', + mode => '0755', + content => $content, + source => $source, + tag => 'check-mk::local', + require => Package['check-mk-agent'], + } +} -- cgit v1.2.3