Skip to content

Commit 08eff97

Browse files
authored
Merge branch 'main' into feat/compute-init-cookiecutter
2 parents ed810f2 + 6929272 commit 08eff97

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
openhpc_config_extra:
22
SlurmctldDebug: debug
33
SlurmdDebug: debug
4-
5-
ohpc_default_extra_repos:
6-
"9": [] #overriding to ensure doesn't overwrite ark epel repo
7-
"8":
8-
- name: epel
9-
file: epel
10-
description: "Extra Packages for Enterprise Linux 8 - $basearch"
11-
metalink: "https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=$basearch&infra=$infra&content=$contentdir"
12-
gpgcheck: true
13-
gpgkey: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"cluster_image": {
3-
"RL8": "openhpc-RL8-250107-1534-b03caaf3",
4-
"RL9": "openhpc-RL9-250107-1535-b03caaf3"
3+
"RL8": "openhpc-RL8-250108-1703-e515b902",
4+
"RL9": "openhpc-RL9-250108-1703-e515b902"
55
}
66
}

environments/skeleton/{{cookiecutter.environment}}/terraform/compute.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,22 @@ module "compute" {
33

44
for_each = var.compute
55

6+
# must be set for group:
67
nodes = each.value.nodes
8+
flavor = each.value.flavor
9+
710
cluster_name = var.cluster_name
811
cluster_domain_suffix = var.cluster_domain_suffix
912
cluster_net_id = data.openstack_networking_network_v2.cluster_net.id
1013
cluster_subnet_id = data.openstack_networking_subnet_v2.cluster_subnet.id
1114

12-
flavor = each.value.flavor
15+
# can be set for group, defaults to top-level value:
1316
image_id = lookup(each.value, "image_id", var.cluster_image_id)
1417
vnic_type = lookup(each.value, "vnic_type", var.vnic_type)
1518
vnic_profile = lookup(each.value, "vnic_profile", var.vnic_profile)
19+
volume_backed_instances = lookup(each.value, "volume_backed_instances", var.volume_backed_instances)
20+
root_volume_size = lookup(each.value, "root_volume_size", var.root_volume_size)
21+
1622
key_pair = var.key_pair
1723
environment_root = var.environment_root
1824
k3s_token = var.k3s_token

environments/skeleton/{{cookiecutter.environment}}/terraform/variables.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ variable "compute" {
5353
vnic_type: Overrides variable vnic_type
5454
vnic_profile: Overrides variable vnic_profile
5555
compute_init_enable: Toggles compute-init rebuild (see compute-init role docs)
56+
volume_backed_instances: Overrides variable volume_backed_instances
57+
root_volume_size: Overrides variable root_volume_size
5658
EOF
5759
}
5860

0 commit comments

Comments
 (0)