openstack-ansible-os_swift/tests/host_vars/swift-storage3.yml
Andy McCrae bfd73a50cc Test address setting code paths
We can set the storage and replication addresses differently for each of
the 3 swift-hosts.

swift-storage1 will use the "swift_storage_address" and
"swift_replication_address" values to set it's service and ring IPs.

swift-storage2 will use the default IPs calculated by finding the IP on
the appropriate interfaces (eth2 for storage and eth3 for replication).

swift-storage3 will use the swift_vars.storage_ip and swift_vars.repl_ip
vars to set it's service and ring IPs

This PR makes the gate more efficient by removing swift-storage4.

Depends-On: Iac72c99fc728fad82da65ae6c68a304e3d130bc1
Change-Id: I8f7eb551072a6cd6ad50c2a99c4dfc6652374efe
2016-09-27 14:07:37 +00:00

42 lines
1.2 KiB
YAML

---
# 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.
# This host is testing the code path where the swift_vars repl_ip and storage_ip are set
swift_vars:
repl_ip: 10.1.3.105
storage_ip: 10.1.2.105
ansible_host: 10.1.1.105
container_networks:
management_address:
address: "{{ ansible_host }}"
bridge: "br-mgmt"
interface: "eth1"
netmask: "255.255.255.0"
type: "veth"
storage_address:
address: "{{ swift_vars.storage_ip }}"
bridge: "br-storage"
interface: "eth2"
netmask: "255.255.255.0"
type: "veth"
replication_address:
address: "{{ swift_vars.repl_ip }}"
bridge: "br-repl"
interface: "eth3"
netmask: "255.255.255.0"
type: "veth"