Created
January 2, 2015 10:54
-
-
Save nagataka/9fcd4fd4a08465172f1a to your computer and use it in GitHub Desktop.
User data for EC2(see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html#user-data-shell-scripts)
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 curl -L http://www.opscode.com/chef/install.sh | sudo bash | |
| sudo /opt/chef/embedded/bin/gem install chef --no-ri --no-rdoc | |
| sudo /opt/chef/embedded/bin/gem install knife-solo --no-ri --no-rdoc | |
| mkdir -p ~/workspace/chef-repo | |
| cd ~/workspace/chef-repo | |
| sudo apt-get -y install git | |
| git clone https://github.com/nagataka/cookbooks.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment