Skip to content
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.

Make statefile directory for package installation #88

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@
mode "0700"
end

if state_file = node["monit"]["statefile"]
directory state_file.split("/")[0..-2].join('/') do
recursive true
end
end

# enable service startup
file "/etc/default/monit" do
owner "root"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def redhat?
end

if redhat?
its(:stdout) { should match(/The Monit daemon \d\.\d\.\d uptime: \d+m/) }
its(:stdout) { should match(/The Monit daemon \d\.\d+ uptime: \d+m/) }
else
its(:stdout) { should match(/status\s+(Initializing|Running)/) }
end
Expand Down