Commit 6ea32309 authored by Julien Cigar's avatar Julien Cigar 🤘
Browse files

init

parent 18d8ef40
{% set zfs = salt.pillar.get('zfs') %}
{% for zfs_dataset in zfs.get('fs', ()) %}
zfs_dataset_{{ loop.index0 }}:
zfs.filesystem_present:
- name: {{ zfs_dataset.dataset }}
{%- if zfs_dataset.get('properties') %}
- properties:
{{ zfs_dataset.properties|yaml }}
{%- endif %}
{%- if loop.index0 > 0 %}
- require:
- zfs: zfs_dataset_{{ loop.index0 - 1 }}
{%- endif %}
{% endfor %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment