Skip to content

Instantly share code, notes, and snippets.

@stoshiya
Last active August 29, 2015 14:01
Show Gist options
  • Save stoshiya/9cebd38f3569f05f4a4b to your computer and use it in GitHub Desktop.
Save stoshiya/9cebd38f3569f05f4a4b to your computer and use it in GitHub Desktop.

AWS EC2でChef Solo

$ sudo yum update -y
$ sudo yum install -y ruby-gem ruby-devel gcc
$ sudo gem install knife-solo --no-ri --no-rdoc
$ knife configure

$ knife solo init chef-solo
$ cd chef-solo

$ knife cookbook create HOGEHOGE -o site-cookbooks
$ vim site-cookbooks/HOGEHOGE/recipes/default.rb
$ vim localhost.json
$ sudo /usr/local/bin/chef-solo -c solo.rb -j localhost.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment