Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 1.41 KB

ansible.md

File metadata and controls

55 lines (34 loc) · 1.41 KB

Ansible command

Setup emulation hosts with dnet

Edit the ansible inventory file ./ansible/inventory/libnetwork-hosts; add IP address to each group.

Check emulation environment

ansible-playbook  -i ./inventory/libnetwork-hosts site.yml -e action=check

Deploy the emulation dnet agents on the emulation hosts

ansible-playbook  -i ./inventory/libnetwork-hosts site.yml -e action=deploy

Clean up environment

ansible-playbook  -i ./inventory/libnetwork-hosts site.yml -e action=clean

Test

Run test command

Setup emulation hosts with swarmkit

Deploy the emulation swarmket nodes on the emulation hosts

ansible-playbook  -i ./inventory/libnetwork-hosts site.yml -e libnetwork_install_type=swarmkit -e action=deploy

Clean up environment

ansible-playbook  -i ./inventory/libnetwork-hosts site.yml -e libnetwork_install_type=swarmkit -e action=clean

Ansible Variables

Variable name Used for Default value Choices
libnetwork_install_type how libnetwork runs in emulation dnet dnet, swarmkit
number_emulated_agents emulation size 2 Integer

In order to override, one should use the -e runtime flags (most simple way) with the ansible-play command.