Skip to content

Commit

Permalink
providers: add Gandi as provider with their ENV Variables
Browse files Browse the repository at this point in the history
The gandi providers expects two env variables (cf
https://github.com/go-gandi/terraform-provider-gandi/blob/master/gandi/provider.go)

- GANDI_SHARING_ID its a uuid found in the URL of your dashbaord (when
  you are logged in to your organisation)
  e.g. if you dashboard is available at
  https://admin.gandi.net/dashboard/00000000-1111-2222-3333-444444444444/
  then your sharing id is `00000000-1111-2222-3333-444444444444`
- GANDI_KEY found in the “security” section of the account page
  https://account.gandi.net/
  • Loading branch information
paulRbr committed Oct 3, 2020
1 parent 67256b0 commit 0811327
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terraform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ while IFS=',' read -ra providers; do
declare -x "OVH_CONSUMER_KEY=${!token}"
fi
;;
gandi)
if [ -z "${GANDI_SHARING_ID}" ]; then
declare -x "GANDI_SHARING_ID=${!key}"
declare -x "GANDI_KEY=${!secret}"
fi
esac

done
Expand Down

0 comments on commit 0811327

Please sign in to comment.