From 4d3f5a73da69fa344325ea8e645b8676a7a9745c Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Wed, 24 Aug 2022 18:04:36 +0200 Subject: [PATCH] added linode provider --- .woodpecker.yml | 4 +++- linode.tf | 2 ++ main.tf | 4 ++++ run_terraform | 4 ++++ 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 linode.tf diff --git a/.woodpecker.yml b/.woodpecker.yml index b9c3b09..8f76dee 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -25,7 +25,9 @@ pipeline: environment: - HTTP_PROXY=caladan:8888 - HTTPS_PROXY=caladan:8888 - secrets: [namecheap_api_key] + secrets: + - linode_token + - namecheap_api_key apply: image: registry.monotremata.xyz/terraform diff --git a/linode.tf b/linode.tf new file mode 100644 index 0000000..e801354 --- /dev/null +++ b/linode.tf @@ -0,0 +1,2 @@ +provider "linode" { +} diff --git a/main.tf b/main.tf index 7ecfb91..25a39a7 100644 --- a/main.tf +++ b/main.tf @@ -5,5 +5,9 @@ terraform { source = "namecheap/namecheap" version = ">= 2.0.0" } + linode = { + source = "linode/linode" + version = ">= 1.29.0" + } } } diff --git a/run_terraform b/run_terraform index c3e9e74..9e7dd0f 100755 --- a/run_terraform +++ b/run_terraform @@ -2,7 +2,11 @@ export HTTP_PROXY=caladan:8888 export HTTPS_PROXY=caladan:8888 + NAMECHEAP_API_KEY=$(pass namecheap.com/api_key) export NAMECHEAP_API_KEY +LINODE_TOKEN=$(pass linode.com/token) +export LINODE_TOKEN + terraform "$@"