From 5de3d1f0a87cc1c8a5bbaeba979fb1c4f936f3fe Mon Sep 17 00:00:00 2001 From: Benjamin Arntzen Date: Mon, 5 Dec 2022 00:58:22 +0800 Subject: [PATCH] Add [default] section to inis --- README.md | 1 + equinix-elastic-ip | 6 +++--- equinix-elastic-ip-public | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6d8eaca..8bbed15 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ For each machine you want to participate in Pacemaker: Set up a file /etc/ansible/facts.d/uuid.fact as such: ``` +[default] equinix_uuid=this-is-not-a-real-uuid equinix_project=this-is-not-a-real-project equinix_token=this-is-not-a-real-token diff --git a/equinix-elastic-ip b/equinix-elastic-ip index eda4ecf..0aad819 100755 --- a/equinix-elastic-ip +++ b/equinix-elastic-ip @@ -44,9 +44,9 @@ OCF_RESKEY_subnet_default="" : ${OCF_RESKEY_ip=${OCF_RESKEY_ip_default}} # Load in Equinix machine UUID and token -MACHINE_UUID=$(crudini --get $OCF_RESKEY_equinixfact '' equinix_uuid) -EQUINIX_TOKEN=$(crudini --get $OCF_RESKEY_equinixfact '' equinix_token) -EQUINIX_PROJECT=$(crudini --get $OCF_RESKEY_equinixfact '' equinix_project) +MACHINE_UUID=$(crudini --get $OCF_RESKEY_equinixfact default equinix_uuid) +EQUINIX_TOKEN=$(crudini --get $OCF_RESKEY_equinixfact default equinix_token) +EQUINIX_PROJECT=$(crudini --get $OCF_RESKEY_equinixfact default equinix_project) ####################################################################### diff --git a/equinix-elastic-ip-public b/equinix-elastic-ip-public index f8618b6..b59a90c 100755 --- a/equinix-elastic-ip-public +++ b/equinix-elastic-ip-public @@ -43,9 +43,9 @@ OCF_RESKEY_ip_default="" : ${OCF_RESKEY_ip=${OCF_RESKEY_ip_default}} # Load in Equinix machine UUID and token -MACHINE_UUID=$(crudini --get $OCF_RESKEY_equinixfact '' equinix_uuid) -EQUINIX_TOKEN=$(crudini --get $OCF_RESKEY_equinixfact '' equinix_token) -EQUINIX_PROJECT=$(crudini --get $OCF_RESKEY_equinixfact '' equinix_project) +MACHINE_UUID=$(crudini --get $OCF_RESKEY_equinixfact default equinix_uuid) +EQUINIX_TOKEN=$(crudini --get $OCF_RESKEY_equinixfact default equinix_token) +EQUINIX_PROJECT=$(crudini --get $OCF_RESKEY_equinixfact default equinix_project) #######################################################################