mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
909fa3dc97
commit
6d4316b0ac
1 changed files with 6 additions and 2 deletions
|
@ -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 #}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue