Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 432a5b15c2
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (12 sloc) 0.391 kb
define :monitrc, :name => nil, :variables => {} do
Chef::Log.info("Making monitrc for: #{params[:name]}")
template "#{node["monit"]["includes_dir"]}/#{params[:name]}.monitrc" do
owner "root"
group "root"
mode "0644"
source "#{params[:name]}.monitrc.erb"
variables params[:variables]
notifies :restart, resources(:service => "monit")
action :create
end
end
Jump to Line
Something went wrong with that request. Please try again.