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.

29 lines
882B

  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. 'memcache_pkg': 'php5-memcache',
  10. 'memcached_pkg': 'php5-memcached',
  11. 'mysql_pkg': 'php5-mysql',
  12. 'pear_pkg': ' php-pear',
  13. 'fpm_service': 'php5-fpm',
  14. },
  15. 'RedHat': {
  16. 'php_pkg': 'php',
  17. 'apc_pkg': 'php-pecl-apc',
  18. 'curl_pkg': 'curl',
  19. 'fpm_pkg': 'php-fpm',
  20. 'gd_pkg': 'php-gd',
  21. 'mcrypt_pkg': 'php-mcrypt',
  22. 'memcache_pkg': 'php-pecl-memcache',
  23. 'memcached_pkg': 'php-pecl-memcached',
  24. 'mysql_pkg': 'php-mysql',
  25. 'pear_pkg': ' php-pear',
  26. 'fpm_service': 'php-fpm',
  27. },
  28. }, merge=salt['pillar.get']('php:lookup')) %}