This adds the new openvswitch_db state module. It also adds the new
functions bridge_to_parent, bridge_to_vlan, db_get, and db_set to the
openvswitch execution module.
Besides, it adds two new optional parameters parent and vlan to the
openvswitch_bridge.present state module function and the
openvswitch.bridge_create execution module function.
Properly document how identifier matching works.
Reorder sections to a more logical progression.
Remove duplicate section.
Remove section on high data implementation details that doesn't make anything clearer.
* add consul states and acl function present/absent
* add consul to states doc index
* refact/fix consul states
* fix doc, fix states
* fix name parameter for acl_changes
* fixing pylint errors
* small changes after review by @rallytime
* fix header count
* Update consul.py
* fix acl_exists description, fix when both id and name are missing
* Adding some tests for consul module and consul state module. Some additional fixes in the consul module.
* Fixing tests.
* Fixing failing tests on Windows.
* Adding changelog.
* Adding some tests for consul module and consul state module. Some additional fixes in the consul module.
* moving tests to pytest.
* manual black changes.
* One more manual black change.
* fixing formatting. Adding versionadded for state module.
Co-authored-by: Rémi Jouannet <remi.jouannet@outscale.com>
Co-authored-by: Mike Place <mp@saltstack.com>
Co-authored-by: Daniel Wozniak <dwozniak@saltstack.com>
Co-authored-by: Wayne Werner <wwerner@vmware.com>
Add note to `onchanges` and `watch` requisite docs to state, that
addressing an included SLS as requisite to be monitored by `onchanges`
or `watch` is not supported.
Until now, the listings of all kinds of modules looked quite
inconsistent like this:
- salt.states.smtp
- salt.states.snapper module
- salt.states.solrcloud module
- salt.states.splunk
The `module` suffix is redundant anyways, so let's remove it and do some
further cleanup (adjusting overline/underline usage, underline length)
using the following bash script:
```bash
sed -i 's|\s\+module$||g' doc/ref/*/all/*.*.rst
for rst in doc/ref/*/all/*.*.rst;
do
# enforce consistent overline/underline usage, remove all overlines
if [[ $(head -n1 "${rst}") =~ ^=+$ ]];
then
sed -i -e 1d "${rst}"
fi
# adjust the length of the underline to the length of the module name
module_name=$(head -n1 "${rst}")
underline=$(for i in $(seq ${#module_name}); do echo -n "="; done)
sed -i '2s|^=\+$|'"${underline}"'|g' "${rst}"
done
```
* Cleanup calculation of template sls/tpl context
Fixes#56410
* fix string formatting
* Add unit test that works against old version (with bugs)
* Updated unit tests with non-buggy values and fix found bugs
* cleanup unit tests to test underlying function
* remove old unit test components no longer used
* Cleanup
* More Cleanup
* More cleanup. Add Mock to test.support.unit
* Add changelog entries
* Fix Mockery
* Import order fix
* Handle backslashes in sls names under *nix
* Cleanup
* Make sure we return a dictionary from jinja.load_map
* Fix scenario when sls is empty but present
* Touched another file - Cleanup to make pre-commit happy
* Adding variables to docs
* Fix expected tplpath value to be OS specific and note so in docs
* removing comments from imports as per pre-commit
* removing comments from imports as per pre-commit
* Put slsvars changes behind a feature flag
* Better documentation for enable_slsvars_fixes feature flag
* Fix test that should be skipped on windows
Co-authored-by: Michael "M3" Lasevich <Michael.Lasevich@bhnetwork.com>
Co-authored-by: Sage the Rage <36676171+sagetherage@users.noreply.github.com>
Co-authored-by: Daniel A. Wozniak <dwozniak@saltstack.com>
Co-authored-by: Shane Lee <slee@saltstack.com>
* Change Sodium reference to 3001
* Update nacl.py
Change back name to libsodium, got changed to lib3001.
Co-authored-by: Daniel Wozniak <dwozniak@saltstack.com>