Saltstack Official Apache Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 line
428B

  1. {% if grains['os_family']=="Debian" %}
  2. include:
  3. - apache
  4. a2enmod mod_ssl:
  5. cmd.run:
  6. - name: a2enmod ssl
  7. - unless: ls /etc/apache2/mods-enabled/ssl.load
  8. - order: 225
  9. - require:
  10. - pkg: apache
  11. - watch_in:
  12. - module: apache-restart
  13. {% elif grains['os_family']=="RedHat" %}
  14. mod_ssl:
  15. pkg.installed:
  16. - require:
  17. - pkg: apache
  18. - watch_in:
  19. - module: apache-restart
  20. {% endif %}