Last active
December 16, 2015 09:19
-
-
Save kesor/5411806 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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