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

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