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
fff3c51f
Commit
fff3c51f
authored
Apr 26, 2022
by
Julien Cigar
🤘
Browse files
add support for present/absent
parent
890bd9ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
zfs/fs.sls
View file @
fff3c51f
...
...
@@ -2,6 +2,7 @@
{% for zfs_dataset in zfs.get('fs', ()) %}
zfs_dataset_{{ loop.index0 }}:
{% if zfs_dataset.present|default(True) %}
zfs.filesystem_present:
- name: {{ zfs_dataset.dataset }}
{%- if zfs_dataset.get('properties') %}
...
...
@@ -12,4 +13,8 @@ zfs_dataset_{{ loop.index0 }}:
- require:
- zfs: zfs_dataset_{{ loop.index0 - 1 }}
{%- endif %}
{% else %}
zfs.filesystem.absent:
- name: {{ zfs_dataset.dataset }}
{% 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