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

@@ -14,9 +14,12 @@ mkfs_{{ mount.device}}:
- require_in:
- mount: {{ mount.path }}
{%- if mount.file_system == 'xfs' %}
{%- set install_xfs = True %}
- require:
- pkg: xfs_packages
- pkg: xfs_packages_{{ mount.device }}

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

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

{%- if mount.user is defined %}
@@ -53,4 +56,4 @@ xfs_packages:
- name: xfsprogs
{%- endif %}

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

Loading…
Cancel
Save