Skip to content

Instantly share code, notes, and snippets.

@hatifnatt

hatifnatt/log.md Secret

Created June 13, 2019 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hatifnatt/d705f3d9a12c9eb1554d050ef53bc583 to your computer and use it in GitHub Desktop.
Save hatifnatt/d705f3d9a12c9eb1554d050ef53bc583 to your computer and use it in GitHub Desktop.
saltstack custom utils module

patroni.py

...
# Import salt libs
import salt.utils.http
import salt.utils.json
import salt.utils.data
import salt.utils.dicttols
...

syncing

salt 'myminion*' saltutil.sync_all saltenv=dev
myminion:
    ----------
    beacons:
    clouds:
    engines:
    grains:
    log_handlers:
    modules:
        - modules.patroni
    output:
    proxymodules:
    renderers:
    returners:
    sdb:
    states:
    thorium:
    utils:
        - utils.dicttools

trying to use

salt 'myminion*' patroni.extract_dynamic_config
myminion:
    'patroni' __virtual__ returned False: No module named dicttols
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment