== Refresh Pillars ==
# salt saltutil.refresh_pillar
== List keys ==
List all keys
# salt-key
List all accepted keys
# salt-key -l acc
List all unaccepted keys
# salt-key -l un
== Salt Module to jinja template ==
Info is from [[https://stackoverflow.com/questions/48934641/convert-a-salt-module-into-jinja/48939861?noredirect=1#comment84895657_48939861| stackoverflow]].
The simple command runs fine on the commandline, but to make it work in a jinja template is not that easy.
# salt-ssh -i 'myhost' lowpkg.info postfix attr=version
This delivers just the version. For example: 2.3.4
{%- set postfixversion = salt['lowpkg.info']('postfix',attr='version')['postfix']['version'] %}
\\
The following will return a dictionary and not just the expacted nummer: ''{'postfix': {'version': '3.0.5'}}''
{%- set postfixversion = salt['lowpkg.info']('postfix',attr='version') %}
{{tag>[Good2Know]}}