Skip to content

Commit

Permalink
Add vagrant playground
Browse files Browse the repository at this point in the history
  • Loading branch information
komljen committed Jul 18, 2014
1 parent 6629e38 commit 9e7e568
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/.vagrant
vagrant/.vagrant
43 changes: 43 additions & 0 deletions vagrant/Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
config.vm.box = "trusty64"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"

# Salt master
config.vm.define "master" do |node|
node.vm.hostname = "master"
node.vm.network :private_network, ip: "192.168.33.10"

node.vm.synced_folder "../", "/srv/"

# salt-master provisioning
node.vm.provision :salt do |salt|
salt.install_master = true
salt.no_minion = true
salt.run_highstate = false
end
end

# Salt minion01
config.vm.define "minion01" do |node|
node.vm.hostname = "minion01"
node.vm.network :private_network, ip: "192.168.33.20"

# salt-minion provisioning
node.vm.provision :salt do |salt|
salt.minion_config = "minion"
end
end

# Salt minion02
config.vm.define "minion02" do |node|
node.vm.hostname = "minion02"
node.vm.network :private_network, ip: "192.168.33.30"

# salt-minion provisioning
node.vm.provision :salt do |salt|
salt.minion_config = "minion"
end
end
end
1 change: 1 addition & 0 deletions vagrant/minion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
master: 192.168.33.10

0 comments on commit 9e7e568

Please sign in to comment.