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

{%- if volume.mount is defined %} {%- if volume.mount is defined %}
- require_in: - require_in:
- mount: {{ volume.mount.path }} - mount: {{ volume.mount.path }}
{%- if not volume.mount.get('file_system', None) in ['nfs', 'nfs4', 'cifs', 'tmpfs', None] %}
- mkfs_{{ volume.mount.device}}:
{%- endif %}
{%- endif %} {%- endif %}


{%- endfor %} {%- endfor %}

Loading…
Cancel
Save