Created
May 14, 2014 05:32
-
-
Save initcron/50d2ce03f41a8941ad1e to your computer and use it in GitHub Desktop.
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
#This script install and configures chef solo with initcron repository. This does the following, | |
# 1. Install Chef Solo/Chef Client | |
# 2. Install git | |
# 3. Create directory structure required by chef solo | |
# 5. Copies over chefcookbooks, roles, databags to appropriate location | |
# | |
#What to do after running this script? | |
# 1. Go to /etc/chef e.g. cd /etc/chef | |
# 2. Edit node.json, and configure runlist | |
# 3. Run "sudo chef-solo" | |
# | |
# | |
#!/bin/bash | |
echo "I: Installing Chef Solo/Chef Client.." | |
sudo true && curl -L http://opscode.com/chef/install.sh | sudo bash | |
echo "I: Installing git" | |
sudo yum install git -yq | |
echo "I: Creating Directory Structure Required by Chef Solo..." | |
sudo mkdir /opt/devops | |
sudo mkdir /etc/chef | |
sudo mkdir /var/chef-solo | |
sudo mkdir /var/chef-solo/cookbooks | |
sudo mkdir /var/chef-solo/roles | |
sudo mkdir /var/chef-solo/data_bags | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment