add RancherOS
This commit is contained in:
parent
7753264b58
commit
75149e46ab
21
Vagrantfile
vendored
21
Vagrantfile
vendored
|
@ -58,6 +58,13 @@ boxes = [
|
||||||
:cpu => "50",
|
:cpu => "50",
|
||||||
:ram => "256"
|
:ram => "256"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
:name => "rancheros",
|
||||||
|
:box => "chriswayg/RancherOS",
|
||||||
|
:ip => '10.0.0.19',
|
||||||
|
:cpu => "50",
|
||||||
|
:ram => "256"
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
role = File.basename(File.expand_path(File.dirname(__FILE__)))
|
role = File.basename(File.expand_path(File.dirname(__FILE__)))
|
||||||
|
@ -65,17 +72,19 @@ role = File.basename(File.expand_path(File.dirname(__FILE__)))
|
||||||
Vagrant.configure("2") do |config|
|
Vagrant.configure("2") do |config|
|
||||||
boxes.each do |box|
|
boxes.each do |box|
|
||||||
# If archlinux gives an error with Linux 4.16 Virtualbox guest driver, disable synced folder
|
# If archlinux gives an error with Linux 4.16 Virtualbox guest driver, disable synced folder
|
||||||
#config.vm.synced_folder '.', '/vagrant', disabled: true
|
|
||||||
config.vm.define box[:name] do |vms|
|
config.vm.define box[:name] do |vms|
|
||||||
vms.vm.box = box[:box]
|
vms.vm.box = box[:box]
|
||||||
vms.vm.hostname = "#{role}-#{box[:name]}"
|
#vms.vm.hostname = "#{role}-#{box[:name]}"
|
||||||
|
vms.vm.synced_folder ".", "/vagrant", disabled: true
|
||||||
vms.vm.provider "virtualbox" do |v|
|
vms.vm.provider "virtualbox" do |v|
|
||||||
v.customize ["modifyvm", :id, "--cpuexecutioncap", box[:cpu]]
|
v.check_guest_additions = false
|
||||||
v.customize ["modifyvm", :id, "--memory", box[:ram]]
|
v.functional_vboxsf = false
|
||||||
|
v.memory = "1024"
|
||||||
|
# v.customize ["modifyvm", :id, "--cpuexecutioncap", box[:cpu]]
|
||||||
|
# v.customize ["modifyvm", :id, "--memory", box[:ram]]
|
||||||
end
|
end
|
||||||
|
|
||||||
vms.vm.network :private_network, ip: box[:ip]
|
#vms.vm.network :private_network, ip: box[:ip]
|
||||||
|
|
||||||
vms.vm.provision :ansible do |ansible|
|
vms.vm.provision :ansible do |ansible|
|
||||||
ansible.playbook = "tests/vagrant.yml"
|
ansible.playbook = "tests/vagrant.yml"
|
||||||
|
|
Loading…
Reference in a new issue