Browse Source

Merge pull request #30 from simonpasquier/support-tmpfs-mount

Support tmpfs mount
tags/2016.12
Filip Pytloun 8 years ago
parent
commit
3329bccf68
2 changed files with 4 additions and 2 deletions
  1. +2
    -0
      README.rst
  2. +2
    -2
      linux/storage/mount.sls

+ 2
- 0
README.rst View File

enabled: true enabled: true
mount: mount:
samba1: samba1:
- enabled: true
- path: /media/myuser/public/ - path: /media/myuser/public/
- device: //192.168.0.1/storage - device: //192.168.0.1/storage
- file_system: cifs - file_system: cifs
storage: storage:
mount: mount:
data: data:
enabled: true
device: /dev/vg1/data device: /dev/vg1/data
file_system: ext4 file_system: ext4
path: /mnt/data path: /mnt/data

+ 2
- 2
linux/storage/mount.sls View File



{%- if mount.enabled %} {%- if mount.enabled %}


{%- if not mount.file_system in ['nfs', 'nfs4', 'cifs'] %}
{%- if not mount.file_system in ['nfs', 'nfs4', 'cifs', 'tmpfs'] %}


mkfs_{{ mount.device}}: mkfs_{{ mount.device}}:
cmd.run: cmd.run:


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


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

Loading…
Cancel
Save