Refresh gitfs file server

salt-run fileserver.update

Display content of salt:// filesystem

salt-run fileserver.file_list

Display pillar content:

salt '*' pillar.items                  # all in-memory data
salt '*' pillar.item my_pillar         # pillar named my_pillar
salt '*' pillar.get my_pillar:my_key   # specific pillar key

Show minion highstate

salt '*' state.show_top

Apply minion highstate

salt '*' state.highstate

List available modules

salt '*' sys.list_modules

List available functions for a given module

salt '*' sys.list_functions <module_name>

Inline documentation

salt '*' sys.doc <module_name>
salt '*' sys.doc <module_name>.<function_name>

Encrypt data to store in pillar:

sudo apt install -y rng-tools
sudo mkdir /etc/salt/gpgkeys
sudo chmod 700 /etc/salt/gpgkeys
sudo gpg --gen-key  --homedir /etc/salt/gpgkeys --passphrase '' --pinentry-mode loopback
sudo gpg  --homedir /etc/salt/gpgkeys/ --armor  --export saltmaster > ~/exported_pubkey.gpg
gpg --import exported_pubkey.gpg
echo -n "jbpass" | gpg  --armor --trust-model always --encrypt -r saltmaster