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