Skip to content

Commit 6c5fa8f

Browse files
committed
Staging init
1 parent 6c45062 commit 6c5fa8f

File tree

7 files changed

+36
-9
lines changed

7 files changed

+36
-9
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
flavor = "hpc.v2.16cpu.128ram" # VM flavor to use for builder VMs
22
networks = ["d21d2d5c-58dc-43a8-954c-8ebd4da7e198"] # List of network UUIDs to attach the VM to
33
source_image_name = "openhpc-RL9-250312-1435-7e5c051d" # Name of image to create VM with, i.e. starting image
4-
inventory_groups = "doca" # Additional inventory groups to add build VM to
5-
volume_size= "30" # Larger volume to fit DOCA install
4+
inventory_groups = "doca,cuda" # Additional inventory groups to add build VM to
5+
volume_size= "30" # Larger volume to fit DOCA install
6+
image_disk_format = "raw"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
dnf_repos_username: "{{ ark_username }}"
3+
dnf_repos_password: "{{ ark_password }}"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
$ANSIBLE_VAULT;1.1;AES256
2+
61313662666466633462333536323135373036366339363733396230353139323961613039663835
3+
6564386437316439353431386365616634376435343934300a613936366566306363633862333139
4+
33663362633938373736326337393862646261353062666662336566313436353263316662383735
5+
6133643236636365620a313965353535303666316437373633643764626665633663393631336464
6+
37366231353338666631656365333061623735336261373362386235666633623237656331386665
7+
66616261343663616663383162623732373738306437656637626432373232623865373233656536
8+
34313964623633653866613030633766386137623662356638386438633436393833646333326436
9+
30623764643565636138

environments/site/tofu/control.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ resource "openstack_networking_port_v2" "control" {
1616

1717
no_security_groups = lookup(each.value, "no_security_groups", false)
1818
security_group_ids = lookup(each.value, "no_security_groups", false) ? [] : [for o in data.openstack_networking_secgroup_v2.nonlogin: o.id]
19-
19+
# port_security_enabled = lookup(each.value, "port_security_enabled", true)
2020
binding {
2121
vnic_type = lookup(var.vnic_types, each.key, "normal")
2222
}

environments/site/tofu/node_group/nodes.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ resource "openstack_networking_port_v2" "compute" {
4747

4848
no_security_groups = lookup(each.value, "no_security_groups", false)
4949
security_group_ids = lookup(each.value, "no_security_groups", false) ? [] : var.security_group_ids
50-
50+
# port_security_enabled = lookup(each.value, "port_security_enabled", true)
5151
binding {
5252
vnic_type = lookup(var.vnic_types, each.value.network, "normal")
5353
}

environments/site/tofu/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ variable "login" {
7676
variable "cluster_image_id" {
7777
type = string
7878
description = "ID of default image for the cluster"
79-
default = "fa4cd35b-a9a0-4042-be81-d4bdd4e87daa"
79+
default = "fa334314-88f9-41eb-9b49-4a7bfa651641"
8080
}
8181

8282
variable "compute" {

environments/staging/tofu/main.tf

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ module "cluster" {
1717
subnet = "external-ceph"
1818
}
1919
]
20+
vnic_types = {
21+
"slurm-staging" = "normal"
22+
"external-ceph" = "normal"
23+
}
2024
compute = {
2125
# Group name used for compute node partition definition
2226
general = {
@@ -37,11 +41,21 @@ module "cluster" {
3741
"compute-13"
3842
]
3943
flavor: "hpc.v2.32cpu.128ram"
40-
vnic_types = {
41-
"slurm-staging" = "direct"
42-
"external-ceph" = "direct"
43-
}
4444
}
45+
# gpu = {
46+
# nodes: [
47+
# "gpu-0",
48+
# "gpu-1",
49+
# ]
50+
# flavor: "hpc.v2.16cpu.128ram.a100"
51+
# }
52+
# highmem = {
53+
# nodes: [
54+
# "highmem-0",
55+
# "highmem-1",
56+
# ]
57+
# flavor: "hpc.v2.60cpu.480ram"
58+
# }
4559
}
4660

4761
environment_root = var.environment_root

0 commit comments

Comments
 (0)