-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.tf
36 lines (33 loc) · 1.72 KB
/
dev.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
# This is for expert users and oStack developers
# ---------------------------------------------------------------------------------------------------------------------
# Inputs
# ---------------------------------------------------------------------------------------------------------------------
variable "dev_mode" {
description = "For expert users or oStack developers. Set it to a map of dev settings to use it."
type = map(any)
default = null
}
# ---------------------------------------------------------------------------------------------------------------------
# Main variables
# ---------------------------------------------------------------------------------------------------------------------
locals {
# Dev mode
dev = var.dev_mode != null ? merge(local.dev_mode, var.dev_mode) : {}
}
# ---------------------------------------------------------------------------------------------------------------------
# Computations
# ---------------------------------------------------------------------------------------------------------------------
locals {
# Defaults for dev mode
dev_mode = {
template_globalconfig = null
template_globalops = "../../templates/global-ops"
template_apps = "../../templates/ns-apps"
template_infra = "../../templates/ns-infra"
template_ops = "../../templates/ns-ops"
module_cluster_init = "../init-cluster-flux"
all_files_strict = true # Any file that is created should be tracked by Terraform
globalinfra_repo_name = null # Disables configuring the global-infra repo which is usually not created when developing
disable_outputs = true # It is quite annoying to have long outputs printed out after an apply/plan
}
}