-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf
53 lines (45 loc) · 1.15 KB
/
main.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
53
module "wordpress" {
source = "[email protected]:kubeopsskills/kubernetes-module.git//helm?ref=0.1.0"
release_name = var.release_name
chart_repository = var.chart_repository
chart_name = var.chart_name
chart_version = var.chart_version
config_file_path = var.config_file_path
namespace = var.namespace
lint_enabled = var.lint_enabled
}
resource "kubectl_manifest" "ingress" {
depends_on = [module.wordpress]
yaml_body = file("./manifests/wordpress-ingress.yaml")
}
resource "kubectl_manifest" "webhook" {
yaml_body = file("./manifests/webhook.yaml")
}
resource "kubectl_manifest" "webhook-ingress" {
depends_on = [kubectl_manifest.webhook]
yaml_body = file("./manifests/webhook-ingress.yaml")
}
provider "helm" {
kubernetes {}
}
provider "kubectl" {
}
terraform {
required_providers {
helm = {
source = "hashicorp/helm"
version = "~> 2.0.3"
}
kubectl = {
source = "gavinbunney/kubectl"
version = "~> 1.11.0"
}
}
backend "remote" {
hostname = "app.terraform.io"
organization = "dev-thai-cm"
workspaces {
prefix = "borktore-covid-"
}
}
}