Add jinja line statement and line comment options to master config.

This commit is contained in:
Corvin Mcpherson 2017-08-10 22:49:58 -04:00
parent 61d39ffc3c
commit eb713c699f
3 changed files with 68 additions and 0 deletions

View File

@ -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
#

View File

@ -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
#

View File

@ -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``