Deployment
- Create your own file terraform.tfvars;
- Install pip modules: google-auth and requests. For example:
pip install google-auth
pip install requests
- Change variables in ansible/gcp_compute.yml and ansible/group_vars/all.yml
- Run the following commands:
terraform init
terraform plan
terraform apply
ansible-playbook ansible/main.yml
Documentation
Network scheme
Resource scheme
Useful commands
export GOOGLE_APPLICATION_CREDENTIALS="/test.json"
fence_gce --zone=europe-north1-a --project=otus-gcp-pcm-278116 --serviceaccount=/gcloud_service_account.json -o list -vvv
fence_gce --zone=europe-north1-a --project=otus-gcp-pcm-278116 --serviceaccount=/gcloud_service_account.json --plug="pcm-stand-2"
/usr/sbin/fence_gce --zone=europe-north1-a --project=otus-gcp-pcm-278116 --serviceaccount=/gcloud_service_account.json -o list -vvv
pcs stonith fence pcm-stand-2
Additional documentation
- Ansible - Inventory plugins list
- Ansible - GCE scenario guide
- Ansible - GCP Compute plugin
- Google SDK - login
- Google - SAP HANA
- Red Hat - RHEL over GCP
- Red Hat - SAP HANA cluster
- DRBD with Absible
- SAP over GCP
- SAP over GCP on SUSE
- SUSE - HA cluster guide
- SUSE - SAP with Terraform over GCP
- Recommendations for HA over GCP