The maps.jinja code was suffering from some logic errors.
The grains.filter_by code was only executed on the 0.17 salt
versions rather than on 0.17 or newer.
Considering that 0.17 is rather old, we can get rid of these cases
and massively simplify the logic.
By defaulting to the Debian settings and using the os_family graint
to filter by, the Ubuntu and Raspbian cases could be removed as well,
further simplifying the map file.
Add rudimentary Red Hat support.
Have the pillar.get calls in mount.sls and unmount.sls return an
empty default dict to make the SLS rendering not fail in case
no pillar data is provided.
Remove support for pre 2015 saltversion unmount syntax.
The maps.jinja code was suffering from some logic errors. The grains.filter_by code was only executed on the 0.17 salt versions rather than on 0.17 or newer. Considering that 0.17 is rather old, we can get rid of these cases and massively simplify the logic.
By defaulting to the Debian settings and using the os_family graint to filter by, the Ubuntu and Raspbian cases could be removed as well, further simplifying the map file.
Add rudimentary Red Hat support.
Have the pillar.get calls in mount.sls and unmount.sls return an empty default dict to make the SLS rendering not fail in case no pillar data is provided.
Remove support for pre 2015 saltversion unmount syntax.