Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
salt-formulas
zfs-formula
Commits
6ea32309
Commit
6ea32309
authored
Jun 10, 2019
by
Julien Cigar
🤘
Browse files
init
parent
18d8ef40
Changes
1
Hide whitespace changes
Inline
Side-by-side
zfs/fs.sls
0 → 100644
View file @
6ea32309
{% 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 %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment