File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
environments/skeleton/{{cookiecutter.environment}}/terraform Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff 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:
Original file line number Diff line number Diff 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
5864variable "state_dir" {
You can’t perform that action at this time.
0 commit comments