Saltstack Official PHP Formula
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

213 lines
6.7KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. ## php.ng pillar examples
  5. php:
  6. # Use the following values to mute deprecation warnings
  7. warning_messages:
  8. v1.0.0:
  9. mute_critical: true
  10. mute_upcoming: true
  11. # Use external repository instead the default (only Ubuntu family)
  12. use_external_repo: true
  13. # Set the external repository name (valid only if use_external_repo is not none)
  14. external_repo_name: 'ondrej/php'
  15. # Use Software Collections Repository offering PHP 5.4, 5.5, 5.6, 7.0 and 7.1
  16. # https://www.softwarecollections.org/en/ for more information.
  17. # SCL is only supported on RHEL and CentOS and only active when using php.ng
  18. use_scl_repo: true
  19. # Which PHP version from the SCL repos to use
  20. scl_php_version: 71
  21. # Set the MongoDB driver version. You can specify (optionally) the driver version
  22. # when you add the php.mongo formula to your execution list
  23. mongo_version: "1.5.5"
  24. ng:
  25. # set the version of php to be used
  26. version: "7.3"
  27. # can be a list of versions :
  28. # version:
  29. # - "7.3"
  30. # - "7.2"
  31. # set the version for the Debian alternatives system, when using a list of versions,
  32. # php:ng:version is used otherwise.
  33. alternatives_version: "7.3"
  34. # this section contains mostly grain filtered data, while overrides
  35. # are possible in the pillar for unique cases, if your OS is not
  36. # represented, please consider adding it to the map.jinja for
  37. # upstream inclusion
  38. lookup:
  39. enable_php_repo: centos-sclo-rh-testing
  40. # package definitions, these can be strings, lists of strings, or
  41. # lists of dictionaries
  42. pkgs:
  43. memcached: php5-memcached
  44. # ensures both will be installed
  45. curl:
  46. - php-common
  47. - curl
  48. # a dictionary can be used in more complex cases where you want
  49. # to pass forward special arguments to the pkg.installed call
  50. # you MUST include the name argument for this to work
  51. cli:
  52. -
  53. name: php-cli
  54. fromrepo: my-specialrepo
  55. -
  56. name: php-common
  57. skip_verify: true
  58. # php-fpm os-specific settings
  59. fpm:
  60. conf: /location/of/php-fpm/config.conf
  61. ini: /location/of/php-fpm/php.ini
  62. pools: /location/of/php-fpm/pool.d
  63. service: name-of-php5-fpm-service
  64. # the default content of the php5-fpm main config file
  65. defaults:
  66. global:
  67. pid: /var/run/php5-fpm.pid
  68. # php-cli os-specific settings
  69. cli:
  70. ini: /location/of/php-cli/php.ini
  71. # php-fpm settings
  72. fpm:
  73. # settings for the php-fpm service
  74. service:
  75. # if true, enables the php-fpm service, if false disables it
  76. enabled: true
  77. # additional arguments passed forward to
  78. # service.enabled/disabled
  79. opts:
  80. reload: true
  81. # settings for the relevant php-fpm configuration files
  82. config:
  83. # options to manage the php.ini file used by php-fpm
  84. ini:
  85. # arguments passed through to file.managed
  86. opts:
  87. recurse: true
  88. # php.ini file contents that will be merged with the
  89. # defaults in php.ng.ini.defaults. See php.ng.ini.defaults for
  90. # syntax guidelines.
  91. settings:
  92. PHP:
  93. engine: 'Off'
  94. extension_dir: '/usr/lib/php/modules/'
  95. extension: [pdo_mysql.so, iconv.so, openssl.so]
  96. # options to manage the php-fpm conf file
  97. conf:
  98. # arguments passed through to file.managed
  99. opts:
  100. recurse: true
  101. # php-fpm conf file contents that will be merged with
  102. # php.ng.lookup.fpm.defaults. See php.ng.ini.defaults for
  103. # ini-style syntax guidelines.
  104. settings:
  105. global:
  106. pid: /var/run/php-fpm/special-pid.file
  107. # settings for fpm-pools
  108. pools:
  109. # defaults will apply for each pools settings and can be overwritten
  110. # by pool settings
  111. defaults:
  112. user: nginx
  113. group: nginx
  114. listen: /var/run/php-fpm-default.sock
  115. # name of the pool file to be managed, this will be appended
  116. # to the path specified in php.ng.lookup.fpm.pools
  117. 'mypool.conf':
  118. # If true, the pool file will be managed, if false it will be
  119. # absent
  120. enabled: true
  121. # Overwrite the filename for ext_pillar that doesn't allow
  122. # dots in fields names.
  123. filname: my_other_name.conf
  124. # arguments passed forward to file.managed or file.absent
  125. opts:
  126. replace: false
  127. # pool file contents. See php.ng.ini.defaults for ini-style
  128. # syntax guidelines.
  129. settings:
  130. myapp:
  131. user: www-data
  132. group: www-data
  133. listen: /var/run/php5-fpm-myapp.sock
  134. listen.owner: www-data
  135. listen.group: www-data
  136. listen.mode: 0660
  137. pm: dynamic
  138. pm.max_children: 5
  139. pm.start_servers: 2
  140. pm.min_spare_servers: 1
  141. pm.max_spare_servers: 3
  142. 'php_admin_value[memory_limit]': 300M
  143. # php-cli settings
  144. cli:
  145. # settings to manage the cli's php.ini
  146. ini:
  147. # opts passed forward directly to file.managed
  148. opts:
  149. replace: false
  150. # contents of the php.ini file that are merged with defaults
  151. # from php.ng.ini.defaults. See php.ng.ini.defaults for ini-style
  152. # syntax guidelines
  153. settings:
  154. PHP:
  155. engine: 'Off'
  156. # php-xcache settings
  157. xcache:
  158. ini:
  159. opts: {}
  160. # contents of the xcache.ini file that are merged with defaults
  161. # from php.xcache.ini.defaults. See php.ng.ini.defaults for ini-style
  162. settings:
  163. xcache:
  164. xcache.size: 90M
  165. # global php.ini settings
  166. ini:
  167. # Default php.ini contents. These follow a strict format. The top-
  168. # level dict keys form ini group headings. Nested key/value
  169. # pairs represent setting=value statements. If a value is a list,
  170. # its contents will be joined by commas in final rendering.
  171. defaults:
  172. PHP:
  173. engine: 'On'
  174. output_buffering: 4096
  175. disable_functions:
  176. - pcntl_alarm
  177. - pcntl_fork
  178. - pcntl_wait
  179. 'CLI Server':
  180. cli_server_color: 'On'
  181. # List of modules to install via php.ng.modules
  182. modules:
  183. # Calls `php.ng.<name>` if available, or try to install the matching
  184. # packages that can be set via from php:ng:lookup:pkgs
  185. - cli
  186. - fpm
  187. - curl
  188. - mysql
  189. # When using php.ng.apache2 on FreeBSD:
  190. # Set this to false if you're not using apache-formula
  191. use_apache_formula: true