diff options
author | Micah Anderson <micah@riseup.net> | 2013-01-16 14:51:11 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2013-01-16 14:51:11 -0500 |
commit | ca7eb732064ce29fc83d4c32a4df7d9512d45802 (patch) | |
tree | 3cb45e3dbda264f73da726fc4c2a6aaa9d31d7f8 | |
parent | d8bf530ec42fdc4d2281169234964d28d8a689ac (diff) |
Debian's unbound status command doesn't work properly (see #685052), so setup a
parameter to toggle the hasstatus value
-rw-r--r-- | manifests/params.pp | 2 | ||||
-rw-r--r-- | manifests/service.pp | 3 |
2 files changed, 4 insertions, 1 deletions
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], } } |