salt.modules.jinja
Module for checking jinja maps and verifying the result of loading JSON/YAML files
New in version 3000.
-
Loads JSON data from the specified path
CLI Example:
salt myminion jinja.import_JSON myformula/foo.json
salt.modules.jinja.import_json(path)
-
Loads YAML data from the specified path
CLI Example:
salt myminion jinja.import_yaml myformula/foo.yaml
salt.modules.jinja.import_yaml(path)
-
Loads the map at the specified path, and returns the specified value from that map.
CLI Example:
# Assuming the map is loaded in your formula SLS as follows: # # {% from "myformula/map.jinja" import myformula with context %} # # the following syntax can be used to load the map and check the # results: salt myminion jinja.load_map myformula/map.jinja myformula
salt.modules.jinja.load_map(path, value)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.jinja.html