Support tmpfs mounttags/2016.12
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 |
{%- 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 %} |