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.

10 年之前
10 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {% set php = salt['grains.filter_by']({
  2. 'Debian': {
  3. 'php_pkg': 'php5',
  4. 'apc_pkg': 'php-apc',
  5. 'apcu_pkg': 'php5-apcu',
  6. 'cgi_pkg': 'php5-cgi',
  7. 'cli_pkg': 'php5-cli',
  8. 'curl_pkg': 'php5-curl',
  9. 'fpm_pkg': 'php5-fpm',
  10. 'gd_pkg': 'php5-gd',
  11. 'oauth_pkg': 'php5-oauth',
  12. 'intl_pkg': 'php5-intl',
  13. 'json_pkg': 'php5-json',
  14. 'mbstring_pkg': 'php5',
  15. 'mcrypt_pkg': 'php5-mcrypt',
  16. 'memcache_pkg': 'php5-memcache',
  17. 'memcached_pkg': 'php5-memcached',
  18. 'mysql_pkg': 'php5-mysql',
  19. 'mysqlnd_pkg': 'php5-mysqlnd',
  20. 'pear_pkg': 'php-pear',
  21. 'soap_pkg': 'php-soap',
  22. 'sqlite_pkg': 'php5-sqlite',
  23. 'redis_pkg': 'php5-redis',
  24. 'fpm_service': 'php5-fpm',
  25. 'xml_pkg': 'php5',
  26. 'imagick_pkg': 'php5-imagick',
  27. 'suhosin_pkg': 'php5-suhosin',
  28. 'imap_pkg': 'php5-imap',
  29. 'adodb_pkg': 'php5-adodb',
  30. 'pgsql_pkg': 'php5-pgsql',
  31. 'ldap_pkg': 'php5-ldap',
  32. 'php_ini': '/etc/php5/apache2/php.ini',
  33. 'dev_pkg': 'php5-dev',
  34. 'mongo_pecl': 'mongo',
  35. 'mongo_ext': 'mongo.so',
  36. 'ext_conf_path': '/etc/php5/mods-available',
  37. 'local_bin': '/usr/local/bin',
  38. 'temp_dir': '/tmp',
  39. 'composer_bin': 'composer',
  40. 'composer_hash': 'sha256=6a1ba6495f0bdb8e7735a7a76948b61c54b4a57b56837a9e9f93b4a0ac1f83a5',
  41. },
  42. 'RedHat': {
  43. 'php_pkg': 'php',
  44. 'apc_pkg': 'php-pecl-apc',
  45. 'apcu_pkg': 'php-pecl-apcu',
  46. 'cgi_pkg': 'php-cgi',
  47. 'cli_pkg': 'php-cli',
  48. 'curl_pkg': 'curl',
  49. 'fpm_pkg': 'php-fpm',
  50. 'gd_pkg': 'php-gd',
  51. 'oauth_pkg': 'php-oauth',
  52. 'intl_pkg': 'php-intl',
  53. 'json_pkg': 'php-common',
  54. 'mbstring_pkg': 'php-mbstring',
  55. 'mcrypt_pkg': 'php-mcrypt',
  56. 'memcache_pkg': 'php-pecl-memcache',
  57. 'memcached_pkg': 'php-pecl-memcached',
  58. 'mysql_pkg': 'php-mysql',
  59. 'mysqlnd_pkg': 'php-mysqlnd',
  60. 'pear_pkg': 'php-pear',
  61. 'soap_pkg': 'php-soap',
  62. 'sqlite_pkg': 'php5-sqlite',
  63. 'redis_pkg': 'php-redis',
  64. 'fpm_service': 'php-fpm',
  65. 'xml_pkg': 'php-xml',
  66. 'imagick_pkg': 'php-pecl-imagick',
  67. 'suhosin_pkg': 'php-suhosin',
  68. 'imap_pkg': 'php-imap',
  69. 'adodb_pkg': 'php-adodb',
  70. 'pgsql_pkg': 'php-pgsql',
  71. 'ldap_pkg': 'php-ldap',
  72. 'php_ini': '/etc/php.ini',
  73. 'dev_pkg': 'php-dev',
  74. 'mongo_pecl': 'mongo',
  75. 'mongo_ext': 'mongo.so',
  76. 'ext_conf_path': '/etc/php5/conf.d',
  77. 'local_bin': '/usr/local/bin',
  78. 'temp_dir': '/tmp',
  79. 'composer_bin': 'composer',
  80. 'composer_hash': 'sha256=6a1ba6495f0bdb8e7735a7a76948b61c54b4a57b56837a9e9f93b4a0ac1f83a5',
  81. },
  82. 'Suse': {
  83. 'php_pkg': 'php5',
  84. 'cli_pkg': 'php5-cli',
  85. 'curl_pkg': 'php5-curl',
  86. 'fpm_pkg': 'php5-fpm',
  87. 'gd_pkg': 'php5-gd',
  88. 'intl_pkg': 'php5-intl',
  89. 'json_pkg': 'php5-json',
  90. 'mbstring_pkg': 'php5-mbstring',
  91. 'mcrypt_pkg': 'php5-mcrypt',
  92. 'mysql_pkg': 'php5-mysql',
  93. 'pear_pkg': 'php5-pear',
  94. 'soap_pkg': 'php5-soap',
  95. 'sqlite_pkg': 'php5-sqlite',
  96. 'fpm_service': 'php5-fpm',
  97. 'xml_pkg': ['php5-xmlreader','php5-xmlwriter','php5-xmlrpc'],
  98. 'suhosin_pkg': 'php5-suhosin',
  99. 'imap_pkg': 'php5-imap',
  100. 'adodb_pkg': 'php5-dba',
  101. 'pgsql_pkg': 'php5-pgsql',
  102. 'ldap_pkg': 'php5-ldap',
  103. 'php_ini': '/etc/php5/apache2/php.ini',
  104. 'dev_pkg': 'php5-devel',
  105. 'mongo_pecl': 'mongo',
  106. 'mongo_ext': 'mongo.so',
  107. 'ext_conf_path': '/etc/php5/conf.d',
  108. 'local_bin': '/usr/local/bin',
  109. 'temp_dir': '/tmp',
  110. 'composer_bin': 'composer',
  111. 'composer_hash': 'sha256=6a1ba6495f0bdb8e7735a7a76948b61c54b4a57b56837a9e9f93b4a0ac1f83a5',
  112. },
  113. }, merge=salt['pillar.get']('php:lookup')) %}