Skip to content
This repository has been archived by the owner on Aug 4, 2018. It is now read-only.

Commit

Permalink
add backup server minion
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Jan 5, 2014
1 parent 73e6e97 commit 5d6988e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,28 @@ Vagrant.configure("2") do |config|
end
end

if ENV['VAGRANT_BACKUP'] == '1'

config.vm.define "backup" do |backup|
backup.vm.network "private_network", ip: "192.168.57.201"
backup.vm.network "private_network", ip: "172.16.57.201"

backup.vm.provider :virtualbox do |vm|
file_to_disk = '.vagrant/tmp/backup.vdi'
vm.customize ['createhd', '--filename', file_to_disk, '--size', 10 * 1024]
vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk]
end

backup.vm.provision :salt do |s|
s.verbose = true
s.install_type = "git v0.17.2"
s.minion_config = "provisioning/salt/minion/backup/server"
s.run_highstate = true
end
end

end

if ENV['VAGRANT_MONITORING'] == '1'
config.vm.define "monitoring_server" do |monitoring_server|

Expand Down
7 changes: 7 additions & 0 deletions provisioning/salt/minion/backup/server
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
file_client: local
file_roots:
base:
- /srv/salt
grains:
roles:
- backup_server

0 comments on commit 5d6988e

Please sign in to comment.