Standardize test vars
Move test host vars from the inventory to individual files for each host. 'ansible_become' has been removed from localhost's vars since it should be handled on a playbook basis. The containers' management addresses have also been moved to the br-mgmt bridge. Change-Id: Ib1c08d7df0d1be855ca9579faa3a2ad85b164e0d
This commit is contained in:
parent
7ea0820e09
commit
01840f29d2
@ -17,7 +17,7 @@ container_name: "{{ inventory_hostname }}"
|
||||
container_networks:
|
||||
management_address:
|
||||
address: "{{ ansible_host }}"
|
||||
bridge: "lxcbr0"
|
||||
bridge: "br-mgmt"
|
||||
interface: "eth1"
|
||||
netmask: "255.255.252.0"
|
||||
type: "veth"
|
||||
|
4
tests/host_vars/container1.yml
Normal file
4
tests/host_vars/container1.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
ansible_host: 10.100.100.2
|
||||
ansible_become: True
|
||||
ansible_user: root
|
4
tests/host_vars/container2.yml
Normal file
4
tests/host_vars/container2.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
ansible_host: 10.100.100.3
|
||||
ansible_become: True
|
||||
ansible_user: root
|
4
tests/host_vars/container3.yml
Normal file
4
tests/host_vars/container3.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
ansible_host: 10.100.100.4
|
||||
ansible_become: True
|
||||
ansible_user: root
|
@ -1,8 +1,8 @@
|
||||
[all]
|
||||
localhost ansible_become=True
|
||||
container1 ansible_host=10.100.100.101 ansible_become=True ansible_user=root
|
||||
container2 ansible_host=10.100.100.102 ansible_become=True ansible_user=root
|
||||
container3 ansible_host=10.100.100.103 ansible_become=True ansible_user=root
|
||||
localhost
|
||||
container1
|
||||
container2
|
||||
container3
|
||||
|
||||
[repo_all]
|
||||
container1
|
||||
|
Loading…
Reference in New Issue
Block a user