Saltstack Official PHP Formula
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pillar.example 5.5KB

New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
il y a 8 ans
il y a 9 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. ## php.ng pillar examples
  2. php:
  3. # Use ppa instead the default repository (only Debian family)
  4. use_ppa: True
  5. # Set the ppa name (valid only if use_ppa is not none)
  6. ppa_name: 'ondrej/php'
  7. # Set the MongoDB driver version. You can specify (optionally) the driver version
  8. # when you add the php.mongo formula to your execution list
  9. mongo_version: "1.5.5"
  10. ng:
  11. # this section contains mostly grain filtered data, while overrides
  12. # are possible in the pillar for unique cases, if your OS is not
  13. # represented, please consider adding it to the map.jinja for
  14. # upstream inclusion
  15. lookup:
  16. # package definitions, these can be strings, lists of strings, or
  17. # lists of dictionaries
  18. pkgs:
  19. memcached: php5-memcached
  20. # ensures both will be installed
  21. curl:
  22. - php-common
  23. - curl
  24. # a dictionary can be used in more complex cases where you want
  25. # to pass forward special arguments to the pkg.installed call
  26. # you MUST include the name argument for this to work
  27. cli:
  28. -
  29. name: php-cli
  30. fromrepo: my-specialrepo
  31. -
  32. name: php-common
  33. skip_verify: True
  34. # php-fpm os-specific settings
  35. fpm:
  36. conf: /location/of/php-fpm/config.conf
  37. ini: /location/of/php-fpm/php.ini
  38. pools: /location/of/php-fpm/pool.d
  39. service: name-of-php5-fpm-service
  40. # the default content of the php5-fpm main config file
  41. defaults:
  42. global:
  43. pid: /var/run/php5-fpm.pid
  44. # php-cli os-specific settings
  45. cli:
  46. ini: /location/of/php-cli/php.ini
  47. # php-fpm settings
  48. fpm:
  49. # settings for the php-fpm service
  50. service:
  51. # if True, enables the php-fpm service, if False disables it
  52. enabled: True
  53. # additional arguments passed forward to
  54. # service.enabled/disabled
  55. opts:
  56. reload: True
  57. # settings for the relevant php-fpm configuration files
  58. config:
  59. # options to manage the php.ini file used by php-fpm
  60. ini:
  61. # arguments passed through to file.managed
  62. opts:
  63. recurse: True
  64. # php.ini file contents that will be merged with the
  65. # defaults in php.ng.ini.defaults. See php.ng.ini.defaults for
  66. # syntax guidelines.
  67. settings:
  68. PHP:
  69. engine: 'Off'
  70. extension_dir: '/usr/lib/php/modules/'
  71. extension: [pdo_mysql.so, iconv.so, openssl.so]
  72. # options to manage the php-fpm conf file
  73. conf:
  74. # arguments passed through to file.managed
  75. opts:
  76. recurse: True
  77. # php-fpm conf file contents that will be merged with
  78. # php.ng.lookup.fpm.defaults. See php.ng.ini.defaults for
  79. # ini-style syntax guidelines.
  80. settings:
  81. global:
  82. pid: /var/run/php-fpm/special-pid.file
  83. # settings for fpm-pools
  84. pools:
  85. # defaults will apply for each pools settings and can be overwritten by pool settings
  86. defaults:
  87. user: nginx
  88. group: nginx
  89. listen: /var/run/php-fpm-default.sock
  90. # name of the pool file to be managed, this will be appended
  91. # to the path specified in php.ng.lookup.fpm.pools
  92. 'mypool.conf':
  93. # If true, the pool file will be managed, if False it will be
  94. # absent
  95. enabled: True
  96. # Overwrite the filename for ext_pillar that doesn't allow
  97. # dots in fields names.
  98. filname: my_other_name.conf
  99. # arguments passed forward to file.managed or file.absent
  100. opts:
  101. replace: False
  102. # pool file contents. See php.ng.ini.defaults for ini-style
  103. # syntax guidelines.
  104. settings:
  105. myapp:
  106. user: www-data
  107. group: www-data
  108. listen: /var/run/php5-fpm-myapp.sock
  109. listen.owner: www-data
  110. listen.group: www-data
  111. listen.mode: 0660
  112. pm: dynamic
  113. pm.max_children: 5
  114. pm.start_servers: 2
  115. pm.min_spare_servers: 1
  116. pm.max_spare_servers: 3
  117. 'php_admin_value[memory_limit]': 300M
  118. # php-cli settings
  119. cli:
  120. # settings to manage the cli's php.ini
  121. ini:
  122. # opts passed forward directly to file.managed
  123. opts:
  124. replace: False
  125. # contents of the php.ini file that are merged with defaults
  126. # from php.ng.ini.defaults. See php.ng.ini.defaults for ini-style
  127. # syntax guidelines
  128. settings:
  129. PHP:
  130. engine: 'Off'
  131. # php-xcache settings
  132. xcache:
  133. ini:
  134. opts: {}
  135. # contents of the xcache.ini file that are merged with defaults
  136. # from php.xcache.ini.defaults. See php.ng.ini.defaults for ini-style
  137. settings:
  138. xcache:
  139. xcache.size: 90M
  140. # global php.ini settings
  141. ini:
  142. # Default php.ini contents. These follow a strict format. The top-
  143. # level dict keys form ini group headings. Nested key/value
  144. # pairs represent setting=value statements. If a value is a list,
  145. # its contents will be joined by commas in final rendering.
  146. defaults:
  147. PHP:
  148. engine: on
  149. output_buffering: 4096
  150. disable_functions:
  151. - pcntl_alarm
  152. - pcntl_fork
  153. - pcntl_wait
  154. 'CLI Server':
  155. cli_server_color: 'On'