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
121a42ac
Commit
121a42ac
authored
Jan 15, 2011
by
jtimberman
Browse files
COOK-318 use ::File instead of File in recipes
parent
5e4d28f9
Changes
4
Hide whitespace changes
Inline
Side-by-side
metadata.json
View file @
121a42ac
...
...
@@ -92,5 +92,5 @@
"rsyslog::client"
:
"Sets up a client to log to a remote rsyslog server"
,
"rsyslog::server"
:
"Sets up an rsyslog server"
},
"version"
:
"0.9.4"
}
\ No newline at end of file
"version"
:
"0.9.5"
}
metadata.rb
View file @
121a42ac
...
...
@@ -3,7 +3,7 @@ maintainer_email "cookbooks@opscode.com"
license
"Apache 2.0"
description
"Installs and configures rsyslog"
long_description
IO
.
read
(
File
.
join
(
File
.
dirname
(
__FILE__
),
'README.rdoc'
))
version
"0.9.
4
"
version
"0.9.
5
"
recipe
"rsyslog"
,
"Installs rsyslog"
recipe
"rsyslog::client"
,
"Sets up a client to log to a remote rsyslog server"
...
...
recipes/client.rb
View file @
121a42ac
...
...
@@ -38,6 +38,6 @@ unless node[:rsyslog][:server]
file
"/etc/rsyslog.d/server.conf"
do
action
:delete
notifies
:reload
,
resources
(
:service
=>
"rsyslog"
),
:delayed
only_if
do
File
.
exists?
(
"/etc/rsyslog.d/server.conf"
)
end
only_if
do
::
File
.
exists?
(
"/etc/rsyslog.d/server.conf"
)
end
end
end
recipes/server.rb
View file @
121a42ac
...
...
@@ -42,7 +42,7 @@ file "/etc/rsyslog.d/remote.conf" do
action
:delete
backup
false
notifies
:reload
,
resources
(
:service
=>
"rsyslog"
),
:delayed
only_if
do
File
.
exists?
(
"/etc/rsyslog.d/remote.conf"
)
end
only_if
do
::
File
.
exists?
(
"/etc/rsyslog.d/remote.conf"
)
end
end
template
"/etc/cron.d/rsyslog_gz"
do
...
...
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