From 76ec4642be1a8bc64380c077a5890c4d0f4243e0 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 11 Sep 2015 21:16:42 -0300 Subject: Autoload definitions --- manifests/defines/munin_node.pp | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 manifests/defines/munin_node.pp (limited to 'manifests/defines/munin_node.pp') diff --git a/manifests/defines/munin_node.pp b/manifests/defines/munin_node.pp deleted file mode 100644 index f867fd3..0000000 --- a/manifests/defines/munin_node.pp +++ /dev/null @@ -1,27 +0,0 @@ -# Define a munin node -define munin_node( - $port = hiera('nodo::munin_node::port', '4949'), - $allow = hiera('nodo::munin_node::allow', ''), - $host = hiera('nodo::munin_node::host', $::fqdn), - $listen = hiera('nodo::munin_node::listen', '*'), - $config = hiera('nodo::munin_node::config', [ 'use_node_name yes', 'load.load.warning 5', 'load.load.critical 10' ]) -) { - - case $allow { - '': { fail("Please set nodo::munin_node::allow in your config") } - } - - package { "munin-plugins-extra": - ensure => "present", - } - - class { 'munin::client': - port => $port, - allow => $allow, - host => $host, - listen => $listen, - config => $config, - } - - munin::plugin { apt_all: ensure => present; } -} -- cgit v1.2.3