summaryrefslogtreecommitdiff
path: root/manifests/service/openbsd.pp
blob: 916a7ce96474504eabe427adddf0ec621cbbbe98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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}\"";
  }
}