Browse Source

Setup LV before mkfs

Change-Id: Ib4cb70615af8da2f1037b0a43520c215365979ba
tags/2017.4
Filip Pytloun 7 years ago
parent
commit
e9bcd2d6dd
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      linux/storage/lvm.sls

+ 3
- 0
linux/storage/lvm.sls View File

@@ -37,6 +37,9 @@ lvm_{{ vg.get('name', vgname) }}_lv_{{ volume.get('name', lvname) }}:
{%- if volume.mount is defined %}
- require_in:
- mount: {{ volume.mount.path }}
{%- if not volume.mount.get('file_system', None) in ['nfs', 'nfs4', 'cifs', 'tmpfs', None] %}
- mkfs_{{ volume.mount.device}}:
{%- endif %}
{%- endif %}

{%- endfor %}

Loading…
Cancel
Save