Skip to content

Commit 21a56a8

Browse files
authored
Merge pull request #3 from Aguafrommars/user/ole
doc: update samples
2 parents 039a8b9 + 0b22906 commit 21a56a8

File tree

13 files changed

+142
-14
lines changed

13 files changed

+142
-14
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ provider "helm" {
2222
}
2323
2424
module "theidserver" {
25-
source = "terraform-helm-theidserver"
25+
source = "Aguafrommars/theidserver/helm"
2626
2727
host = "theidserver.com"
2828
tls_issuer_name = "letsencrypt"
@@ -42,7 +42,7 @@ If you prefer to use the [Duende IdentityServer](https://github.com/Aguafrommars
4242

4343
```
4444
module "theidserver" {
45-
source = "terraform-helm-theidserver"
45+
source = "Aguafrommars/theidserver/helm"
4646
4747
host = "theidserver.com"
4848
tls_issuer_name = "letsencrypt"
@@ -76,7 +76,7 @@ The **env_settings** input can be use to pass environments variables to containe
7676
7777
```
7878
module "theidserver" {
79-
source = "terraform-helm-theidserver"
79+
source = "Aguafrommars/theidserver/helm"
8080
8181
host = "theidserver.com"
8282
tls_issuer_name = "letsencrypt"
@@ -94,7 +94,7 @@ If you want to use your Email sender, you need to implement a web api and setup
9494
9595
```
9696
module "theidserver" {
97-
source = "terraform-helm-theidserver"
97+
source = "Aguafrommars/theidserver/helm"
9898
9999
host = "theidserver.com"
100100
tls_issuer_name = "letsencrypt"
@@ -114,7 +114,7 @@ You can use the **override_setting** input to override the [TheIdServer helm cha
114114
115115
```
116116
module "theidserver" {
117-
source = "terraform-helm-theidserver"
117+
source = "Aguafrommars/theidserver/helm"
118118
119119
host = "theidserver.com"
120120
tls_issuer_name = "letsencrypt"
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
# Basic usage
2+
3+
```
14
provider "helm" {
25
kubernetes {
36
config_path = "C:/Users/LefebvreO/.kube/config"
47
}
58
}
69

710
module "theidserver" {
8-
source = "terraform-helm-theidserver"
11+
source = "Aguafrommars/theidserver/helm"
912

1013
host = "theidserver.com"
1114
tls_issuer_name = "letsencrypt"
1215
tls_issuer_kind = "ClusterIssuer"
1316
}
17+
```

examples/basic usage/main.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
provider "helm" {
2+
kubernetes {
3+
config_path = var.kubeconfig_path
4+
}
5+
}
6+
7+
module "theidserver" {
8+
source = "Aguafrommars/theidserver/helm"
9+
10+
host = "theidserver.com"
11+
tls_issuer_name = "letsencrypt"
12+
tls_issuer_kind = "ClusterIssuer"
13+
}

examples/basic usage/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
variable "kubeconfig_path" {
2+
type = string
3+
description = "Path to the .kube/config"
4+
}
5+

examples/override settings/README.nd

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Override settings
2+
3+
This sample override the Email sender API url with the url passed in input.
4+
5+
```
6+
provider "helm" {
7+
kubernetes {
8+
config_path = var.kubeconfig_path
9+
}
10+
}
11+
12+
module "theidserver" {
13+
source = "Aguafrommars/theidserver/helm"
14+
15+
host = "theidserver.com"
16+
tls_issuer_name = "letsencrypt"
17+
tls_issuer_kind = "ClusterIssuer"
18+
19+
override_setting = {
20+
appSettings = {
21+
file = {
22+
EmailApiAuthentication = {
23+
ApiUrl = var.api_url
24+
}
25+
}
26+
}
27+
}
28+
}
29+
```

examples/override_settings/main.tf renamed to examples/override settings/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
provider "helm" {
22
kubernetes {
3-
config_path = "C:/Users/LefebvreO/.kube/config"
3+
config_path = var.kubeconfig_path
44
}
55
}
66

77
module "theidserver" {
8-
source = "terraform-helm-theidserver"
8+
source = "Aguafrommars/theidserver/helm"
99

1010
host = "theidserver.com"
1111
tls_issuer_name = "letsencrypt"
@@ -15,7 +15,7 @@ module "theidserver" {
1515
appSettings = {
1616
file = {
1717
EmailApiAuthentication = {
18-
ApiUrl = "<YOUR_EMAIL_SENDER_WEB_API>"
18+
ApiUrl = var.api_url
1919
}
2020
}
2121
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
variable "kubeconfig_path" {
2+
type = string
3+
description = "Path to the .kube/config"
4+
}
5+
6+
variable "api_url" {
7+
type = string
8+
description = "The Email sender API url"
9+
}

examples/set docker image/README.nd

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Set docker image
2+
3+
This sample use the lastest built Duende version.
4+
5+
```
6+
provider "helm" {
7+
kubernetes {
8+
config_path = var.kubeconfig_path
9+
}
10+
}
11+
12+
module "theidserver" {
13+
source = "Aguafrommars/theidserver/helm"
14+
15+
host = "theidserver.com"
16+
tls_issuer_name = "letsencrypt"
17+
tls_issuer_kind = "ClusterIssuer"
18+
19+
image = {
20+
repository = "aguacongas/theidserver.duende"
21+
pullPolicy = "Always"
22+
tag = "next"
23+
}
24+
}
25+
```

examples/set_docker_image/main.tf renamed to examples/set docker image/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
provider "helm" {
22
kubernetes {
3-
config_path = "C:/Users/LefebvreO/.kube/config"
3+
config_path = var.kubeconfig_path
44
}
55
}
66

77
module "theidserver" {
8-
source = "terraform-helm-theidserver"
8+
source = "Aguafrommars/theidserver/helm"
99

1010
host = "theidserver.com"
1111
tls_issuer_name = "letsencrypt"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
variable "kubeconfig_path" {
2+
type = string
3+
description = "Path to the .kube/config"
4+
}
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1+
# Set env vars
2+
3+
This sample set SendGrid credentials from input through env vars.
4+
5+
```
16
provider "helm" {
27
kubernetes {
38
config_path = "C:/Users/LefebvreO/.kube/config"
49
}
510
}
611

712
module "theidserver" {
8-
source = "terraform-helm-theidserver"
13+
source = "Aguafrommars/theidserver/helm"
914

1015
host = "theidserver.com"
1116
tls_issuer_name = "letsencrypt"
1217
tls_issuer_kind = "ClusterIssuer"
1318

1419
env_settings = {
15-
SendGridUser = "<SENDGRID_USER>"
16-
SendGridKey = "<SENDGRID_API_KEY>"
20+
SendGridUser = var.sendgrid_user
21+
SendGridKey = var.sendgrid_api_key
1722
}
1823
}
24+
```

examples/set env vars/main.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
provider "helm" {
2+
kubernetes {
3+
config_path = var.kubeconfig_path
4+
}
5+
}
6+
7+
module "theidserver" {
8+
source = "Aguafrommars/theidserver/helm"
9+
10+
host = "theidserver.com"
11+
tls_issuer_name = "letsencrypt"
12+
tls_issuer_kind = "ClusterIssuer"
13+
14+
env_settings = {
15+
SendGridUser = var.sendgrid_user
16+
SendGridKey = var.sendgrid_api_key
17+
}
18+
}

examples/set env vars/variables.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
variable "kubeconfig_path" {
2+
type = string
3+
description = "Path to the .kube/config"
4+
}
5+
6+
7+
variable "sendgrid_user" {
8+
type = string
9+
description = "Your SendGrid user"
10+
}
11+
12+
variable "sendgrid_api_key" {
13+
type = string
14+
description = "Your SendGrid API key"
15+
}

0 commit comments

Comments
 (0)