diff options
author | Micah Anderson <micah@riseup.net> | 2015-06-26 16:10:32 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2015-06-26 16:10:32 -0400 |
commit | 436b4f3044c13498760cb28f8eb9159bdced48e2 (patch) | |
tree | b65073376fc449b32e3d621baec76ba216e897d5 /manifests/agent | |
parent | 6fe1e0f3fb251aebdc3e26490e1df327012424f2 (diff) |
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',
}
Diffstat (limited to 'manifests/agent')
-rw-r--r-- | manifests/agent/install_local.pp | 12 |
1 files changed, 12 insertions, 0 deletions
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'], + } +} |