Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor to allow logfile to work properly #4

Merged
merged 9 commits into from Apr 22, 2015
Next

loggly::syslog_ng should check conf.d declaration

loggly::syslog_ng could cause duplicate declaration of /etc/syslog-ng/conf.d
  • Loading branch information
kdask committed Feb 28, 2014
commit 49bda536b0e85079f773f5e0f0fc8e7b807aa960
@@ -50,13 +50,14 @@

# Ensure our configuration snippet directory exists before putting
# configuration snippets there
file { '/etc/syslog-ng/conf.d':
ensure => 'directory',
owner => 'root',
group => 'root',
mode => '0755',
if !defined(File['/etc/syslog-ng/conf.d']){
file { '/etc/syslog-ng/conf.d':
ensure => 'directory',
owner => 'root',
group => 'root',
mode => '0755',
}
}

# Ensure we are using the correct source name on each distro
$syslog_source = $::osfamily ? {
'RedHat' => 's_sys',
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.