Standardize IP range/bridges
This standardizes the IP range and bridge usage for testing. Which lines up with the various other roles and how they are setup. Change-Id: I835d7174f94f2c96a9554fddd4bd58a8dd75647f
This commit is contained in:
parent
116e280ca3
commit
4c344b8805
@ -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"
|
||||
|
@ -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
|
||||
container1 ansible_host=10.1.0.2 ansible_become=True ansible_user=root
|
||||
container2 ansible_host=10.1.0.3 ansible_become=True ansible_user=root
|
||||
container3 ansible_host=10.1.0.4 ansible_become=True ansible_user=root
|
||||
|
||||
[galera_all]
|
||||
container1
|
||||
|
@ -47,22 +47,22 @@
|
||||
that:
|
||||
- "'Synced' in wsrep_local_state_comment.stdout"
|
||||
- "'OPERATIONAL' in wsrep_evs_state.stdout"
|
||||
- "'10.100.100.101' in wsrep_incoming_addresses.stdout"
|
||||
- "'10.100.100.102' in wsrep_incoming_addresses.stdout"
|
||||
- "'10.100.100.103' in wsrep_incoming_addresses.stdout"
|
||||
- name: Create DB for service on 10.100.100.101
|
||||
- "'10.1.0.2' in wsrep_incoming_addresses.stdout"
|
||||
- "'10.1.0.3' in wsrep_incoming_addresses.stdout"
|
||||
- "'10.1.0.4' in wsrep_incoming_addresses.stdout"
|
||||
- name: Create DB for service on 10.1.0.2
|
||||
mysql_db:
|
||||
login_user: "{{ galera_root_user }}"
|
||||
login_password: "{{ galera_root_password }}"
|
||||
login_host: "10.100.100.101"
|
||||
login_host: "10.1.0.2"
|
||||
name: "OSA-test"
|
||||
state: "present"
|
||||
when: ansible_host == '10.100.100.101'
|
||||
- name: Grant access to the DB on 10.100.100.102
|
||||
when: ansible_host == '10.1.0.2'
|
||||
- name: Grant access to the DB on 10.1.0.3
|
||||
mysql_user:
|
||||
login_user: "{{ galera_root_user }}"
|
||||
login_password: "{{ galera_root_password }}"
|
||||
login_host: "10.100.100.102"
|
||||
login_host: "10.1.0.3"
|
||||
name: "osa-tester"
|
||||
password: "tester-secrete"
|
||||
host: "{{ item }}"
|
||||
@ -71,6 +71,6 @@
|
||||
with_items:
|
||||
- "localhost"
|
||||
- "%"
|
||||
when: ansible_host == '10.100.100.102'
|
||||
when: ansible_host == '10.1.0.3'
|
||||
vars_files:
|
||||
- common/test-vars.yml
|
||||
|
Loading…
x
Reference in New Issue
Block a user