Skip to content

Commit

Permalink
Merge pull request #40 from mpagot/cluster_var_val
Browse files Browse the repository at this point in the history
aws_region is mandatory for AWS cluster
  • Loading branch information
marcelmamula authored Jan 29, 2024
2 parents 00c5182 + 9e3db27 commit 02719b7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions roles/cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ There are no specific variable requirements for GCP.

### Required Variables for AWS

* aws_region - string - deployment region
* aws_stonith_tag - string - When creating the AWS, some special tagging is
required. The tag name created for the cluster must be passed to ansible
here. See this
Expand Down
1 change: 1 addition & 0 deletions roles/cluster/tasks/pre-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@
- 'aws_route_table_id'
- 'aws_access_key_id'
- 'aws_secret_access_key'
- 'aws_region'
when: platform_aws

# If dual_corosync_rings is true, ensure that eth1 exists
Expand Down
2 changes: 1 addition & 1 deletion roles/cluster/tasks/tasks_corosync_configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
# to the others
when: int_var_node_is_primary

- name: Copy cluster secret
- name: Copy cluster secret to other hosts
ansible.posix.synchronize:
src: /etc/corosync/authkey
dest: /etc/corosync/authkey
Expand Down
4 changes: 2 additions & 2 deletions roles/cluster/tasks/tasks_hana_cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
crm cluster start
when: int_var_node_is_primary

- name: Ensure the cluster is started and is stable
- name: Ensure the cluster is started and is stable for first node
ansible.builtin.command: crm status
changed_when: false
register: int_reg_crm_status
Expand Down Expand Up @@ -99,7 +99,7 @@
ansible.builtin.set_fact:
int_fact_cluster_regex: "{{ ansible_play_hosts | length }} nodes configured"

- name: Ensure the cluster is started and is stable
- name: Ensure the cluster is started and is stable for second node
ansible.builtin.command: crm status
changed_when: false
register: int_reg_crm_status
Expand Down

0 comments on commit 02719b7

Please sign in to comment.