Skip to content

Commit a43f8b7

Browse files
committed
specify volume device paths in full
1 parent 4d84761 commit a43f8b7

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
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/${var.block_device_prefix}b
117+
device: ${var.state_volume_device_path}
118118
partition: auto
119119
- label: home
120120
filesystem: ext4
121-
device: /dev/${var.block_device_prefix}c
121+
device: ${var.home_volume_device_path}
122122
partition: auto
123123
124124
mounts:

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

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

52-
variable "block_device_prefix" {
52+
variable "state_volume_device_path" {
5353
type = string
54-
description = "Prefix for block device names"
55-
default = "sd"
54+
description = "Path to block device for state"
55+
default = "/dev/sdb"
56+
}
57+
58+
variable "home_volume_device_path" {
59+
type = string
60+
description = "Path to block device name for home directories"
61+
default = "/dev/sdc"
5662
}
5763

5864
variable "state_dir" {

0 commit comments

Comments
 (0)