Skip to content

Commit 5e5b389

Browse files
committed
fix caas for openhpc_partitions/openhpc_nodegroups
1 parent 4e641d1 commit 5e5b389

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

ansible/roles/cluster_infra/templates/outputs.tf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ output "cluster_nodes" {
3232
}
3333
}
3434
],
35-
{% for partition in openhpc_slurm_partitions %}
35+
{% for partition in openhpc_partitions %}
3636
[
3737
for compute in openstack_compute_instance_v2.{{ partition.name }}: {
3838
name = compute.name

ansible/roles/cluster_infra/templates/resources.tf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ resource "openstack_networking_port_v2" "control_storage" {
282282
###
283283
# Workers
284284
###
285-
{% for partition in openhpc_slurm_partitions %}
285+
{% for partition in openhpc_partitions %}
286286
# Primary network
287287
resource "openstack_networking_port_v2" "{{ partition.name }}" {
288288
count = {{ partition.count }}
@@ -499,7 +499,7 @@ resource "openstack_compute_instance_v2" "control" {
499499
}
500500
}
501501

502-
{% for partition in openhpc_slurm_partitions %}
502+
{% for partition in openhpc_partitions %}
503503
resource "openstack_compute_instance_v2" "{{ partition.name }}" {
504504
count = {{ partition.count }}
505505

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
openhpc_cluster_name: "{{ cluster_name }}"
22

3-
# Provision a single "standard" compute partition using the supplied
3+
# Provision a single "standard" compute nodegroup using the supplied
44
# node count and flavor
5-
openhpc_slurm_partitions: "{{ hostvars[groups['openstack'][0]]['openhpc_slurm_partitions'] }}"
5+
openhpc_nodegroups: "{{ hostvars[groups['openstack'][0]]['openhpc_nodegroups'] }}"

environments/.caas/inventory/group_vars/all/openondemand.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
openondemand_auth: basic_pam
3-
openondemand_jupyter_partition: "{{ openhpc_slurm_partitions[0]['name'] }}"
4-
openondemand_desktop_partition: "{{ openhpc_slurm_partitions[0]['name'] }}"
3+
openondemand_jupyter_partition: "{{ openhpc_partitions[0]['name'] }}"
4+
openondemand_desktop_partition: "{{ openhpc_partitions[0]['name'] }}"
55

66
httpd_listen_addr_port:
77
- 80

environments/.caas/inventory/group_vars/openstack.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ terraform_project_path: "{{ playbook_dir }}/terraform"
1616
terraform_state: "{{ cluster_state | default('present') }}"
1717
cluster_ssh_user: rocky
1818

19-
# Provision a single "standard" compute partition using the supplied
19+
# Provision a single "standard" compute nodegroup using the supplied
2020
# node count and flavor
21-
openhpc_slurm_partitions:
21+
openhpc_nodegroups:
2222
- name: "standard"
2323
count: "{{ compute_count }}"
2424
flavor: "{{ compute_flavor }}"

0 commit comments

Comments
 (0)