Browse Source

Merge "Setup LV before mkfs"

tags/2017.4
Filip Pytloun 7 years ago
parent
commit
28d7a54e9b
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