Skip to content

Commit e44e084

Browse files
Matt Pryorsjpb
Matt Pryor
andauthored
Make block device detection work on ESXi (#481)
Co-authored-by: Steve Brasier <[email protected]>
1 parent 92f5115 commit e44e084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible/roles/cluster_infra/templates/resources.tf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ resource "openstack_compute_instance_v2" "control" {
471471
{%- endif %}
472472
bootcmd:
473473
%{for volume in [openstack_blockstorage_volume_v3.state, {% if not cluster_home_manila_share | bool %} openstack_blockstorage_volume_v3.home {% endif %}]}
474-
- BLKDEV=$(readlink -f $(ls /dev/disk/by-id/*${substr(volume.id, 0, 20)}* | head -n1 )); blkid -o value -s TYPE $BLKDEV || mke2fs -t ext4 -L ${lower(split(" ", volume.description)[0])} $BLKDEV
474+
- BLKDEV=$(readlink -f $(ls /dev/disk/by-id/*${replace(substr(volume.id, 0, 20), "-", "*")}* | head -n1 )); blkid -o value -s TYPE $BLKDEV || mke2fs -t ext4 -L ${lower(split(" ", volume.description)[0])} $BLKDEV
475475
%{endfor}
476476
mounts:
477477
- [LABEL=state, {{ appliances_state_dir }}, auto]

0 commit comments

Comments
 (0)