Skip to content

Deduplicate AWS and GCP cluster bootstrap by extracting shared tasks#463

Merged
mpagot merged 1 commit intoSUSE:mainfrom
mpagot:aws_gcp_boostrap_unify
Apr 21, 2026
Merged

Deduplicate AWS and GCP cluster bootstrap by extracting shared tasks#463
mpagot merged 1 commit intoSUSE:mainfrom
mpagot:aws_gcp_boostrap_unify

Conversation

@mpagot
Copy link
Copy Markdown
Collaborator

@mpagot mpagot commented Apr 18, 2026

Extract common cluster initialization, defaults, and VIP management into three shared task files included by both aws-cluster-bootstrap and gcp-cluster-bootstrap. Provider-specific logic (credentials, STONITH, cluster IP) remains inlined in each bootstrap wrapper. This eliminates ~300 lines of duplicated Ansible tasks while keeping provider-specific steps easy to follow without file indirection. New shared files:

  • cluster-bootstrap-init.yaml: corosync/pacemaker setup, authkeys
  • cluster-bootstrap-defaults.yaml: stonith, stickiness, timeouts
  • cluster-bootstrap-vip.yaml: cluster IP locate/move/clear

No behavioral changes, only reorganize code

image

Preparation for ticket: https://jira.suse.com/browse/TEAM-11163

Verification

qesap regression

sle-12-SP5-Qesap-Aws-Payg-x86_64-BuildLATEST_AWS_SLE12_5-qesap_aws_saptune_ltss_test

HanaSR

@mpagot mpagot force-pushed the aws_gcp_boostrap_unify branch 4 times, most recently from a95b75a to 24b3fd0 Compare April 20, 2026 16:12
Extract common cluster initialization, defaults, and VIP management
into three shared task files included by both aws-cluster-bootstrap
and gcp-cluster-bootstrap. Provider-specific logic (credentials,
STONITH, cluster IP) remains inlined in each bootstrap wrapper.
This eliminates ~300 lines of duplicated Ansible tasks while keeping
provider-specific steps easy to follow without file indirection.
New shared files:
- cluster-bootstrap-init.yaml: corosync/pacemaker setup, authkeys
- cluster-bootstrap-defaults.yaml: stonith, stickiness, timeouts
- cluster-bootstrap-vip.yaml: cluster IP locate/move/clear
@mpagot mpagot force-pushed the aws_gcp_boostrap_unify branch from 24b3fd0 to b80faf1 Compare April 20, 2026 16:43
Copy link
Copy Markdown
Collaborator

@alvarocarvajald alvarocarvajald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Collaborator

@BillAnastasiadis BillAnastasiadis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mpagot mpagot merged commit afbac7a into SUSE:main Apr 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants