Provision a remote server using knife solo; cookbooks managed by berkshelf
- You already understand what's happening here - https://github.com/sajnikanth/berksdemo
- A Vagrant VM up and running using the Vagrantfile in this repo
- An EC2 instance (open ports 22 and 80) up and running. Update
~/.ssh/configso you can ssh into it like sossh ec2.
git clone git@github.com:sajnikanth/knife-solo-demo.git && cd knife-solo-demobundle install- install all pre-requisite gems - chef, knife-solo, berkshelfberks install --path cookbooks/#cookbooks get downloaded to cookbooks folderknife solo prepare vagrant@192.168.12.34- installs chef solo on Vagrant VMknife solo cook vagrant@192.168.12.34copies cookbooks and runs the recipies on VM- Open the browser on your host (osx) and hit 192.168.12.34; You should see a 404 from nginx (this means it is installed)
- Now we do the same for ec2, but use
knife solo bootstrapwhich combinesprepareandcook knife solo bootstrap ec2- Open the browser on your host (osx) and hit ec2 machine's IP; You should see a 404 from nginx (this means it is installed)