diff options
author | mh <mh@immerda.ch> | 2012-06-05 19:39:49 -0300 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-06-05 19:39:49 -0300 |
commit | 9fd1de5acd9064a0d67ca9d2c13a829a3f628f39 (patch) | |
tree | eea2a9e6b54b733b9a5d2bdfeca9679f1a27a86d /manifests/register.pp | |
parent | e710a3bfd1d24a9fa4fdb217609635fec616a6f7 (diff) |
new style for 2.7
Diffstat (limited to 'manifests/register.pp')
-rw-r--r-- | manifests/register.pp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/manifests/register.pp b/manifests/register.pp index 254eaaf..14019d0 100644 --- a/manifests/register.pp +++ b/manifests/register.pp @@ -5,27 +5,27 @@ define munin::register ( $config = [] ) { - $fhost = $name - $client_type = 'client' + $fhost = $name + $client_type = 'client' - $munin_port_real = $port ? { - 'absent' => hiera('munin_port','4949'), - default => $port - } + $munin_port_real = $port ? { + 'absent' => hiera('munin_port','4949'), + default => $port + } - $hiera_munin_host = hiera('munin_host','') - $munin_host_real = $host ? { - 'absent' => $hiera_munin_host ? { - '' => $::fqdn, - 'fqdn' => $::fqdn, - default => $hiera_munin_host - }, - default => $host - } + $hiera_munin_host = hiera('munin_host','') + $munin_host_real = $host ? { + 'absent' => $hiera_munin_host ? { + '' => $::fqdn, + 'fqdn' => $::fqdn, + default => $hiera_munin_host + }, + default => $host + } - @@concat::fragment{ "munin_client_${fhost}_${munin_port_real}": - target => '/etc/munin/munin.conf', - content => template("munin/client.erb"), - tag => 'munin', - } + @@concat::fragment{ "munin_client_${fhost}_${munin_port_real}": + target => '/etc/munin/munin.conf', + content => template("munin/client.erb"), + tag => 'munin', + } } |