Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
mirror
blackfire-cookbook
Commits
b899e467
Unverified
Commit
b899e467
authored
Feb 02, 2017
by
Zaid Daba'een
Committed by
Tugdual Saunier
Feb 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent restart with no server credentials which causes exit code 1
parent
a6c166d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
recipes/agent.rb
recipes/agent.rb
+2
-0
No files found.
recipes/agent.rb
View file @
b899e467
...
...
@@ -31,6 +31,8 @@ template '/etc/blackfire/agent' do
end
service
'blackfire-agent'
do
not_if
{
node
[
cookbook_name
][
'agent'
][
'server_id'
].
to_s
.
empty?
}
not_if
{
node
[
cookbook_name
][
'agent'
][
'server_token'
].
to_s
.
empty?
}
supports
status:
true
,
start:
true
,
stop:
true
,
restart:
true
action
[
:enable
]
subscribes
:restart
,
'template[/etc/blackfire/agent]'
,
node
[
cookbook_name
][
'agent'
][
'restart_mode'
]
...
...
Write
Preview
Markdown
is supported
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