routing working
This commit is contained in:
13
vagrant/Vagrantfile
vendored
13
vagrant/Vagrantfile
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user