diff --git a/Vagrantfile b/Vagrantfile index 455c0e2..b789868 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -10,7 +10,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.synced_folder "~/", "/vagrant_home" config.berkshelf.enabled = true - # VM specific settings + # VM specific settings, these machines come up in order they are specified. config.vm.define "mysql" do |mysql| mysql.vm.hostname = 'mysql' mysql.vm.network :private_network, ip: "192.168.10.6" @@ -21,16 +21,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| end end - config.vm.define "api" do |api| - api.vm.hostname = 'api' - api.vm.network :private_network, ip: "192.168.10.4" - api.vm.provision :chef_solo do |chef| - chef.roles_path = "roles" - chef.data_bags_path = "data_bags" - chef.add_role "Api" - end - end - config.vm.define "kafka" do |kafka| kafka.vm.hostname = 'kafka' kafka.vm.network :private_network, ip: "192.168.10.10" @@ -41,6 +31,29 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| end end + config.vm.define "vertica" do |vertica| + vertica.vm.hostname = 'vertica' + vertica.vm.network :private_network, ip: "192.168.10.8" + vertica.vm.provision :chef_solo do |chef| + chef.roles_path = "roles" + chef.data_bags_path = "data_bags" + chef.add_role "Vertica" + end + vertica.vm.provider "virtualbox" do |vb| + vb.memory = 2048 # Vertica is pretty strict about its minimum + end + end + + config.vm.define "api" do |api| + api.vm.hostname = 'api' + api.vm.network :private_network, ip: "192.168.10.4" + api.vm.provision :chef_solo do |chef| + chef.roles_path = "roles" + chef.data_bags_path = "data_bags" + chef.add_role "Api" + end + end + config.vm.define "persister" do |persister| persister.vm.hostname = 'persister' persister.vm.network :private_network, ip: "192.168.10.12" @@ -61,17 +74,4 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| end end - config.vm.define "vertica" do |vertica| - vertica.vm.hostname = 'vertica' - vertica.vm.network :private_network, ip: "192.168.10.8" - vertica.vm.provision :chef_solo do |chef| - chef.roles_path = "roles" - chef.data_bags_path = "data_bags" - chef.add_role "Vertica" - end - vertica.vm.provider "virtualbox" do |vb| - vb.memory = 2048 # Vertica is pretty strict about its minimum - end - end - end