summaryrefslogtreecommitdiff
path: root/puppet/modules/unbound/manifests/service.pp
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-07-12 16:46:10 -0400
committerMicah <micah@leap.se>2016-07-12 16:46:10 -0400
commitf5775156d8d8800247b8917ab6212c7eed16a124 (patch)
treecbfb53e2a37dbc9f5f8132819b9b03d5839d510e /puppet/modules/unbound/manifests/service.pp
parent40ea2656f072e23bbbccd22c39fb29a36390fa3a (diff)
git subrepo clone https://leap.se/git/puppet_unbound puppet/modules/unbound
subrepo: subdir: "puppet/modules/unbound" merged: "a26b91d" upstream: origin: "https://leap.se/git/puppet_unbound" branch: "master" commit: "a26b91d" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo" commit: "1e79595" Change-Id: I83719264de2c716035d34599d541cadd42319b74
Diffstat (limited to 'puppet/modules/unbound/manifests/service.pp')
-rw-r--r--puppet/modules/unbound/manifests/service.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/puppet/modules/unbound/manifests/service.pp b/puppet/modules/unbound/manifests/service.pp
new file mode 100644
index 00000000..f96f453e
--- /dev/null
+++ b/puppet/modules/unbound/manifests/service.pp
@@ -0,0 +1,22 @@
+# == Class: unbound::service
+#
+# Manages the unbound service. If $unbound::params::extended_service
+# is true then OS specific service things are included.
+#
+# === Examples
+#
+# include unbound::service
+#
+class unbound::service {
+ include unbound::params
+
+ if $unbound::params::extended_service {
+ class { $unbound::params::extended_service: }
+ }
+
+ service { $unbound::params::service:
+ ensure => running,
+ hasstatus => $unbound::params::hasstatus,
+ subscribe => File[$unbound::params::config],
+ }
+}