Browse Source

fix xfs tools

tags/2016.12
Alena Holanova 8 years ago
parent
commit
48a3a1ae69
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      linux/storage/mount.sls

+ 7
- 4
linux/storage/mount.sls View File

- require_in: - require_in:
- mount: {{ mount.path }} - mount: {{ mount.path }}
{%- if mount.file_system == 'xfs' %} {%- if mount.file_system == 'xfs' %}
{%- set install_xfs = True %}
- require: - require:
- pkg: xfs_packages
- pkg: xfs_packages_{{ mount.device }}

xfs_packages_{{ mount.device }}:
pkg.installed:
- name: xfsprogs
{%- endif %} {%- endif %}


{%- endif %} {%- endif %}
- opts: {{ mount.get('opts', 'defaults,noatime') }} - opts: {{ mount.get('opts', 'defaults,noatime') }}
{%- if mount.file_system == 'xfs' %} {%- if mount.file_system == 'xfs' %}
- require: - require:
- pkg: xfs_packages
- pkg: xfs_packages_{{ mount.device }}
{%- endif %} {%- endif %}


{%- if mount.user is defined %} {%- if mount.user is defined %}
- name: xfsprogs - name: xfsprogs
{%- endif %} {%- endif %}


{%- endif %}
{%- endif %}

Loading…
Cancel
Save