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
957134d7
Commit
957134d7
authored
Nov 08, 2012
by
Jeff Blaine
Committed by
jtimberman
Dec 10, 2012
Browse files
Introduce service_name attribute and reference it
Move "arch" service name case from recipe into attributes, too
parent
d1106a38
Changes
2
Hide whitespace changes
Inline
Side-by-side
attributes/default.rb
View file @
957134d7
...
...
@@ -26,6 +26,7 @@ default["rsyslog"]["server_search"] = "role:loghost"
default
[
"rsyslog"
][
"remote_logs"
]
=
true
default
[
"rsyslog"
][
"per_host_dir"
]
=
"%$YEAR%/%$MONTH%/%$DAY%/%HOSTNAME%"
default
[
"rsyslog"
][
"max_message_size"
]
=
"2k"
default
[
"rsyslog"
][
"service_name"
]
=
"rsyslog"
# The most likely platform-specific attributes
default
[
"rsyslog"
][
"user"
]
=
"root"
...
...
@@ -43,4 +44,6 @@ when "ubuntu"
end
when
"redhat"
default
[
"rsyslog"
][
"defaults_file"
]
=
"/etc/sysconfig/rsyslog"
when
"arch"
default
[
"rsyslog"
][
"service_name"
]
=
"rsyslogd"
end
recipes/default.rb
View file @
957134d7
...
...
@@ -72,8 +72,7 @@ if platform?("ubuntu")
end
end
service
"rsyslog"
do
service_name
"rsyslogd"
if
platform?
(
"arch"
)
service
"
#{
node
[
"rsyslog"
][
"service_name"
]
}
"
do
supports
:restart
=>
true
,
:reload
=>
true
action
[
:enable
,
:start
]
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