Skip to content

Instantly share code, notes, and snippets.

@vpack
Last active August 29, 2015 14:16
Show Gist options
  • Save vpack/7a9d19aff6a785e0ea50 to your computer and use it in GitHub Desktop.
Save vpack/7a9d19aff6a785e0ea50 to your computer and use it in GitHub Desktop.
Chef dk install in Amazon Linux
curl -L https://www.opscode.com/chef/install.sh | bash
or
curl -L https://www.opscode.com/chef/install.sh | bash -s -- -v 11
rpm -Uvh https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chefdk-0.4.0-1.x86_64.rpm
mkdir /var/chef
cd /var/chef
yum -y install git
# knife cookbook site download apache2
# tar -zxvf apache2-3.0.1.tar.gz
cat > metadata.rb <<EOF
name 'my-wiki'
EOF
cat > Berksfile << EOF
source 'https://supermarket.chef.io'
cookbook 'mysql-chef_gem', '= 0.0.5'
cookbook 'mediawiki'
EOF

Contributing:

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Added some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment