The following changes were made:
openmediavault 3.0.94
- Various improvements.
- Support predictable network device names in omv-initsystem.
The following changes were made:
openmediavault 3.0.94
The following changes were made:
openmediavault 3.0.93
openmediavault 3.0.92
If you need to ensure that your SLS files are executed in a sorted order, then simply use this init.sls file.
{% set dirpath = '/srv/salt' | path_join(slspath) %} include: {% for file in salt['file.readdir'](dirpath) | sort %} {% if file | regex_match('^(\d+.+).sls , ignorecase=True) %} - .{{ file | replace('.sls', '') }} {% endif %} {% endfor %}
Working with lists in Jinja2 is really simple if you are using the following trick.
{%- set vfs_objects = [] %} {%- if share.recyclebin | to_bool %} {%- set _ = vfs_objects.append('recycle') %} ... {%- endif %} {%- if share.audit | to_bool %} {%- set _ = vfs_objects.append('full_audit') %} ... {%- endif %} vfs objects = {{ vfs_objects | join(' ') }}
If you want to remove files using a glob pattern the you can not use salt.states.file.absent because it does not support file globbing. To workaround this you can simply use salt.modules.file.find.
remove_test_files: module.run: - name: file.find - path: "/xxx/yyy/zzz" - kwargs: iname: "test*" delete: "f"