diff options
author | mh <mh@immerda.ch> | 2011-11-05 14:14:32 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-11-05 14:14:32 +0100 |
commit | 9b161f0c61bbd30960e663eceef8f1b35f633507 (patch) | |
tree | 340e8f17084fc4b71478fb9b098f8d964d8fa62d /manifests/register.pp | |
parent | 33380e238f3ac37ac79f30485fdebbc5dd10170b (diff) |
use hiera to configure munin node specific things
Diffstat (limited to 'manifests/register.pp')
-rw-r--r-- | manifests/register.pp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/manifests/register.pp b/manifests/register.pp index 78d13d3..3c542ff 100644 --- a/manifests/register.pp +++ b/manifests/register.pp @@ -9,18 +9,16 @@ define munin::register ( $client_type = 'client' $munin_port_real = $port ? { - 'absent' => $munin_port ? { - '' => 4949, - default => $munin_port - }, + 'absent' => hiera('munin_port','4949'), default => $port } + $hiera_munin_host = hiera('munin_host','') $munin_host_real = $host ? { - 'absent' => $munin_host ? { + 'absent' => $hiera_munin_host ? { '' => $fqdn, 'fqdn' => $fqdn, - default => $munin_host + default => $hiera_munin_host }, default => $host } |