Skip to content

Instantly share code, notes, and snippets.

@maplebed
Created January 15, 2013 23:09
Show Gist options
  • Save maplebed/4543032 to your computer and use it in GitHub Desktop.
Save maplebed/4543032 to your computer and use it in GitHub Desktop.
82 # if ganglia and the gaglia-monitor-python packages are installed,
83 # enable the existing memcached module
84
85 if node.recipes.include?("ganglia::default")
86 include_recipe "ganglia::default"
87 execute "enable memcached module" do
88 only_if "test -e /etc/ganglia/conf.d/memcached.pyconf.disabled"
89 cwd "/etc/ganglia/conf.d/"
90 command "mv memcached.pyconf.disabled memcached.pyconf"
91 creates "memcached.pyconf"
92 notifies :restart, "service[ganglia-monitor]"
93 end
94 end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment