Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws_region is mandatory for AWS cluster #40

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading