diff options
author | Micah <micah@leap.se> | 2016-05-24 10:19:33 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-05-24 10:19:33 -0400 |
commit | 85a00655cbfa53ddbae455e26700d3d9888bf9f0 (patch) | |
tree | 0cc7aa9b43931643685037195f68c4bdbfc01ab3 /puppet/modules/unbound/manifests/service | |
parent | 0e9121a885d545e14488f9aec1a861ba90b7dbb2 (diff) | |
parent | c9be0212c9e45f609d299f5fbdf8f13a63747be6 (diff) |
Merge commit 'c9be0212c9e45f609d299f5fbdf8f13a63747be6' as 'puppet/modules/unbound'
Diffstat (limited to 'puppet/modules/unbound/manifests/service')
-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}\""; + } +} |