From: Peter Palfrader Date: Wed, 2 Mar 2011 17:55:34 +0000 (+0100) Subject: I wonder if we can call functions in arguments X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=30e19317e07b69ba1ccaabd9d90e6003f04aad2c;p=mirror%2Fdsa-puppet.git I wonder if we can call functions in arguments --- diff --git a/manifests/site.pp b/manifests/site.pp index aff54f9e4..2f4f1291b 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -17,7 +17,7 @@ node default { $localinfo = yamlinfo('*', "/etc/puppet/modules/debian-org/misc/local.yaml") $nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml") $allnodeinfo = allnodeinfo("sshRSAHostKey ipHostNumber", "purpose mXRecord") - notice( sprintf("hoster for %s is %s", $fqdn, $nodeinfo) ) + notice( sprintf("hoster for %s is %s", $fqdn, getfromhash($nodeinfo, 'hoster', 'name') ) include munin-node include syslog-ng