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:
Jimmy McCrory 2017-04-25 15:53:02 -07:00
parent 7ea0820e09
commit 01840f29d2
5 changed files with 17 additions and 5 deletions

View File

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

View File

@ -0,0 +1,4 @@
---
ansible_host: 10.100.100.2
ansible_become: True
ansible_user: root

View File

@ -0,0 +1,4 @@
---
ansible_host: 10.100.100.3
ansible_become: True
ansible_user: root

View File

@ -0,0 +1,4 @@
---
ansible_host: 10.100.100.4
ansible_become: True
ansible_user: root

View File

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