2024-07-23 05:57:33 +00:00
|
|
|
diff --color -uNr a/heartbeat/gcp-pd-move.in b/heartbeat/gcp-pd-move.in
|
|
|
|
--- a/heartbeat/gcp-pd-move.in 2024-07-22 10:59:42.170483160 +0200
|
|
|
|
+++ b/heartbeat/gcp-pd-move.in 2024-07-22 11:01:51.455543850 +0200
|
|
|
|
@@ -32,6 +32,7 @@
|
|
|
|
from ocf import logger
|
|
|
|
|
|
|
|
try:
|
|
|
|
+ sys.path.insert(0, '/usr/lib/resource-agents/bundled/gcp')
|
|
|
|
import googleapiclient.discovery
|
|
|
|
except ImportError:
|
|
|
|
pass
|
2022-06-18 10:45:17 +00:00
|
|
|
diff --color -uNr a/heartbeat/gcp-vpc-move-ip.in b/heartbeat/gcp-vpc-move-ip.in
|
2024-07-23 05:57:33 +00:00
|
|
|
--- a/heartbeat/gcp-vpc-move-ip.in 2024-07-22 10:59:42.170483160 +0200
|
|
|
|
+++ b/heartbeat/gcp-vpc-move-ip.in 2024-07-22 11:01:18.010752081 +0200
|
2022-05-26 18:09:42 +00:00
|
|
|
@@ -36,7 +36,7 @@
|
|
|
|
. ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs
|
|
|
|
|
|
|
|
# Defaults
|
|
|
|
-OCF_RESKEY_gcloud_default="/usr/bin/gcloud"
|
|
|
|
+OCF_RESKEY_gcloud_default="/usr/bin/gcloud-ra"
|
|
|
|
OCF_RESKEY_configuration_default="default"
|
|
|
|
OCF_RESKEY_vpc_network_default="default"
|
|
|
|
OCF_RESKEY_interface_default="eth0"
|
2022-06-18 10:45:17 +00:00
|
|
|
diff --color -uNr a/heartbeat/gcp-vpc-move-route.in b/heartbeat/gcp-vpc-move-route.in
|
2024-07-23 05:57:33 +00:00
|
|
|
--- a/heartbeat/gcp-vpc-move-route.in 2024-07-22 10:59:42.170483160 +0200
|
|
|
|
+++ b/heartbeat/gcp-vpc-move-route.in 2024-07-22 11:01:18.011752105 +0200
|
2022-05-26 18:09:42 +00:00
|
|
|
@@ -45,6 +45,7 @@
|
|
|
|
from ocf import *
|
|
|
|
|
|
|
|
try:
|
|
|
|
+ sys.path.insert(0, '/usr/lib/resource-agents/bundled/gcp')
|
|
|
|
import googleapiclient.discovery
|
|
|
|
import pyroute2
|
2022-06-18 10:45:17 +00:00
|
|
|
try:
|
|
|
|
diff --color -uNr a/heartbeat/gcp-vpc-move-vip.in b/heartbeat/gcp-vpc-move-vip.in
|
2024-07-23 05:57:33 +00:00
|
|
|
--- a/heartbeat/gcp-vpc-move-vip.in 2024-07-22 10:59:42.170483160 +0200
|
|
|
|
+++ b/heartbeat/gcp-vpc-move-vip.in 2024-07-22 11:01:18.012752128 +0200
|
2022-06-18 10:45:17 +00:00
|
|
|
@@ -29,6 +29,7 @@
|
|
|
|
from ocf import *
|
|
|
|
|
|
|
|
try:
|
|
|
|
+ sys.path.insert(0, '/usr/lib/resource-agents/bundled/gcp')
|
|
|
|
import googleapiclient.discovery
|
|
|
|
try:
|
|
|
|
from google.oauth2.service_account import Credentials as ServiceAccountCredentials
|