Added an example of a Nginx reverse proxy cluster using RMIGs.

This commit is contained in:
Taneli Leppä
2022-10-04 13:39:10 +02:00
parent 981b4ca5cb
commit 4feb3514fd
19 changed files with 774 additions and 18 deletions

View File

@@ -25,3 +25,37 @@ variable "docker_logging" {
type = bool
default = true
}
variable "runcmd_pre" {
description = "Extra commands to run before starting nginx."
type = list(string)
default = []
}
variable "runcmd_post" {
description = "Extra commands to run after starting nginx."
type = list(string)
default = []
}
variable "files" {
description = "Map of extra files to create on the instance, path as key. Owner and permissions will use defaults if null."
type = map(object({
content = string
owner = string
permissions = string
}))
default = null
}
variable "users" {
description = "Additional list of usernames to be created."
type = list(object({
username = string,
uid = number,
}))
default = [
]
}