mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 08:35:21 +00:00
Add jinja line statement and line comment options to master config.
This commit is contained in:
parent
61d39ffc3c
commit
eb713c699f
16
conf/master
16
conf/master
@ -564,6 +564,22 @@
|
||||
# The renderer to use on the minions to render the state data
|
||||
#renderer: yaml_jinja
|
||||
|
||||
# The Jinja renderer can accept Line Statements and/or Line Comments if
|
||||
# configured with a prefix for each.
|
||||
# See http://jinja.pocoo.org/docs/templates/#line-statements
|
||||
#
|
||||
# If this is set to a valid string, any line starting with this prefix
|
||||
# will be interpreted as a line statement by the jinja renderer.
|
||||
# This is set to "#" in the Jinja documentation's examples.
|
||||
# Defaults to None.
|
||||
#jinja_line_statement_prefix: None
|
||||
#
|
||||
# If this is set to a valid string, any line starting with this prefix
|
||||
# will be interpreted as a line comment statement by the jinja renderer.
|
||||
# This is set to "##" in the Jinja documentation's examples.
|
||||
# Defaults to None.
|
||||
#jinja_line_comment_prefix: None
|
||||
|
||||
# The Jinja renderer can strip extra carriage returns and whitespace
|
||||
# See http://jinja.pocoo.org/docs/api/#high-level-api
|
||||
#
|
||||
|
@ -537,6 +537,22 @@ syndic_user: salt
|
||||
# The renderer to use on the minions to render the state data
|
||||
#renderer: yaml_jinja
|
||||
|
||||
# The Jinja renderer can accept Line Statements and/or Line Comments if
|
||||
# configured with a prefix for each.
|
||||
# See http://jinja.pocoo.org/docs/templates/#line-statements
|
||||
#
|
||||
# If this is set to a valid string, any line starting with this prefix
|
||||
# will be interpreted as a line statement by the jinja renderer.
|
||||
# This is set to "#" in the Jinja documentation's examples.
|
||||
# Defaults to None.
|
||||
#jinja_line_statement_prefix: None
|
||||
#
|
||||
# If this is set to a valid string, any line starting with this prefix
|
||||
# will be interpreted as a line comment statement by the jinja renderer.
|
||||
# This is set to "##" in the Jinja documentation's examples.
|
||||
# Defaults to None.
|
||||
#jinja_line_comment_prefix: None
|
||||
|
||||
# The Jinja renderer can strip extra carriage returns and whitespace
|
||||
# See http://jinja.pocoo.org/docs/api/#high-level-api
|
||||
#
|
||||
|
@ -1924,6 +1924,42 @@ the cloud profile or master config file, no templating will be performed.
|
||||
|
||||
userdata_template: jinja
|
||||
|
||||
.. conf_master:: jinja_line_statement_prefix
|
||||
|
||||
``jinja_line_statement_prefix``
|
||||
---------------------
|
||||
|
||||
.. versionadded:: Oxygen
|
||||
|
||||
Default: ``None``
|
||||
|
||||
If this is set to a valid string, any line starting with this prefix
|
||||
will be interpreted as a line statement by the jinja renderer.
|
||||
Defaults to ``None`` and corresponds
|
||||
to the Jinja environment init variable ``line_statement_prefix``.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
jinja_line_statement_prefix: None
|
||||
|
||||
.. conf_master:: jinja_line_comment_prefix
|
||||
|
||||
``jinja_line_comment_prefix``
|
||||
---------------------
|
||||
|
||||
.. versionadded:: Oxygen
|
||||
|
||||
Default: ``None``
|
||||
|
||||
If this is set to a valid string, any line starting with this prefix
|
||||
will be interpreted as a line comment by the jinja renderer.
|
||||
Defaults to ``None`` and corresponds
|
||||
to the Jinja environment init variable ``line_comment_prefix``.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
jinja_line_comment_prefix: None
|
||||
|
||||
.. conf_master:: jinja_trim_blocks
|
||||
|
||||
``jinja_trim_blocks``
|
||||
|
Loading…
Reference in New Issue
Block a user