# Since dynamically resolving DNS is only supported in the commercal version of
# nginx, regularly reload the config to ensure we never try an expired IP for
# too long. Note that reloads are graceful to existing connections and will
# gradually transition from old to new workers without any service disruption.

nginx-regular-reload:
    cron.present:
        - name: service nginx reload
        - identifier: nginx-regular-reload
        - minute: random

Add nginx substate for regular reloads
Add nginx substate for regular reloads

Disabled by default, include the state nginx.regular_reload to use
it. Patching the open-source version of nginx to support dynamically
resolving DNS would be the best long-term option, but not within my
comfort zone for the time being.

thusoy/salt-states,thusoy/salt-states,thusoy/salt-states,thusoy/salt-states