1. {% set app_v = salt['grains.get']('app', '') %}
  2. {% set app_version = '60' %}
  3. # Deploy the App config file
  4. /var/app/app.config:
  5. file.managed:
  6. - mode: '0644'
  7. - template: jinja
  8. {% if '{{ app_v }}' == '{{ app_version }}' %}
  9. - source: salt://repo/var/app/app.config.{{ app_version }}
  10. {% endif %}