diff --git a/tests/group_vars/all_containers.yml b/tests/group_vars/all_containers.yml index 83ce0212..9710edfe 100644 --- a/tests/group_vars/all_containers.yml +++ b/tests/group_vars/all_containers.yml @@ -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" diff --git a/tests/inventory b/tests/inventory index f3b5ea8b..14813417 100644 --- a/tests/inventory +++ b/tests/inventory @@ -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 diff --git a/tests/test-galera-server-functional.yml b/tests/test-galera-server-functional.yml index fde5f8d0..a94f6149 100644 --- a/tests/test-galera-server-functional.yml +++ b/tests/test-galera-server-functional.yml @@ -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_ssh_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_ssh_host == '10.100.100.102' + when: ansible_host == '10.1.0.3' vars_files: - common/test-vars.yml