Skip to content

Commit 27e2c03

Browse files
committed
add block device prefix TF var
1 parent da54345 commit 27e2c03

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ resource "openstack_compute_instance_v2" "control" {
114114
fs_setup:
115115
- label: state
116116
filesystem: ext4
117-
device: /dev/vdb
117+
device: /dev/${var.block_device_prefix}b
118118
partition: auto
119119
- label: home
120120
filesystem: ext4
121-
device: /dev/vdc
121+
device: /dev/${var.block_device_prefix}c
122122
partition: auto
123123
124124
mounts:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ variable "environment_root" {
4949
description = "Path to environment root, automatically set by activate script"
5050
}
5151

52+
variable "block_device_prefix" {
53+
type = string
54+
description = "Prefix for block device names"
55+
default = "vd"
56+
}
57+
5258
variable "state_dir" {
5359
type = string
5460
description = "Path to state directory on control node"

0 commit comments

Comments
 (0)