Swarm operational
This commit is contained in:
6
vagrant/Vagrantfile
vendored
6
vagrant/Vagrantfile
vendored
@@ -1,4 +1,4 @@
|
||||
num_workers = 1
|
||||
num_workers = 7
|
||||
|
||||
nodes = [
|
||||
{ hostname: 'swarm-master', ip: '192.168.56.10', ram: 256, cpus: 1, groups: ['swarm_master'] }
|
||||
@@ -31,7 +31,7 @@ Vagrant.configure('2') do |config|
|
||||
# ansible.limit = "all"
|
||||
# ansible.raw_arguments = ["--timeout=60"]
|
||||
end
|
||||
|
||||
|
||||
nodes.each do |node|
|
||||
puts "Provisioning node: #{node[:hostname]}"
|
||||
config.vm.define node[:hostname] do |node_config|
|
||||
@@ -40,7 +40,7 @@ Vagrant.configure('2') do |config|
|
||||
# node_config.vm.box = 'generic/archlinux64'
|
||||
# node_config.vm.box_version = "20250415.336224"
|
||||
|
||||
# node_config.vm.network "private_network", ip: node[:ip]
|
||||
node_config.vm.network "private_network", ip: node[:ip]
|
||||
node_config.vm.provider "virtualbox" do |vb|
|
||||
vb.name = node[:hostname]
|
||||
vb.memory = node[:ram]
|
||||
|
||||
Reference in New Issue
Block a user