Skip to content

Instantly share code, notes, and snippets.

@kesor
Last active December 16, 2015 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kesor/5411806 to your computer and use it in GitHub Desktop.
Save kesor/5411806 to your computer and use it in GitHub Desktop.
## using https://github.com/apsoto/monit/ cookbook
## this works
bind_cookbook_name = cookbook_name
monitrc 'redis' do
action :enable
reload :delayed
variables({ :pidfile => "/var/run/redis/6379/redis_6379.pid" })
template_cookbook bind_cookbook_name
template_source 'redis_monit.conf.erb'
end
## this does not work
monitrc 'redis' do
action :enable
reload :delayed
variables({ :pidfile => "/var/run/redis/6379/redis_6379.pid" })
template_cookbook cookbook_name
template_source 'redis_monit.conf.erb'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment