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

25 lines
706B

  1. {% set php = salt['grains.filter_by']({
  2. 'Debian': {
  3. 'php_pkg': 'php5',
  4. 'apc_pkg': 'php-apc',
  5. 'curl_pkg': 'php5-curl',
  6. 'fpm_pkg': 'php5-fpm',
  7. 'gd_pkg': 'php5-gd',
  8. 'mcrypt_pkg': 'php5-mcrypt',
  9. 'mysql_pkg': 'php5-mysql',
  10. 'pear_pkg': ' php-pear',
  11. 'fpm_service': 'php5-fpm',
  12. },
  13. 'RedHat': {
  14. 'php_pkg': 'php',
  15. 'apc_pkg': 'php-pecl-apc',
  16. 'curl_pkg': 'curl',
  17. 'fpm_pkg': 'php-fpm',
  18. 'gd_pkg': 'php-gd',
  19. 'mcrypt_pkg': 'php-mcrypt',
  20. 'mysql_pkg': 'php-mysql',
  21. 'pear_pkg': ' php-pear',
  22. 'fpm_service': 'php-fpm',
  23. },
  24. }, merge=salt['pillar.get']('php:lookup')) %}