Skip to content

Instantly share code, notes, and snippets.

@chantra chantra/chef.sf
Created Aug 31, 2014

Embed
What would you like to do?
#!/bin/bash
CHEF_ROOT=/usr/local/chef
wget http://www.opscode.com/chef/install.sh -O - | bash
mkdir /etc/chef ${CHEF_ROOT}
cat <<EOF > /etc/chef/solo.rb
chef_root_path '${CHEF_ROOT}'
cookbook_path [chef_root_path + '/cookbooks', chef_root_path + '/site-cookbooks']
role_path chef_root_path + '/roles'
data_bag_path chef_root_path + '/data_bags'
json_attribs '/etc/chef/solo.json'
EOF
cat <<EOF > /etc/chef/solo.json
{
"run_list": [ "role[default]"]
}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.