Saltstack Official PHP Formula
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

pillar.example 6.6KB

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