Skip to content
This repository has been archived by the owner on Jun 19, 2021. It is now read-only.

Commit

Permalink
Fix variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
kostyaplis committed Nov 26, 2019
1 parent 4509b1c commit e8fc70d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,32 @@ data "helm_repository" "jetstack" {

# List of CRDs required for cert-manager
resource "k8sraw_yaml" "certificaterequests" {
depends_on = [var.crd_depends_on]
depends_on = [var.cm_depends_on]
yaml_body = file("${path.module}/files/certificaterequests.yaml")
}

resource "k8sraw_yaml" "certificates" {
depends_on = [var.crd_depends_on]
depends_on = [var.cm_depends_on]
yaml_body = file("${path.module}/files/certificates.yaml")
}

resource "k8sraw_yaml" "challenges" {
depends_on = [var.crd_depends_on]
depends_on = [var.cm_depends_on]
yaml_body = file("${path.module}/files/challenges.yaml")
}

resource "k8sraw_yaml" "clusterissuers" {
depends_on = [var.crd_depends_on]
depends_on = [var.cm_depends_on]
yaml_body = file("${path.module}/files/clusterissuers.yaml")
}

resource "k8sraw_yaml" "issuers" {
depends_on = [var.crd_depends_on]
depends_on = [var.cm_depends_on]
yaml_body = file("${path.module}/files/issuers.yaml")
}

resource "k8sraw_yaml" "orders" {
depends_on = [var.crd_depends_on]
depends_on = [var.cm_depends_on]
yaml_body = file("${path.module}/files/orders.yaml")
}

Expand All @@ -55,7 +55,7 @@ resource "helm_release" "cert-manager" {
name = "cert-manager"
repository = data.helm_repository.jetstack.metadata.0.name
chart = "cert-manager"
version = "v0.11.0"
version = var.cm_version
namespace = var.namespace
wait = true
}
6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
variable "crd_depends_on" {
variable "cm_depends_on" {
type = any
default = null
description = "Variable to pass dependancy on module" # https://discuss.hashicorp.com/t/tips-howto-implement-module-depends-on-emulation/2305/2
description = "Variable to pass dependancy on external module" # https://discuss.hashicorp.com/t/tips-howto-implement-module-depends-on-emulation/2305/2
}

variable "namespace" {
Expand All @@ -10,7 +10,7 @@ variable "namespace" {
description = "Namespace to deploy cert-manager resources"
}

variable "version" {
variable "cm_version" {
type = string
default = "v0.11.0"
description = "Cert-manager version. NOTE: CRD files has to be generated manually accordingly to choosen version"
Expand Down

0 comments on commit e8fc70d

Please sign in to comment.