Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mirror
rsyslog
Commits
cd5d17a2
Commit
cd5d17a2
authored
Dec 06, 2016
by
Tim Smith
Committed by
GitHub
Dec 06, 2016
Browse files
All Fedora releases are systemd now so simplify the check
parent
4b7db937
Changes
1
Hide whitespace changes
Inline
Side-by-side
attributes/default.rb
View file @
cd5d17a2
...
...
@@ -114,8 +114,8 @@ when 'rhel', 'fedora'
'uucp,news.crit'
=>
"
#{
node
[
'rsyslog'
][
'default_log_dir'
]
}
/spooler"
,
'local7.*'
=>
"
#{
node
[
'rsyslog'
][
'default_log_dir'
]
}
/boot.log"
}
# RHEL >= 7 and Fedora
>= 19
use journald in systemd. Amazon Linux doesn't.
if
node
[
'platform'
]
!=
'amazon'
&&
(
node
[
'platform_version'
].
to_i
=
=
7
||
node
[
'platform_version'
].
to_i
>=
19
)
# RHEL >= 7 and Fedora use journald in systemd. Amazon Linux doesn't.
if
node
[
'platform'
]
!=
'amazon'
&&
node
[
'platform_version'
].
to_i
>
=
7
default
[
'rsyslog'
][
'modules'
]
=
%w(imuxsock imjournal)
default
[
'rsyslog'
][
'additional_directives'
]
=
{
'OmitLocalLogging'
=>
'on'
,
'IMJournalStateFile'
=>
'imjournal.state'
}
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment