Skip to content

Commit b411662

Browse files
committed
1 machine
1 parent f2eb1c3 commit b411662

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

base/VMs/rancherOS/vagrant/Vagrantfile

+20-20
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,24 @@ Vagrant.configure(2) do |config|
3838

3939
end
4040

41-
node_ip = IPAddr.new(x.fetch('ip').fetch('node'))
42-
(1..x.fetch('node').fetch('count')).each do |i|
43-
c = x.fetch('node')
44-
hostname = "node-%02d" % i
45-
config.vm.define hostname do |node|
46-
node.vm.box = "chrisurwin/RancherOS"
47-
node.vm.box_version = x.fetch('ROS_version')
48-
node.vm.guest = :linux
49-
node.vm.provider "virtualbox" do |v|
50-
v.cpus = c.fetch('cpus')
51-
v.linked_clone = true if Gem::Version.new(Vagrant::VERSION) >= Gem::Version.new('1.8.0') and x.fetch('linked_clones')
52-
v.memory = c.fetch('memory')
53-
v.name = hostname
54-
end
55-
node.vm.network x.fetch('net').fetch('network_type'), ip: IPAddr.new(node_ip.to_i + i - 1, Socket::AF_INET).to_s, nic_type: $private_nic_type
56-
node.vm.hostname = hostname
57-
node.vm.provision "shell", path: "scripts/rancher_node.sh", args: [x.fetch('ip').fetch('server'), x.fetch('admin_password')]
58-
end
59-
end
41+
# node_ip = IPAddr.new(x.fetch('ip').fetch('node'))
42+
# (1..x.fetch('node').fetch('count')).each do |i|
43+
# c = x.fetch('node')
44+
# hostname = "node-%02d" % i
45+
# config.vm.define hostname do |node|
46+
# # node.vm.box = "chrisurwin/RancherOS"
47+
# # node.vm.box_version = x.fetch('ROS_version')
48+
# node.vm.guest = :linux
49+
# node.vm.provider "virtualbox" do |v|
50+
# v.cpus = c.fetch('cpus')
51+
# v.linked_clone = true if Gem::Version.new(Vagrant::VERSION) >= Gem::Version.new('1.8.0') and x.fetch('linked_clones')
52+
# v.memory = c.fetch('memory')
53+
# v.name = hostname
54+
# end
55+
# node.vm.network x.fetch('net').fetch('network_type'), ip: IPAddr.new(node_ip.to_i + i - 1, Socket::AF_INET).to_s, nic_type: $private_nic_type
56+
# node.vm.hostname = hostname
57+
# node.vm.provision "shell", path: "scripts/rancher_node.sh", args: [x.fetch('ip').fetch('server'), x.fetch('admin_password')]
58+
# end
59+
# end
6060

61-
end
61+
# end

0 commit comments

Comments
 (0)