diff --git a/tests/tests_configure_ha_cluster_external.yml b/tests/tests_configure_ha_cluster_external.yml index 5cd6191a..880b1f35 100644 --- a/tests/tests_configure_ha_cluster_external.yml +++ b/tests/tests_configure_ha_cluster_external.yml @@ -5,15 +5,12 @@ # managed_host1: # ansible_host: # mssql_ha_replica_type: primary -# mssql_version: # managed_host2: # ansible_host: # mssql_ha_replica_type: synchronous -# mssql_version: # managed_host3: # ansible_host: # mssql_ha_replica_type: witness -# mssql_version: --- - name: Verify HA functionality with external clusters and templates hosts: all @@ -27,12 +24,12 @@ mssql_edition: Evaluation mssql_version: 2022 mssql_manage_firewall: true + __mssql_gather_facts_no_log: true __mssql_test_confined_supported: "{{ (ansible_distribution in ['CentOS', 'RedHat']) and (ansible_distribution_major_version is version('9', '>=')) }}" - __mssql_gather_facts_no_log: true - mssql_manage_selinux: false - mssql_run_selinux_confined: false + mssql_manage_selinux: "{{ __mssql_test_confined_supported }}" + mssql_run_selinux_confined: "{{ __mssql_test_confined_supported }}" mssql_ha_configure: true mssql_ha_endpoint_port: 5022 mssql_ha_cert_name: ExampleCert @@ -165,6 +162,10 @@ - ansible_play_hosts_all | length == 1 - mssql_ha_replica_type is not defined + - name: Load softdog module for stonith to have at least one watchdog + command: modprobe softdog + changed_when: true + - name: Set facts to create test DBs on primary as a pre task set_fact: mssql_pre_input_sql_file: diff --git a/tests/tests_configure_ha_cluster_read_scale.yml b/tests/tests_configure_ha_cluster_read_scale.yml index e237d480..05c0366a 100644 --- a/tests/tests_configure_ha_cluster_read_scale.yml +++ b/tests/tests_configure_ha_cluster_read_scale.yml @@ -5,15 +5,12 @@ # managed_host1: # ansible_host: # mssql_ha_replica_type: primary -# mssql_version: # managed_host2: # ansible_host: # mssql_ha_replica_type: synchronous -# mssql_version: # managed_host3: # ansible_host: # mssql_ha_replica_type: asynchronous -# mssql_version: --- - name: Verify HA functionality with read-scale clusters hosts: all @@ -27,8 +24,11 @@ mssql_version: 2022 mssql_manage_firewall: true __mssql_gather_facts_no_log: true - mssql_manage_selinux: false - mssql_run_selinux_confined: false + __mssql_test_confined_supported: "{{ + (ansible_distribution in ['CentOS', 'RedHat']) and + (ansible_distribution_major_version is version('9', '>=')) }}" + mssql_manage_selinux: "{{ __mssql_test_confined_supported }}" + mssql_run_selinux_confined: "{{ __mssql_test_confined_supported }}" mssql_ha_configure: true mssql_ha_endpoint_port: 5022 mssql_ha_cert_name: ExampleCert