README.md in salted-rails-0.0.2 vs README.md in salted-rails-0.0.4
- old
+ new
@@ -1,11 +1,13 @@
# Salted-Rails
Salted-Rails: Provision rails using salt to vagrant or capistrano controlled systems
-EXPERIMENTAL
+This gem inspects .ruby-version, config/database.yml, Gemfile and Gemfile.lock to generate salt pillar files to control the configuration of the system.
+THIS GEM IS IN THE EXPERIMENTAL STAGE (pre pre alpha)! EXPECT THINGS TO CHANGE AND BREAK WITHOUT NOTICE!
+
This configures vagrant in the way that I personally like:
* ubunutu 12.04 (LTS) 32bit from cloud-images.ubuntu.com (up to date packages and more memory free for systems < 4GB memory)
* forward ssh agent
* digital ocean default to 'San Francisco 1'
* salt provisioning based on rails Gemfile[.lock], database.yml and .ruby-version configuration
@@ -25,10 +27,11 @@
require 'salted_rails/vagrant_helper'
vagrant_helper = SaltedRails::VagrantHelper.new(File.dirname(__FILE__))
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
vagrant_helper.configure_vagrant(config)
+ vagrant_helper.configure_ubuntu_mirror(config, 'mirror') # best (ping not bandwidth?) mirror
vagrant_helper.configure_digital_ocean(config)
vagrant_helper.configure_salt(config)
vagrant_helper.configure_ports(config)
# example - override default key
# config.ssh.private_key_path = '~/.ssh/id_rsa_Another'
@@ -40,9 +43,15 @@
config.vm.provider :digital_ocean do |provider|
provider.client_id = 'your id'
provider.api_key = 'your key'
end
end
+
+The ubuntu_mirror value can also be:
+* 'mirror' - Configures mirror: option to auto select from http://mirrors.ubuntu.com/mirrors.txt
+* 'internode' - an australian ISP (mine ;)
+* a country code - eg 'au', 'uk', 'us' etc
+* url of mirror - specify the full url (in the same format as mirrors.txt above)
### Capistrano
Add this line to your application's Gemfile: