Skip to content

Commit 3f66a18

Browse files
committed
set volume device paths in CI
1 parent a512822 commit 3f66a18

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

environments/.stackhpc/terraform/ARCUS.tfvars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ vnic_type = "normal"
44
control_node_flavor = "vm.ska.cpu.general.quarter"
55
other_node_flavor = "vm.ska.cpu.general.small"
66
volume_backed_instances = false
7+
state_volume_device_path = "/dev/sdb"
8+
home_volume_device_path = "/dev/sdc"

environments/.stackhpc/terraform/SMS.tfvars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ vnic_type = "direct"
44
control_node_flavor = "general.v1.medium"
55
other_node_flavor = "general.v1.tiny"
66
volume_backed_instances = true
7+
state_volume_device_path = "/dev/vdb"
8+
home_volume_device_path = "/dev/vdc"

environments/.stackhpc/terraform/main.tf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ variable "cluster_name" {
1313
variable "cluster_image" {
1414
description = "single image for all cluster nodes - a convenience for CI"
1515
type = string
16-
default = "openhpc-230503-0944-bf8c3f63.qcow2" # https://github.com/stackhpc/ansible-slurm-appliance/pull/252
16+
default = "openhpc-230503-0944-bf8c3f63" # https://github.com/stackhpc/ansible-slurm-appliance/pull/252
1717
# default = "Rocky-8-GenericCloud-Base-8.7-20221130.0.x86_64.qcow2"
1818
# default = "Rocky-8-GenericCloud-8.6.20220702.0.x86_64.qcow2"
1919
}
@@ -30,6 +30,10 @@ variable "other_node_flavor" {}
3030

3131
variable "volume_backed_instances" {}
3232

33+
variable "state_volume_device_path" {}
34+
35+
variable "home_volume_device_path" {}
36+
3337
module "cluster" {
3438
source = "../../skeleton/{{cookiecutter.environment}}/terraform/"
3539

@@ -70,4 +74,7 @@ module "cluster" {
7074
# Can reduce volume size a lot for short-lived CI clusters:
7175
state_volume_size = 10
7276
home_volume_size = 20
77+
78+
state_volume_device_path = var.state_volume_device_path
79+
home_volume_device_path = var.home_volume_device_path
7380
}

0 commit comments

Comments
 (0)