Commit afbac7a
authored
Deduplicate AWS and GCP cluster bootstrap by extracting shared tasks (#463)
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/clear1 parent bb6e757 commit afbac7a
6 files changed
Lines changed: 534 additions & 760 deletions
File tree
- ansible/playbooks/tasks
- docs/playbooks
0 commit comments