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

@@ -558,6 +558,7 @@ Linux with mounted Samba
enabled: true
mount:
samba1:
- enabled: true
- path: /media/myuser/public/
- device: //192.168.0.1/storage
- file_system: cifs
@@ -599,6 +600,7 @@ LVM group `vg1` with one device and `data` volume mounted into `/mnt/data`
storage:
mount:
data:
enabled: true
device: /dev/vg1/data
file_system: ext4
path: /mnt/data

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

@@ -5,7 +5,7 @@

{%- 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}}:
cmd.run:
@@ -50,4 +50,4 @@ xfs_packages_{{ mount.device }}:

{%- endfor %}

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

Loading…
Cancel
Save