From ca7eb732064ce29fc83d4c32a4df7d9512d45802 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 16 Jan 2013 14:51:11 -0500 Subject: Debian's unbound status command doesn't work properly (see #685052), so setup a parameter to toggle the hasstatus value --- manifests/params.pp | 2 ++ manifests/service.pp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index ddeb8fd..aaaf3ba 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -3,6 +3,7 @@ class unbound::params { 'OpenBSD': { $package = 'unbound' $service = 'unbound' + $hasstatus = true $dir = '/var/unbound/etc' $logfile = '/var/unbound/dev/log' $control_setup = '/usr/local/sbin/unbound-control-setup' @@ -15,6 +16,7 @@ class unbound::params { 'ubuntu', 'debian': { $package = 'unbound' $service = 'unbound' + $hasstatus = false $dir = '/etc/unbound' $logfile = '' $control_setup = '/usr/sbin/unbound-control-setup' diff --git a/manifests/service.pp b/manifests/service.pp index 2556999..f96f453 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -15,7 +15,8 @@ class unbound::service { } service { $unbound::params::service: - ensure => running, + ensure => running, + hasstatus => $unbound::params::hasstatus, subscribe => File[$unbound::params::config], } } -- cgit v1.2.3