This project helps with provisioning for Ubuntu servers with minimal efforts using Sprinkle https://github.com/sprinkle-tool/sprinkle
Set up local ruby gemset and gems from Gemfile bundle install
- Set up an IP address, roles and packages in
nodes.yml. You can use an example for thiscp nodes.yml.example nodes.yml. It contains all the options available. - Run setup stage to set up deployer user (usually
ubuntu), automatic security upgrades and enable 2 Gb swapSTAGE=setup ruby provision.rb. You can skip swap creation just by addingNO_SWAP=true. In caserootuser does not have password, innodes.ymlleaveroot_passwordblank. - Provision your server
ruby provision.rb
Make sure name: vagrant node is enabled: true in nodes.yml
Set up VirtualBox https://www.virtualbox.org/wiki/Downloads
Set up Vagrant https://www.vagrantup.com/downloads.html
Check out settings in Vagrantfile
Run Vagrant vagrant destroy -f && vagrant up
Run provision to set up deployer user STAGE=setup ruby provision.rb
Run provision ruby provision.rb
All-together vagrant destroy -f && vagrant up && STAGE=setup ruby provision.rb && ruby provision.rb
Please create new package, test it and send pull request
- Ubuntu: 16.04 LTS, 14.04 LTS, 12.04 LTS
- Ruby: 2.4.1, 2.3.1, 2.3.0, 2.2.x, 2.1.5
- Postgres: 9.6, 9.5, 9.4, 9.3
- DigitalOcean: works smoothly
- Google Compute Engine: use Ubuntu 16.04 LTS. ssh with your user,
sudo suand then add your key to/home/ubuntu/.ssh/authorized_keysmanually before doingruby provision.rb - Azure: update TCP timeout setting
- Vagrant: 1.8.x, 1.7.x
- VirtualBox: 5.0.x
MIT