Skip to content

Instantly share code, notes, and snippets.

@jordandm
Created February 21, 2012 22:53
Show Gist options
  • Save jordandm/1879612 to your computer and use it in GitHub Desktop.
Save jordandm/1879612 to your computer and use it in GitHub Desktop.
Revised side-wise install recipe
#
# Cookbook Name:: awsclient
#
include_recipe "aws"
# Removing dependency on api, do not believe it is required.
# include_recipe "apt"
#Install all depdencies for fog gems on ubuntu
# For Centos/Amazon compatibility change from "libxml2-dev" to "libxml2-devel"
yum_package = package "libxml2" do
action :nothing
end
yum_package.run_action(:install)
yum_package = package "libxml2-devel" do
action :nothing
end
yum_package.run_action(:install)
# For Centos/Amazon compatibility change from "libxslt-dev" to "libxslt-devel"
yum_package = package "libxslt-devel" do
action :install
end
yum_package.run_action(:install)
# Install gem using package, not gem install.
ruby_package = gem_package "fog" do
action :nothing
end
ruby_package.run_action(:install)
require 'rubygems'
Gem.clear_paths
require 'fog'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment