New update available

The following changes were made:

openmediavault 3.0.95

  • Increase ‘Unit’ column size in file system quota dialog.
  • Fix calculation of CPU utilization.
  • Use full login shell in user defined cron scripts.
  • Fix broken dependencies in place when updating packages via WebUI.
  • Improve \OMV\System\Filesystem\Filesystem::hasFileSystem() method.
  • Use atomic mkdir to create lock file in SMB recycle dir cron script.
  • Only flush iptables INPUT/OUTPUT chains.

New update available

The following changes were made:

openmediavault 3.0.94

  • Various improvements.
  • Support predictable network device names in omv-initsystem.

New updates available

The following changes were made:

openmediavault 3.0.93

  • Various improvements.
  • Fix issue when clicking very fast in the left navigation tree.

openmediavault 3.0.92

  • Fix issue in omv-firstaid ‘Check RRD database’ when performance statistics
    are disabled.
  • Fix time zone configuration issue.
  • Fix bug in omv.collections.DotDict class.
  • Fix IPv6 regular expression. Now IPv6 addresses are displayed in the
    dashboard widget.

 

How to execute SLS files in sorted order

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

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(' ') }}