-
Notifications
You must be signed in to change notification settings - Fork 11
Very Rough Work Workflow Wiki
mgifford edited this page Oct 17, 2012
·
19 revisions
- http://devops.mashion.net/2011/08/04/chef-solo-basics/ with video https://www.youtube.com/watch?v=1G6bd4b91RU
- http://wiki.opscode.com/display/chef/Knife
- https://github.com/matschaffer/knife-solo
- Set up RVM $ curl -L get.rvm.io | bash -s 1.15.8
$ rvm reload
- Make sure you are running the right version of ruby $ ruby -v
$ rvm use ruby-1.9.3-p194
$ gem install knife-solo
Check that it's good:
$ knife -v
-
Set up knife defaults $ knife configure -r . --defaults
-
Set up knife demo $ knife kitchen solodemo
$ cd solodemo/
$ knife cookbook create nginx -o cookbooks
$ cd cookbooks/nginx/recipes
$ vi default.rb
$ vi solodemo/nodes/example.com
Json file with recepes:
{ "run_list": ["recipe[git]"] }
$ knife prepare -i ~/.ssh/OpenConcept.pem [email protected]
$ knife cook -i ~/.ssh/OpenConcept.pem [email protected]
$ git clone https://github.com/opscode-cookbooks/git.git
$ vi nodes/example.com
$ knife cook -i ~/.ssh/OpenConcept.pem [email protected]
$ knife washup -i ~/.ssh/OpenConcept.pem [email protected]
- Set up RVM $ curl -L get.rvm.io | bash -s 1.15.8
$ rvm reload
- Clone git repo for ariadne
- From the ariadne directory use Rake to setup commands.
- Start VirtualBox, do vagrant up & vagrant ssh
- Verify you can view the site at http://???.dev
- At the end logout of your vagrant terminal and do vagrant destroy
- Change into the ariadne directory from the command line (something will automatically run if you've done it right).
- Login server with vagrant ssh and do required development
- How is the filesystem/db saved between uses?
- Access the site using http://??.dev
- At the end logout of your vagrant terminal and do vagrant destroy
- Use https://github.com/lynaghk/vagrant-ec2
- or maybe http://wiki.opscode.com/display/chef/EC2+Bootstrap+Fast+Start+Guide
- http://www.agileweboperations.com/amazon-ec2-instances-with-opscode-chef-using-knife
- http://markbirbeck.com/blog/2012/03/16/using-knife-to-launch-ec2-instances-without-a-chef-server
- but probably https://github.com/opscode/knife-ec2
- https://github.com/wch/vagrant-ec2-r
- Set up http://wiki.opscode.com/display/chef/Knife https://github.com/igal/pocketknife or Chef Solo to access ariadne configs
- Do something to configure server