-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproviders.tf
52 lines (47 loc) · 994 Bytes
/
providers.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
terraform {
required_providers {
helm = {
source = "hashicorp/helm"
version = "2.8.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "2.16.1"
}
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0"
}
zerotier = {
source = "zerotier/zerotier"
version = "~> 1.4.0"
}
kubectl = {
source = "gavinbunney/kubectl"
version = "1.14.0"
}
}
}
locals {
k8s_config_path = "./metal/kubeconfig.yaml"
}
provider "helm" {
kubernetes {
config_path = local.k8s_config_path
}
}
provider "kubernetes" {
config_path = local.k8s_config_path
config_context = "default"
}
provider "kubectl" {
config_path = local.k8s_config_path
}
provider "cloudflare" {
api_key = var.cloudflare_api_key
email = var.cloudflare_email
}
provider "zerotier" {
zerotier_central_token = var.zerotier_central_token
zerotier_central_url = "https://my.zerotier.com/api"
}