added linode provider

main
Ricard Illa 2022-08-24 18:04:36 +02:00
parent ba82b59482
commit 4d3f5a73da
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
4 changed files with 13 additions and 1 deletions

View File

@ -25,7 +25,9 @@ pipeline:
environment: environment:
- HTTP_PROXY=caladan:8888 - HTTP_PROXY=caladan:8888
- HTTPS_PROXY=caladan:8888 - HTTPS_PROXY=caladan:8888
secrets: [namecheap_api_key] secrets:
- linode_token
- namecheap_api_key
apply: apply:
image: registry.monotremata.xyz/terraform image: registry.monotremata.xyz/terraform

2
linode.tf Normal file
View File

@ -0,0 +1,2 @@
provider "linode" {
}

View File

@ -5,5 +5,9 @@ terraform {
source = "namecheap/namecheap" source = "namecheap/namecheap"
version = ">= 2.0.0" version = ">= 2.0.0"
} }
linode = {
source = "linode/linode"
version = ">= 1.29.0"
}
} }
} }

View File

@ -2,7 +2,11 @@
export HTTP_PROXY=caladan:8888 export HTTP_PROXY=caladan:8888
export HTTPS_PROXY=caladan:8888 export HTTPS_PROXY=caladan:8888
NAMECHEAP_API_KEY=$(pass namecheap.com/api_key) NAMECHEAP_API_KEY=$(pass namecheap.com/api_key)
export NAMECHEAP_API_KEY export NAMECHEAP_API_KEY
LINODE_TOKEN=$(pass linode.com/token)
export LINODE_TOKEN
terraform "$@" terraform "$@"