Skip to content

Commit 8653b7d

Browse files
committed
change default block device to sdX for virtio-scsi
1 parent 4441aff commit 8653b7d

File tree

1 file changed

+4
-2
lines changed
  • environments/skeleton/{{cookiecutter.environment}}/inventory/group_vars/all

1 file changed

+4
-2
lines changed

environments/skeleton/{{cookiecutter.environment}}/inventory/group_vars/all/cloud_init.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
# Note volumes MUST be defined using block_device{} inside openstack_compute_instance_v2,
44
# NOT attached after boot, else the device ordering is liable to change e.g. on reboots.
55

6+
block_device_prefix: sd
7+
68
cloud_init_userdata_templates_extra:
79
- module: fs_setup
810
group: control
911
template: |
1012
- label: state
1113
filesystem: ext4
12-
device: /dev/vdb
14+
device: /dev/{{ block_device_prefix }}b
1315
partition: auto
1416
- label: home
1517
filesystem: ext4
16-
device: /dev/vdc
18+
device: /dev/{{ block_device_prefix }}c
1719
partition: auto
1820
- module: mounts
1921
group: control

0 commit comments

Comments
 (0)