You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/production.md
+15-16Lines changed: 15 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,21 +48,28 @@ and referenced from the `site` and `production` environments, e.g.:
48
48
49
49
```
50
50
...
51
+
variable "environment_root" {
52
+
type = string
53
+
description = "Path to environment root, automatically set by activate script"
54
+
}
55
+
51
56
module "cluster" {
52
57
source = "../../site/tofu/"
58
+
environment_root = var.environment_root
53
59
54
60
cluster_name = "foo"
55
61
...
56
62
}
57
63
```
58
64
59
65
Note that:
60
-
- Environment-specific variables (`cluster_name`) should be hardcoded
61
-
into the cluster module block.
62
-
- Environment-independent variables (e.g. maybe `cluster_net` if the
63
-
same is used for staging and production) should be set as *defaults*
64
-
in `environments/site/tofu/variables.tf`, and then don't need to
65
-
be passed in to the module.
66
+
67
+
- Environment-specific variables (`cluster_name`) should be hardcoded
68
+
into the cluster module block.
69
+
- Environment-independent variables (e.g. maybe `cluster_net` if the
70
+
same is used for staging and production) should be set as *defaults*
71
+
in `environments/site/tofu/variables.tf`, and then don't need to
72
+
be passed in to the module.
66
73
67
74
- Vault-encrypt secrets. Running the `generate-passwords.yml` playbook creates
68
75
a secrets file at `environments/$ENV/inventory/group_vars/all/secrets.yml`.
@@ -120,22 +127,14 @@ and referenced from the `site` and `production` environments, e.g.:
120
127
set the "attach" options and run `tofu apply` again - this should show there
121
128
are no changes planned.
122
129
123
-
- Enable `etc_hosts` templating:
124
-
125
-
```yaml
126
-
# environments/site/inventory/groups:
127
-
[etc_hosts:children]
128
-
cluster
129
-
```
130
-
131
130
- Configure Open OnDemand - see [specific documentation](openondemand.md).
132
131
133
132
- Remove the `demo_user` user from `environments/$ENV/inventory/group_vars/all/basic_users.yml`
134
133
135
134
- Consider whether having (read-only) access to Grafana without login is OK. If not, remove `grafana_auth_anonymous` in `environments/$ENV/inventory/group_vars/all/grafana.yml`
136
135
137
-
- If floating IPs are required for login nodes, modify the OpenTofu configurations
138
-
appropriately.
136
+
- If floating IPs are required for login nodes, create these in OpenStack and add the IPs into
137
+
the OpenTofu `login` definition.
139
138
140
139
- Consider whether mapping of baremetal nodes to ironic nodes is required. See
0 commit comments