O

otus-terraform-gcp-pcm

Категория проекта: Ожидает модерации

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