summaryrefslogtreecommitdiff
path: root/manifests/register.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-06-13 20:40:57 -0300
committermh <mh@immerda.ch>2012-06-13 20:40:57 -0300
commitc95f0b2fcf4f35b1a7ae3ad9c04600a32ab2bb43 (patch)
treeb643e6144b1fe32cdba08692cce075a0fc2aa2b5 /manifests/register.pp
parentb4a30b6255ca495b98803317ad691fa1a26a4987 (diff)
migrate away from hiera stuff
Diffstat (limited to 'manifests/register.pp')
-rw-r--r--manifests/register.pp19
1 files changed, 2 insertions, 17 deletions
diff --git a/manifests/register.pp b/manifests/register.pp
index 14019d0..2645542 100644
--- a/manifests/register.pp
+++ b/manifests/register.pp
@@ -1,6 +1,6 @@
define munin::register (
- $host = 'absent',
- $port = 'absent',
+ $host = $::fqdn,
+ $port = '4949',
$description = 'absent',
$config = []
)
@@ -8,21 +8,6 @@ define munin::register (
$fhost = $name
$client_type = 'client'
- $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
- }
-
@@concat::fragment{ "munin_client_${fhost}_${munin_port_real}":
target => '/etc/munin/munin.conf',
content => template("munin/client.erb"),