Skip to content

Commit

Permalink
Merge pull request #3 from Aguafrommars/user/ole
Browse files Browse the repository at this point in the history
doc: update samples
  • Loading branch information
aguacongas authored Mar 21, 2022
2 parents 039a8b9 + 0b22906 commit 21a56a8
Show file tree
Hide file tree
Showing 13 changed files with 142 additions and 14 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ provider "helm" {
}
module "theidserver" {
source = "terraform-helm-theidserver"
source = "Aguafrommars/theidserver/helm"
host = "theidserver.com"
tls_issuer_name = "letsencrypt"
Expand All @@ -42,7 +42,7 @@ If you prefer to use the [Duende IdentityServer](https://github.com/Aguafrommars

```
module "theidserver" {
source = "terraform-helm-theidserver"
source = "Aguafrommars/theidserver/helm"
host = "theidserver.com"
tls_issuer_name = "letsencrypt"
Expand Down Expand Up @@ -76,7 +76,7 @@ The **env_settings** input can be use to pass environments variables to containe
```
module "theidserver" {
source = "terraform-helm-theidserver"
source = "Aguafrommars/theidserver/helm"
host = "theidserver.com"
tls_issuer_name = "letsencrypt"
Expand All @@ -94,7 +94,7 @@ If you want to use your Email sender, you need to implement a web api and setup
```
module "theidserver" {
source = "terraform-helm-theidserver"
source = "Aguafrommars/theidserver/helm"
host = "theidserver.com"
tls_issuer_name = "letsencrypt"
Expand All @@ -114,7 +114,7 @@ You can use the **override_setting** input to override the [TheIdServer helm cha
```
module "theidserver" {
source = "terraform-helm-theidserver"
source = "Aguafrommars/theidserver/helm"
host = "theidserver.com"
tls_issuer_name = "letsencrypt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Basic usage

```
provider "helm" {
kubernetes {
config_path = "C:/Users/LefebvreO/.kube/config"
}
}

module "theidserver" {
source = "terraform-helm-theidserver"
source = "Aguafrommars/theidserver/helm"

host = "theidserver.com"
tls_issuer_name = "letsencrypt"
tls_issuer_kind = "ClusterIssuer"
}
```
13 changes: 13 additions & 0 deletions examples/basic usage/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
provider "helm" {
kubernetes {
config_path = var.kubeconfig_path
}
}

module "theidserver" {
source = "Aguafrommars/theidserver/helm"

host = "theidserver.com"
tls_issuer_name = "letsencrypt"
tls_issuer_kind = "ClusterIssuer"
}
5 changes: 5 additions & 0 deletions examples/basic usage/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
variable "kubeconfig_path" {
type = string
description = "Path to the .kube/config"
}

29 changes: 29 additions & 0 deletions examples/override settings/README.nd
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Override settings

This sample override the Email sender API url with the url passed in input.

```
provider "helm" {
kubernetes {
config_path = var.kubeconfig_path
}
}

module "theidserver" {
source = "Aguafrommars/theidserver/helm"

host = "theidserver.com"
tls_issuer_name = "letsencrypt"
tls_issuer_kind = "ClusterIssuer"

override_setting = {
appSettings = {
file = {
EmailApiAuthentication = {
ApiUrl = var.api_url
}
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
provider "helm" {
kubernetes {
config_path = "C:/Users/LefebvreO/.kube/config"
config_path = var.kubeconfig_path
}
}

module "theidserver" {
source = "terraform-helm-theidserver"
source = "Aguafrommars/theidserver/helm"

host = "theidserver.com"
tls_issuer_name = "letsencrypt"
Expand All @@ -15,7 +15,7 @@ module "theidserver" {
appSettings = {
file = {
EmailApiAuthentication = {
ApiUrl = "<YOUR_EMAIL_SENDER_WEB_API>"
ApiUrl = var.api_url
}
}
}
Expand Down
9 changes: 9 additions & 0 deletions examples/override settings/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
variable "kubeconfig_path" {
type = string
description = "Path to the .kube/config"
}

variable "api_url" {
type = string
description = "The Email sender API url"
}
25 changes: 25 additions & 0 deletions examples/set docker image/README.nd
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Set docker image

This sample use the lastest built Duende version.

```
provider "helm" {
kubernetes {
config_path = var.kubeconfig_path
}
}

module "theidserver" {
source = "Aguafrommars/theidserver/helm"

host = "theidserver.com"
tls_issuer_name = "letsencrypt"
tls_issuer_kind = "ClusterIssuer"

image = {
repository = "aguacongas/theidserver.duende"
pullPolicy = "Always"
tag = "next"
}
}
```
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
provider "helm" {
kubernetes {
config_path = "C:/Users/LefebvreO/.kube/config"
config_path = var.kubeconfig_path
}
}

module "theidserver" {
source = "terraform-helm-theidserver"
source = "Aguafrommars/theidserver/helm"

host = "theidserver.com"
tls_issuer_name = "letsencrypt"
Expand Down
4 changes: 4 additions & 0 deletions examples/set docker image/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
variable "kubeconfig_path" {
type = string
description = "Path to the .kube/config"
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
# Set env vars

This sample set SendGrid credentials from input through env vars.

```
provider "helm" {
kubernetes {
config_path = "C:/Users/LefebvreO/.kube/config"
}
}

module "theidserver" {
source = "terraform-helm-theidserver"
source = "Aguafrommars/theidserver/helm"

host = "theidserver.com"
tls_issuer_name = "letsencrypt"
tls_issuer_kind = "ClusterIssuer"

env_settings = {
SendGridUser = "<SENDGRID_USER>"
SendGridKey = "<SENDGRID_API_KEY>"
SendGridUser = var.sendgrid_user
SendGridKey = var.sendgrid_api_key
}
}
```
18 changes: 18 additions & 0 deletions examples/set env vars/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
provider "helm" {
kubernetes {
config_path = var.kubeconfig_path
}
}

module "theidserver" {
source = "Aguafrommars/theidserver/helm"

host = "theidserver.com"
tls_issuer_name = "letsencrypt"
tls_issuer_kind = "ClusterIssuer"

env_settings = {
SendGridUser = var.sendgrid_user
SendGridKey = var.sendgrid_api_key
}
}
15 changes: 15 additions & 0 deletions examples/set env vars/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
variable "kubeconfig_path" {
type = string
description = "Path to the .kube/config"
}


variable "sendgrid_user" {
type = string
description = "Your SendGrid user"
}

variable "sendgrid_api_key" {
type = string
description = "Your SendGrid API key"
}

0 comments on commit 21a56a8

Please sign in to comment.