From f3ffa5c8fecd2afd180bf230c43278597bd00ef2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 18 Feb 2010 00:16:58 -0200 Subject: Trying to fix munin definitions --- manifests/init.pp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'manifests/init.pp') diff --git a/manifests/init.pp b/manifests/init.pp index 15bbf90..9820b10 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -27,7 +27,7 @@ class nodo { # We include munin configuration if it's not defined by # and exported resource. - if !defined(Nodo::vserver::munin[$hostname]) { + if !defined(Munin[$hostname]) { include munin::client } @@ -185,14 +185,8 @@ class nodo::vserver inherits nodo { dohwinfo => false, } - define munin($type, $id) { - # Use one port for each node - $munin_port = "59$id" - include munin::client - } - # Apply munin configuration for this node - Nodo::vserver::munin <| tag == $name |> + Munin <| tag == $name |> # Define a vserver instance define instance($context, $ensure = 'running', $proxy = false, $puppetmaster = false, $gitd = false, @@ -227,7 +221,7 @@ class nodo::vserver inherits nodo { } # Create a munin virtual resource to be realized in the node - @nodo::vserver::munin { + @munin { id => $id, tag => $name, } -- cgit v1.2.3