Swarm operational

This commit is contained in:
lif
2025-10-12 12:30:50 +01:00
parent 6368588bce
commit 0a562d8d01
9 changed files with 233 additions and 63 deletions

6
vagrant/Vagrantfile vendored
View File

@@ -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]