saltstack-formulas / ntp-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
23 stars 158 forks source link

Restart existing ntpd service on config change #19

Closed landergate closed 8 years ago

landergate commented 8 years ago

Make existing (deployed before saltstack) ntpd service restart on config update (ng branch)

Previously didn't happened in our existing environment. ntpd service was already running, and that is what saltstack answered with previous state file:

          ID: ntpd
    Function: service.running
        Name: ntp
      Result: True
     Comment: Service ntp is already enabled, and is running
     Started: 16:37:37.230482
    Duration: 335.92 ms
     Changes:
              ----------
              ntp:

...totally ignoring that config actually has been changed within the same highstate.