-
-
Save fujin/1879618 to your computer and use it in GitHub Desktop.
Revised side-wise install recipe
This file contains 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
# | |
# Cookbook Name:: awsclient | |
# | |
include_recipe "aws" | |
# Removing dependency on api, do not believe it is required. | |
# include_recipe "apt" | |
packages = value_for_platform( "centos" => { "default" => %w[libxml2 libxml2-devel libxslt-devel] } ) | |
packages.each { |p| yum_package(p) { action :nothing}.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