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
# ec2 ami-1515f67c | |
sudo sed -i 's/universe/multiverse universe/' /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get install -y ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential wget ssl-cert rubygems git-core rake librspec-ruby libxml-ruby thin couchdb zlib1g-dev libxml2-dev | |
sudo gem sources -a http://gems.opscode.com | |
sudo gem sources -a http://gemcutter.org # for nanite | |
sudo gem install cucumber merb-core nanite jeweler uuidtools json libxml-ruby --no-ri --no-rdoc | |
mkdir ~/src | |
cd ~/src | |
git clone git://github.com/opscode/chef.git |
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/ftp_stuff/definitions/ftp_user.rb | |
define :ftp_user, :password => nil do | |
begin | |
r = resources(:template => "/etc/ftp_passwd") | |
rescue | |
r = template "/etc/ftp_passwd" do | |
owner "root" | |
group "root" | |
mode "0600" | |
cookbook "ftppasswd.erb" |
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
### definition | |
# | |
# Cookbook Name:: example | |
# Definition:: example_config_geocoders | |
# | |
define :example_config_geocoders, :geocoders_list => nil, :app_config_dir => nil do | |
app_config_dir = params[:app_config_dir] | |
geocoders_list = params[:geocoders_list] | |
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
### definition | |
# | |
# Cookbook Name:: example | |
# Definition:: example_config_geocoders | |
# | |
define :example_config_geocoders, :geocoders_list => nil, :app_config_dir => nil do | |
app_config_dir = params[:app_config_dir] | |
geocoders_list = params[:geocoders_list] |
NewerOlder