Quellcode durchsuchen

Remove "source" comments from Saltify configs

I use Salt environments to provide each of my team mates the ability to develop
and test their Salt changes. And I've found that when we run this formula from
our environments against our salt-master, comments in some files change. For us
this represents an unwanted and unplanned change. I understand the intention -
to identify how or why the file changed, but I firmly believe that we should
be able to run highstsate with test=True and only see intended changes. Here's
an example:

            ID: salt-cloud-providers
      Function: file.recurse
          Name: /etc/salt/cloud.providers.d
        Result: None
       Comment: #### /etc/salt/cloud.providers.d/saltify.conf ####
                The file /etc/salt/cloud.providers.d/saltify.conf is set to be changed
       Started: 20:01:28.586441
      Duration: 75.185 ms
       Changes:
                ----------
                /etc/salt/cloud.providers.d/saltify.conf:
                    ----------
                    diff:
                        ---
                        +++
                        @@ -1,4 +1,4 @@
                        -# This file is managed by Salt via salt://salt/files/cloud.providers.d/saltify.conf?saltenv=myenv
                        +# This file is managed by Salt via salt://salt/files/cloud.providers.d/saltify.conf?saltenv=dev

                         saltify:
                           provider: saltify
tags/v0.57.0
Charles McLaughlin vor 7 Jahren
Ursprung
Commit
316622ef9b
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. +1
    -1
      salt/files/cloud.maps.d/_saltify.conf
  2. +1
    -1
      salt/files/cloud.profiles.d/_saltify.conf
  3. +1
    -1
      salt/files/cloud.providers.d/_saltify.conf

+ 1
- 1
salt/files/cloud.maps.d/_saltify.conf Datei anzeigen

@@ -1,4 +1,4 @@
# This file is managed by Salt via {{ source }}
# This file is managed by Salt
make_salty:
- someinstance:
ssh_host: somehost.somedomain

+ 1
- 1
salt/files/cloud.profiles.d/_saltify.conf Datei anzeigen

@@ -1,3 +1,3 @@
# This file is managed by Salt via {{ source }}
# This file is managed by Salt
make_salty:
provider: saltify

+ 1
- 1
salt/files/cloud.providers.d/_saltify.conf Datei anzeigen

@@ -1,4 +1,4 @@
# This file is managed by Salt via {{ source }}
# This file is managed by Salt

{% set cloud = salt['pillar.get']('salt:cloud', {}) -%}


Laden…
Abbrechen
Speichern