Install the vagrant and chef gems:
gem install vagrant chef
Create a vagrant project directory to work out of:
#!/usr/bin/env bash | |
# ## Installing iTerm2 on Mac OS X 10.5/10.6 | |
# | |
# bash < <(curl -L http://gist.github.com/raw/824149/iterm2_install.sh) | |
# | |
url="http://iterm2.googlecode.com/files/iTerm2-alpha16.zip" | |
zip="${url##http*/}" |
Note the nginx => {:proxy => "enable"}
is to expose Jenkins on port 80 while keeping the backend process privilege separated and on port 8080.
# More info at https://github.com/guard/guard#readme | |
guard 'ego' do | |
watch('Guardfile') | |
end | |
guard 'spork' do | |
watch('config/application.rb') | |
watch('config/environment.rb') | |
watch(%r{^config/environments/.*\.rb$}) |
development: | |
adapter: mysql2 | |
encoding: utf8 | |
reconnect: false | |
database: rails_proj_development | |
pool: 5 | |
username: rp_dev | |
password: wootwoot | |
host: localhost |
server { | |
listen 80; | |
server_name ""; | |
location / { | |
root html; | |
index index.html index.htm; | |
} | |
# redirect server error pages to the static page /50x.html |
cache_dir="/var/cache/downloads" | |
tar_url="http://nginx.org/download/nginx-0.9.7.tar.gz" | |
tar_file="${tar_url##http*/}" | |
tar_dir="${tar_file%.tar.gz}" | |
configure_flags=" | |
--prefix=/opt/${tar_dir} | |
--conf-path=/etc/nginx/nginx.conf | |
--with-http_ssl_module | |
" | |
pkgs=( wget build-essential binutils-doc autoconf flex bison |
{ | |
"webapp": { | |
"web_server": "apache2", | |
"vhosts": [ | |
{ "id": "production", | |
"host_name": "main.example.com", | |
"non_ssl_server": true, | |
"www_redirect": false, | |
"ssl_server": true, | |
"ssl_www_redirect": false |
Vagrant::Config.run do |config| | |
config.vm.box = "lucid32" | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = "chef-repo/cookbooks" | |
chef.roles_path = "chef-repo/roles" | |
if ENV['vdb'] == "1" | |
chef.log_level = :debug |