14 lines
518 B
Django/Jinja
14 lines
518 B
Django/Jinja
# The home-server project produces a multi-purpose setup using Ansible.
|
|
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license.
|
|
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
|
|
|
|
{% macro clients(opts) %}
|
|
{% for net in net_trusted_ranges.split(' ') %}
|
|
{{net}}({{opts}})
|
|
{%- endfor %}
|
|
{% endmacro %}
|
|
/srv/nfs{{ clients('rw,fsid=root,crossmnt') }}
|
|
{% for e in nfs_exports | from_json %}
|
|
/srv/nfs/{{e['name']}}{{ clients(nfs_options) }}
|
|
{% endfor %}
|