purplehazech / puppet-syslogng

Puppet module for managing syslog-ng.
http://forge.puppetlabs.com/purplehazech/syslogng
GNU Affero General Public License v3.0
4 stars 12 forks source link

Default source for FreeBSD #8

Closed alxwr closed 9 years ago

alxwr commented 9 years ago

Would you please make

source src {
  unix-dgram("/var/run/log");
  unix-dgram("/var/run/logpriv" perm(0600));
  internal(); file("/dev/klog");
};

the default source ('s_log') for FreeBSD jails?

(http://lists.freebsd.org/pipermail/freebsd-bugs/2013-June/053062.html)

I understand that you're (re-)using the SCL repository. Therefore I wrote an alternative source:

# -- files/scl/syslog-ng.conf.d/source.d/freebsd_jail_default.conf

##
# Default source for FreeBSD jails
#
# Conflicts with default.conf
#
source s_log {
  unix-dgram("/var/run/log");
  unix-dgram("/var/run/logpriv" perm(0600));
  internal(); file("/dev/klog");
};
hairmare commented 9 years ago

@awildpatchappears Could you add the output of the following commands?

facter osfamily
facter operatingsystem

I'm currently adding your changes but am to lazy to install FreeBSD :D

alxwr commented 9 years ago
~ # facter osfamily
FreeBSD
~ # facter operatingsystem
FreeBSD

@hairmare Thanks!

hairmare commented 9 years ago

I switched to using a local (to this repo) copy of default.conf for FreeBSD.

Has been released to the puppet module forge as 0.6.0.

Please open issues if you find anything else you need.