Created
February 15, 2012 18:33
-
-
Save turtlebender/1838027 to your computer and use it in GitHub Desktop.
Initialize GO Box
This file contains hidden or 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
#!/bin/bash | |
sudo apt-get install -y curl wget sudo | |
sudo apt-get install -y ruby rubygems ruby-dev git | |
sudo apt-get install -y libhaml-ruby1.8 | |
sudo gem install json chef haml sass --no-ri --no-rdoc | |
for i in ~/chef-repo/cookbooks/* ; do echo "0.9.9" > $i/.version ; done | |
cat << 'EOF' > /tmp/solo.rb | |
file_cache_path "/var/chef-solo" | |
cookbook_path File.expand_path("~/chef-repo/cookbooks") | |
role_path File.expand_path("~/chef-repo/roles") | |
data_bag_path File.expand_path("~/chef-repo/data_bags") | |
EOF | |
cat << 'EOF' > /tmp/node.json | |
{ | |
"nginx": { | |
"sendfile": "off" | |
}, | |
"globus_online": { | |
"graph_domain_name": "test.api.globuscs.info" | |
}, | |
"run_list": [ "role[base]", "role[go_web]" ] | |
} | |
EOF | |
sudo mkdir /var/chef-solo | |
sudo sh -c "PATH=$PATH:/var/lib/gems/1.8/bin:$PATH GLOBUS_LOCATION=/usr GLOBUS_FLAVOR= chef-solo -j /tmp/node.json -c /tmp/solo.rb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment