Saltstack Official Nginx 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.

19 lines
624B

  1. {% set nginx = salt['grains.filter_by']({
  2. 'Debian': {
  3. 'apache_utils': 'apache2-utils',
  4. 'package': 'nginx-full',
  5. 'default_user': 'www-data',
  6. 'default_group': 'www-data',
  7. 'disable_before_rename': False,
  8. 'old_init_disable': 'update-rc.d -f nginx remove'
  9. },
  10. 'RedHat': {
  11. 'apache_utils': 'httpd-tools',
  12. 'package': 'nginx',
  13. 'default_user': 'nginx',
  14. 'default_group': 'nginx',
  15. 'disable_before_rename': True,
  16. 'old_init_disable': 'chkconfig --del nginx'
  17. },
  18. }, merge=salt['pillar.get']('nginx:lookup'), default='Debian') %}