Skip to content

Instantly share code, notes, and snippets.

@shanbhardwaj
Created February 17, 2010 21:51
Show Gist options
  • Save shanbhardwaj/307054 to your computer and use it in GitHub Desktop.
Save shanbhardwaj/307054 to your computer and use it in GitHub Desktop.
require 'pp'
#
# Cookbook Name:: xapian-install
# Recipe:: default
#
node[:applications].each do |app_name,data|
case node[:instance_role]
# when "solo", "app", "app_master"
when "app_master"
# bash "install-xapian " do
# user "root"
# code 'echo "dev-libs/xapian ~x86" >> /etc/portage/package.keywords/ec2'
# end
# bash "append-portage" do
# user "root"
# code 'echo "dev-libs/xapian-bindings ~x86" >> /etc/portage/package.keywords/ec2'
# end
execute "emerge-xapian" do
command 'emerge --sync'
command 'emerge dev-libs/xapian-bindings'
end
# command 'sh -c \'echo "dev-libs/xapian ~x86" >> /etc/portage/package.keywords/ec2\''
# command 'sh -c \'echo "dev-libs/xapian-bindings ~x86" >> /etc/portage/package.keywords/ec2\''
# command 'emerge --sync'
# command 'emerge dev-libs/xapian-bindings'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment