2015-05-13 16:33:06 +02:00
|
|
|
{% from "nfs/map.jinja" import nfs with context %}
|
|
|
|
|
|
|
|
include:
|
|
|
|
- nfs.client
|
|
|
|
|
2018-03-23 10:17:32 +01:00
|
|
|
{% for m in salt['pillar.get']('nfs:mount', {}).items() %}
|
2015-05-13 16:33:06 +02:00
|
|
|
{{ m[1].mountpoint }}:
|
|
|
|
mount.mounted:
|
|
|
|
- device: {{ m[1].location }}
|
|
|
|
- fstype: nfs
|
2018-03-23 10:17:32 +01:00
|
|
|
{# Not every platform needs options #}
|
|
|
|
{% if 'opts' in m[1] or nfs.mount_opts %}
|
|
|
|
- opts: {{ m[1].opts|default(nfs.mount_opts) }}
|
2019-11-20 16:22:54 +01:00
|
|
|
{% endif %}
|
2018-03-23 10:17:32 +01:00
|
|
|
- persist: {{ m[1].persist|default(nfs.persist_mount) }}
|
|
|
|
- mkmnt: {{ m[1].mkmnt|default(nfs.mkmnt) }}
|
2015-05-13 16:33:06 +02:00
|
|
|
{% endfor %}
|