FAQ
Nice. Good start for common macro library ;-)

I guess the banner macro would even more general usable if '<!--' ... '-->'
and '/*' ... '*/' are supported.

E.g.
{% macro salt_banner(comment_char='#', comment_start='', comment_end='') %}

And maybe:
{%- if comment_start == '<!--' and not comment_end -%}
{%- set comment_end = '-->' -%}
{%- endif -%}
On Wednesday, October 28, 2015 at 9:21:17 AM UTC+1, Kees Bos wrote:

Hi,

I normally add something like:

# {{ salt['pillar.get']('SALT_MANAGED') }}
# Source: {{ source }}

to the top of all salt managed files. (The SALT_MANAGED is a string set in
my pillar)

Is there some consensus on this (or common practice)?

Cheers,

Kees
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 6 | next ›
Discussion Overview
groupsalt-users @
postedOct 28, '15 at 8:21a
activeNov 2, '15 at 3:44p
posts6
users2

2 users in discussion

Kees Bos: 4 posts Florian Ermisch: 2 posts

People

Translate

site design / logo © 2022 Grokbase