Correct Jinja function load_* to import_*

Fixes #28248.
Also added a YAML example because really, who wants to write json by hand? ;)

Don't know if this is mentioned in the pillar docs but would be very useful there, too.
This commit is contained in:
Florian Ermisch 2015-10-24 12:13:37 +02:00
parent 909fa3dc97
commit 6d4316b0ac

View file

@ -414,13 +414,17 @@ from the Salt Master. For example:
{% set some_data = salt.pillar.get('some_data', {'sane default': True}) %}
{# or #}
{% import_yaml 'path/to/file.yaml' as some_data %}
{# or #}
{% load_json 'path/to/file.json' as some_data %}
{% import_json 'path/to/file.json' as some_data %}
{# or #}
{% load_text 'path/to/ssh_key.pub' as ssh_pub_key %}
{% import_text 'path/to/ssh_key.pub' as ssh_pub_key %}
{# or #}