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: Id869b6c14369b895cf58a0e48d64d0d4cb3fd6f7
This commit is contained in:
parent
fe6e32e3e3
commit
2a200d7ca5
@ -17,7 +17,7 @@ container_name: "{{ inventory_hostname }}"
|
|||||||
container_networks:
|
container_networks:
|
||||||
management_address:
|
management_address:
|
||||||
address: "{{ ansible_host }}"
|
address: "{{ ansible_host }}"
|
||||||
bridge: "lxcbr0"
|
bridge: "br-mgmt"
|
||||||
interface: "eth1"
|
interface: "eth1"
|
||||||
netmask: "255.255.252.0"
|
netmask: "255.255.252.0"
|
||||||
type: "veth"
|
type: "veth"
|
||||||
|
18
tests/host_vars/infra1.yml
Normal file
18
tests/host_vars/infra1.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2016, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
ansible_host: 10.1.0.2
|
||||||
|
ansible_become: True
|
||||||
|
ansible_user: root
|
18
tests/host_vars/openstack1.yml
Normal file
18
tests/host_vars/openstack1.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2016, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
ansible_host: 10.1.0.3
|
||||||
|
ansible_become: True
|
||||||
|
ansible_user: root
|
@ -1,7 +1,7 @@
|
|||||||
[all]
|
[all]
|
||||||
localhost ansible_become=True
|
localhost
|
||||||
infra1 ansible_host=10.100.100.2 ansible_become=True ansible_user=root
|
infra1
|
||||||
openstack1 ansible_host=10.100.100.3 ansible_become=True ansible_user=root
|
openstack1
|
||||||
|
|
||||||
[all_containers]
|
[all_containers]
|
||||||
infra1
|
infra1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user