0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-12-02 23:06:50 +01:00
salt-formula/salt/files
Raphaël Hertzog 97299983ba
Ensure consistent ordering of module_config entries
Right now when you set module_config entries in your pillar data
like this:
salt:
  minion:
    module_config:
      smtp.from: 'Kali Salt <admins+salt@kali.org>'
      smtp.to: 'Kali Admins <admins+salt@kali.org>'
      smtp.host: localhost
      smtp.subject: 'Results of salt actions on'
      smtp.fields: id,fun

On each run, you will always a different ordering of the various
fields in the minion configuration file, leading to spurious restart
of the minion and admin annoyance:

          ID: salt-minion
    Function: file.recurse
        Name: /etc/salt/minion.d
      Result: True
     Comment: Recursively updated /etc/salt/minion.d
     Started: 13:39:25.689775
    Duration: 874.318 ms
     Changes:
              ----------
              /etc/salt/minion.d/f_defaults.conf:
                  ----------
                  diff:
                      ---
                      +++
                      @@ -930,10 +930,10 @@
                       # A dict for the test module:
                       #test.baz: {spam: sausage, cheese: bread}
                       #
                      +smtp.fields: id,fun
                      +smtp.from: Kali Salt <admins+salt@kali.org>
                       smtp.to: Kali Admins <admins+salt@kali.org>
                      -smtp.fields: id,fun
                       smtp.host: localhost
                      -smtp.from: Kali Salt <admins+salt@kali.org>
                       smtp.subject: Results of salt actions on

With the change here, this bad behaviour is gone...
2021-04-09 16:02:36 +02:00
..
cloud.maps.d Update comment for consistency 2017-06-07 14:55:25 -07:00
cloud.profiles.d Update comment for consistency 2017-06-07 14:55:25 -07:00
cloud.providers.d feat: enable the metadata grains server by default 2020-09-20 07:47:53 -07:00
default feat(tofs): allow TOFS for minion configuration 2019-06-07 03:58:24 +01:00
master.d fix: revert to using is mapping in Jinja2 2021-03-02 00:40:07 +00:00
minion.d Ensure consistent ordering of module_config entries 2021-04-09 16:02:36 +02:00
gitfs_key.jinja Cleanup and make closer to the PR submitted for the mainline salt repo master config file 2016-04-20 15:10:55 -04:00
key Added functionality to state for salt cloud and exampel for EC2 and GCE 2014-07-20 16:59:38 +02:00
roster.jinja add support for installing salt-ssh and managing the roster file, updated README and pillar.example 2014-10-28 11:45:32 -05:00