ensure proper version of python3-influxdb is installed prior to running the states that require it

This commit is contained in:
m0duspwnens
2021-04-30 11:10:31 -04:00
parent d475e50bef
commit e32ca284c5
2 changed files with 9 additions and 2 deletions

View File

@@ -33,11 +33,12 @@ influxdb_retention_policy.present_patch:
- {{PYTHONINSTALLER}}: python3_influxdb
- pkg: patch_package
# We should be able to set reload_modules: True in this state in order to tell salt to reload its python modules due to us possibly installing
# and possibly modifying modules in this state. This is bugged according to https://github.com/saltstack/salt/issues/24925
influxdbmod.py_shard_duration_patch:
file.patch:
- name: {{ SALT_MODULE_CODE_PATH }}/influxdbmod.py
- source: salt://salt/files/influxdbmod.py.patch
- require:
- {{PYTHONINSTALLER}}: python3_influxdb
- pkg: patch_package
- reload_modules: True
- pkg: patch_package