diff options
author | varac <varacanero@zeromail.org> | 2016-06-09 17:35:00 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-06-14 12:05:18 +0200 |
commit | 191e76e270c36c70b46c5d3a2418669d3c95217c (patch) | |
tree | 57aab3b6608e6e6a92c66b5f722eb2686e8a427c /puppet/modules/unbound/manifests/service/openbsd.pp | |
parent | f0826bceeb5817ddf18ae1b3aed3a94f36c308f8 (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.git"
commit: "cb2995b"
Diffstat (limited to 'puppet/modules/unbound/manifests/service/openbsd.pp')
-rw-r--r-- | puppet/modules/unbound/manifests/service/openbsd.pp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/puppet/modules/unbound/manifests/service/openbsd.pp b/puppet/modules/unbound/manifests/service/openbsd.pp new file mode 100644 index 00000000..916a7ce9 --- /dev/null +++ b/puppet/modules/unbound/manifests/service/openbsd.pp @@ -0,0 +1,21 @@ +# == Class: unbound::service::openbsd +# +# Service things specific for OpenBSD. Sets the unbound_flags variable in +# /etc/rc.conf.local, and appends the path to the log device to syslogd_flags. +# +# === Examples +# +# include unbound::service::openbsd +# +class unbound::service::openbsd { + rcconf { 'unbound_flags': + value => $unbound::params::unbound_flags, + } + + # syslogd_flags needs one -a dir per chrooted service. Each can be a separate + # line, so don't use rcconf. + file_line { 'unbound syslogd_flags': + path => '/etc/rc.conf.local', + line => "syslogd_flags=\"\${syslogd_flags} -a ${unbound::params::logfile}\""; + } +} |