Browse Source

Merge pull request #81 from jiribroulik/master

nfs filesystem mount fix
tags/2017.4.1
Filip Pytloun 7 years ago
parent
commit
2a1850643e
2 changed files with 15 additions and 0 deletions
  1. +9
    -0
      linux/map.jinja
  2. +6
    -0
      linux/storage/mount.sls

+ 9
- 0
linux/map.jinja View File

'swap': {}, 'swap': {},
'lvm': {}, 'lvm': {},
'loopback': {}, 'loopback': {},
'nfs': {
'pkgs': ['nfs-utils']
},
'multipath': { 'multipath': {
'enabled': False, 'enabled': False,
'pkgs': ['multipath-tools', 'multipath-tools-boot'], 'pkgs': ['multipath-tools', 'multipath-tools-boot'],
'swap': {}, 'swap': {},
'lvm': {}, 'lvm': {},
'loopback': {}, 'loopback': {},
'nfs': {
'pkgs': ['nfs-common']
},
'multipath': { 'multipath': {
'enabled': False, 'enabled': False,
'pkgs': ['multipath-tools', 'multipath-tools-boot'], 'pkgs': ['multipath-tools', 'multipath-tools-boot'],
'swap': {}, 'swap': {},
'lvm': {}, 'lvm': {},
'loopback': {}, 'loopback': {},
'nfs': {
'pkgs': ['nfs-utils']
},
'multipath': { 'multipath': {
'enabled': False, 'enabled': False,
'pkgs': [], 'pkgs': [],

+ 6
- 0
linux/storage/mount.sls View File



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


{%- if mount.file_system == 'nfs' %}
linux_storage_nfs_packages:
pkg.installed:
- pkgs: {{ storage.nfs.pkgs }}
{%- endif %}

{{ mount.path }}: {{ mount.path }}:
mount.mounted: mount.mounted:
- device: {{ mount.device }} - device: {{ mount.device }}

Loading…
Cancel
Save