Sha256: 664bc94acf956895f6176955104c5c0736002a0f6033c29bb1336e6e6c26f169
Contents?: true
Size: 875 Bytes
Versions: 1
Compression:
Stored size: 875 Bytes
Contents
if ['solo', 'util'].include?(node[:instance_role]) node[:applications].each do |app, data| template "/etc/monit.d/#{app}_resque.monitrc" do owner 'root' group 'root' mode 0644 source "monitrc.erb" variables({ :app_name => app, #:max_mem => "400 MB", }) end template "/etc/init.d/#{app}_resque" do owner 'root' group 'root' mode 0744 source "initd.rb" variables({ :app_name => app, }) end execute "enable-resque" do command "rc-update add #{app}_resque default" action :run not_if "rc-update show | grep -q '^ *#{app}_resque |.*default" end execute "start-resque" do command %Q{/etc/init.d/#{app}_resque start} end execute "ensure-resque-is-setup-with-monit" do command %Q{monit reload} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resque-pool-0.0.12.1.alpha | examples/chef_cookbook/recipes/default.rb |