vagrant-centos-nginx_sinatra is setup sample of vagrant and chef-solo.
When Vagrant up, chef-solo will setup following
- launch VM CentOS
- reverse proxy by nginx
- setup rbenv
- HelloWorld by Sinatra
# install vagrant
$ gem install vagrant
# setup VM
$ vagrant box add centos http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.3-x86_64-v20130101.box
# setup vagrant-centos-nginx_sinatra
$ git clone https://github.com/amazedkoumei/vagrant-centos-nginx_sinatra.git
$ cd vagrant-centos-nginx_sinatra
$ git submodule init
$ git submodule update
# launch VM
$ vagrant up
Access to 192.168.33.11 in your browser When VM has launched.
You can see "Hello! Sinatra is Works!"
"appuser" has created with installation.
$ vagrant ssh
$ su - appuser
And app is here.
$ ls ~/bin
bundle config.ru Gemfile Gemfile.lock myapp.rb rackup.sh
It would be nice if you install
install command is
$ cd vagrant-centos-nginx_sinatra
$ git submodule add https://github.com/opscode-cookbooks/application.git chef-repo/cookbooks/application
$ git submodule add https://github.com/opscode-cookbooks/application_nginx chef-repo/cookbooks/application_nginx
And setup with referring to the readme…
Use as git submodule
- opscode-cookbooks / build-essential
- opscode-cookbooks / nginx
- opscode-cookbooks / ohai
- opscode-cookbooks / yum
Used by git clone