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
Create an OpenTofu variables file to define the required infrastructure, e.g.:
94
+
TOOD
95
95
96
-
```text
97
-
# environments/$ENV/tofu/terraform.tfvars:
98
-
cluster_name = "mycluster"
99
-
cluster_networks = [
100
-
{
101
-
network = "some_network" # *
102
-
subnet = "some_subnet" # *
103
-
}
104
-
]
105
-
key_pair = "my_key" # *
106
-
control_node_flavor = "some_flavor_name"
107
-
login = {
108
-
# Arbitrary group name for these login nodes
109
-
interactive = {
110
-
nodes: ["login-0"]
111
-
flavor: "login_flavor_name" # *
96
+
### Define and deploy infrastructure
97
+
98
+
Modify the cookiecutter-gerated OpenTofu configuration to set the `null`
99
+
values to define the required
100
+
infrastructure, e.g.:
101
+
102
+
```hcl
103
+
# environments/$ENV/tofu/main.tf:
104
+
module "cluster" {
105
+
source = "../../site/tofu/"
106
+
environment_root = var.environment_root
107
+
108
+
cluster_name = "mycluster"
109
+
cluster_image_id = "ddf666dd-977b-4a70-a83e-6272122d2fd8" # see above
110
+
control_node_flavor = "m1.medium" # * Typically min. 2x vcpus / 4GB RAM
111
+
cluster_networks = []
112
+
{
113
+
network = "network-name" # * must be able to connect to this from the deploy host
114
+
subnet = "subnet-name" # *
112
115
}
113
-
}
114
-
cluster_image_id = "rocky_linux_9_image_uuid"
115
-
compute = {
116
-
# Group name used for compute node partition definition
116
+
key_pair = "my-keypair-name" # *
117
+
login = {
118
+
head = {
119
+
nodes = ["login-0"]
120
+
flavor = "m1.small" # * Typically min. 1x vpcu / 2GB RAM
121
+
}
122
+
}
123
+
compute = {
117
124
general = {
118
-
nodes: ["compute-0", "compute-1"]
119
-
flavor: "compute_flavor_name" # *
125
+
nodes = ["compute-0", "compute-1"]
126
+
flavor = "m1.small" # * Typically min. 1x vpcu / 2GB RAM
120
127
}
128
+
}
121
129
}
122
130
```
123
131
124
-
Variables marked `*` refer to OpenStack resources which must already exist. The above is a minimal configuration - for all variables and descriptions see `environments/$ENV/tofu/variables.tf`.
132
+
Variables marked `*` refer to OpenStack resources which must already exist. The
133
+
above is a minimal configuration - for all variables and descriptions see
134
+
`environments/site/tofu/variables.tf`.
125
135
126
136
To deploy this infrastructure, ensure the venv and the environment are [activated](#create-a-new-environment) and run:
0 commit comments