Skip to content

Instantly share code, notes, and snippets.

@evan4498
Forked from eherot/gist:2917872
Created June 12, 2012 14:35
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 evan4498/2917908 to your computer and use it in GitHub Desktop.
Save evan4498/2917908 to your computer and use it in GitHub Desktop.
failure
case node[:platform]
when "ubuntu","debian"
package( "libxslt-dev" ).run_action( :install )
package( "libxml2-dev" ).run_action( :install )
when "redhat","centos","fedora","scientific"
package( "libxslt-devel" ).run_action( :install )
package( "libxml2-devel" ).run_action( :install )
end
r = gem_package "rackspace-monitoring" do
version node['cloud_monitoring']['version']
action :nothing
end
r.run_action(:install)
require 'rubygems'
Gem.clear_paths
require 'rackspace-monitoring'
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment