routing working

This commit is contained in:
lif
2025-10-12 19:03:12 +01:00
parent 0a562d8d01
commit 0c46b66b7b
14 changed files with 282 additions and 35 deletions

13
vagrant/Vagrantfile vendored
View File

@@ -1,7 +1,13 @@
num_workers = 7
num_workers = 1
nodes = [
{ hostname: 'swarm-master', ip: '192.168.56.10', ram: 256, cpus: 1, groups: ['swarm_master'] }
{
hostname: 'swarm-master',
ip: '192.168.56.10',
ram: 256,
cpus: 1,
groups: ['swarm_master'],
},
]
(1..num_workers).each do |i|
@@ -15,6 +21,8 @@ nodes = [
end
Vagrant.configure('2') do |config|
# config.vbguest.auto_update = true
groups = {}
nodes.each do |node|
node[:groups].each do |group|
@@ -25,6 +33,7 @@ Vagrant.configure('2') do |config|
config.vm.provision 'ansible' do |ansible|
ansible.playbook = 'setup.yml'
ansible.config_file = 'ansible.cfg'
ansible.groups = groups
# ansible.verbose = true

6
vagrant/ansible.cfg Normal file
View File

@@ -0,0 +1,6 @@
[defaults]
host_key_checking=False
# stdout_callback = minimal
color = true
interpreter_python = /usr/bin/python3.9
deprecation_warnings=False