Sha256: a9205644e86d1231613d5f73ac2624d4b3b029e0236ed52d024551e87f09a2f0
Contents?: true
Size: 1.12 KB
Versions: 29
Compression:
Stored size: 1.12 KB
Contents
namespace :rubber do namespace :munin do rubber.allow_optional_tasks(self) after "rubber:install_packages", "rubber:munin:custom_install" # sometimes apt-get install of munin doesn't end up configuring # plugins (e.g. installing postfix at same time, postfix plugin # configure barfs as postfix not configured yet) desc <<-DESC Reconfigures munin DESC task :custom_install do rubber.run_script 'setup_munin_plugins', <<-ENDSCRIPT munin-node-configure --shell --remove-also > /tmp/setup-munin-plugins sh /tmp/setup-munin-plugins ENDSCRIPT restart end # after "deploy:stop", "rubber:munin:stop" # before "deploy:start", "rubber:munin:start" # after "deploy:restart", "rubber:munin:restart" desc "Start munin system monitoring" task :start do run "/etc/init.d/munin-node start" end desc "Stop munin system monitoring" task :stop, :on_error => :continue do run "/etc/init.d/munin-node stop" end desc "Restart munin system monitoring" task :restart do stop start end end end
Version data entries
29 entries across 29 versions & 5 rubygems