Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: Vagrantfile

Issue 9351210: Define Discourse admins and site settings in Puppet, separate private data from other settings (Closed)
Patch Set: Created Feb. 19, 2013, 3:08 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 def define_standard_vm(config, host_name, ip) 1 def define_standard_vm(config, host_name, ip)
2 config.vm.define host_name do |config| 2 config.vm.define host_name do |config|
3 config.vm.box = 'precise64' 3 config.vm.box = 'precise64'
4 config.vm.box_url = 'http://files.vagrantup.com/precise64.box' 4 config.vm.box_url = 'http://files.vagrantup.com/precise64.box'
5 config.vm.host_name = "#{host_name}.adblockplus.org" 5 config.vm.host_name = "#{host_name}.adblockplus.org"
6 config.vm.network :hostonly, ip, { nic_type: 'Am79C970A' } 6 config.vm.network :hostonly, ip, { nic_type: 'Am79C970A' }
7 config.vm.customize ["modifyvm", :id, "--cpus", 1] 7 config.vm.customize ["modifyvm", :id, "--cpus", 1]
8 8
9 config.vm.provision :shell, :inline => ' 9 config.vm.provision :shell, :inline => '
10 if ! test -f /usr/bin/puppet; then 10 if ! test -f /usr/bin/puppet; then
(...skipping 25 matching lines...) Expand all
36 end 36 end
37 37
38 define_standard_vm config, 'server1', '10.8.0.105' 38 define_standard_vm config, 'server1', '10.8.0.105'
39 define_standard_vm config, 'server3', '10.8.0.99' 39 define_standard_vm config, 'server3', '10.8.0.99'
40 define_standard_vm config, 'server4', '10.8.0.98' 40 define_standard_vm config, 'server4', '10.8.0.98'
41 define_standard_vm config, 'server5', '10.8.0.100' 41 define_standard_vm config, 'server5', '10.8.0.100'
42 define_standard_vm config, 'server6', '10.8.0.101' 42 define_standard_vm config, 'server6', '10.8.0.101'
43 define_standard_vm config, 'server7', '10.8.0.102' 43 define_standard_vm config, 'server7', '10.8.0.102'
44 define_standard_vm config, 'server8', '10.8.0.103' 44 define_standard_vm config, 'server8', '10.8.0.103'
45 define_standard_vm config, 'server9', '10.8.0.104' 45 define_standard_vm config, 'server9', '10.8.0.104'
46 define_standard_vm config, 'server10', '10.8.0.105' 46 define_standard_vm config, 'server10', '10.8.0.105' do |config|
47 config.vm.customize ["modifyvm", :id, "--memory", 1024]
48 end
47 end 49 end
OLDNEW
« no previous file with comments | « no previous file | modules/discourse/files/init-discourse » ('j') | modules/discourse/manifests/init.pp » ('J')

Powered by Google App Engine
This is Rietveld