Saltstack Official PHP Formula
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

feat(yamllint): include for this repo and apply rules throughout * Semi-automated using `ssf-formula` (v0.5.0) * Fix errors shown below: ```bash php-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:") ./test/integration/default/inspec.yml 1:1 warning missing document start "---" (document-start) pillar.example 3:1 warning missing document start "---" (document-start) 7:22 warning truthy value should be one of [false, true] (truthy) 8:22 warning truthy value should be one of [false, true] (truthy) 10:22 warning truthy value should be one of [false, true] (truthy) 16:17 warning truthy value should be one of [false, true] (truthy) 41:12 error wrong indentation: expected 10 but found 11 (indentation) 46:27 warning truthy value should be one of [false, true] (truthy) 70:18 warning truthy value should be one of [false, true] (truthy) 74:19 warning truthy value should be one of [false, true] (truthy) 83:22 warning truthy value should be one of [false, true] (truthy) 97:22 warning truthy value should be one of [false, true] (truthy) 107:89 error line too long (93 > 88 characters) (line-length) 118:20 warning truthy value should be one of [false, true] (truthy) 126:14 error wrong indentation: expected 12 but found 13 (indentation) 126:23 warning truthy value should be one of [false, true] (truthy) 151:20 warning truthy value should be one of [false, true] (truthy) 177:19 warning truthy value should be one of [false, true] (truthy) 197:25 warning truthy value should be one of [false, true] (truthy) ```
5 anos atrás
feat(yamllint): include for this repo and apply rules throughout * Semi-automated using `ssf-formula` (v0.5.0) * Fix errors shown below: ```bash php-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:") ./test/integration/default/inspec.yml 1:1 warning missing document start "---" (document-start) pillar.example 3:1 warning missing document start "---" (document-start) 7:22 warning truthy value should be one of [false, true] (truthy) 8:22 warning truthy value should be one of [false, true] (truthy) 10:22 warning truthy value should be one of [false, true] (truthy) 16:17 warning truthy value should be one of [false, true] (truthy) 41:12 error wrong indentation: expected 10 but found 11 (indentation) 46:27 warning truthy value should be one of [false, true] (truthy) 70:18 warning truthy value should be one of [false, true] (truthy) 74:19 warning truthy value should be one of [false, true] (truthy) 83:22 warning truthy value should be one of [false, true] (truthy) 97:22 warning truthy value should be one of [false, true] (truthy) 107:89 error line too long (93 > 88 characters) (line-length) 118:20 warning truthy value should be one of [false, true] (truthy) 126:14 error wrong indentation: expected 12 but found 13 (indentation) 126:23 warning truthy value should be one of [false, true] (truthy) 151:20 warning truthy value should be one of [false, true] (truthy) 177:19 warning truthy value should be one of [false, true] (truthy) 197:25 warning truthy value should be one of [false, true] (truthy) ```
5 anos atrás
feat(yamllint): include for this repo and apply rules throughout * Semi-automated using `ssf-formula` (v0.5.0) * Fix errors shown below: ```bash php-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:") ./test/integration/default/inspec.yml 1:1 warning missing document start "---" (document-start) pillar.example 3:1 warning missing document start "---" (document-start) 7:22 warning truthy value should be one of [false, true] (truthy) 8:22 warning truthy value should be one of [false, true] (truthy) 10:22 warning truthy value should be one of [false, true] (truthy) 16:17 warning truthy value should be one of [false, true] (truthy) 41:12 error wrong indentation: expected 10 but found 11 (indentation) 46:27 warning truthy value should be one of [false, true] (truthy) 70:18 warning truthy value should be one of [false, true] (truthy) 74:19 warning truthy value should be one of [false, true] (truthy) 83:22 warning truthy value should be one of [false, true] (truthy) 97:22 warning truthy value should be one of [false, true] (truthy) 107:89 error line too long (93 > 88 characters) (line-length) 118:20 warning truthy value should be one of [false, true] (truthy) 126:14 error wrong indentation: expected 12 but found 13 (indentation) 126:23 warning truthy value should be one of [false, true] (truthy) 151:20 warning truthy value should be one of [false, true] (truthy) 177:19 warning truthy value should be one of [false, true] (truthy) 197:25 warning truthy value should be one of [false, true] (truthy) ```
5 anos atrás
feat(yamllint): include for this repo and apply rules throughout * Semi-automated using `ssf-formula` (v0.5.0) * Fix errors shown below: ```bash php-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:") ./test/integration/default/inspec.yml 1:1 warning missing document start "---" (document-start) pillar.example 3:1 warning missing document start "---" (document-start) 7:22 warning truthy value should be one of [false, true] (truthy) 8:22 warning truthy value should be one of [false, true] (truthy) 10:22 warning truthy value should be one of [false, true] (truthy) 16:17 warning truthy value should be one of [false, true] (truthy) 41:12 error wrong indentation: expected 10 but found 11 (indentation) 46:27 warning truthy value should be one of [false, true] (truthy) 70:18 warning truthy value should be one of [false, true] (truthy) 74:19 warning truthy value should be one of [false, true] (truthy) 83:22 warning truthy value should be one of [false, true] (truthy) 97:22 warning truthy value should be one of [false, true] (truthy) 107:89 error line too long (93 > 88 characters) (line-length) 118:20 warning truthy value should be one of [false, true] (truthy) 126:14 error wrong indentation: expected 12 but found 13 (indentation) 126:23 warning truthy value should be one of [false, true] (truthy) 151:20 warning truthy value should be one of [false, true] (truthy) 177:19 warning truthy value should be one of [false, true] (truthy) 197:25 warning truthy value should be one of [false, true] (truthy) ```
5 anos atrás
10 anos atrás
10 anos atrás
10 anos atrás
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. ## php 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
  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. # set the version of php to be used
  25. version: "7.3"
  26. # can be a list of versions :
  27. # version:
  28. # - "7.3"
  29. # - "7.2"
  30. # set the version for the Debian alternatives system, when using a list of versions,
  31. # php:version is used otherwise.
  32. alternatives_version: "7.3"
  33. # this section contains mostly grain filtered data, while overrides
  34. # are possible in the pillar for unique cases, if your OS is not
  35. # represented, please consider adding it to the map.jinja for
  36. # upstream inclusion
  37. lookup:
  38. enable_php_repo: centos-sclo-rh-testing
  39. # package definitions, these can be strings, lists of strings, or
  40. # lists of dictionaries
  41. pkgs:
  42. memcached: php5-memcached
  43. # ensures both will be installed
  44. curl:
  45. - php-common
  46. - curl
  47. # a dictionary can be used in more complex cases where you want
  48. # to pass forward special arguments to the pkg.installed call
  49. # you MUST include the name argument for this to work
  50. cli:
  51. -
  52. name: php-cli
  53. fromrepo: my-specialrepo
  54. -
  55. name: php-common
  56. skip_verify: true
  57. # php-fpm os-specific settings
  58. fpm:
  59. conf: /location/of/php-fpm/config.conf
  60. ini: /location/of/php-fpm/php.ini
  61. pools: /location/of/php-fpm/pool.d
  62. service: name-of-php5-fpm-service
  63. # the default content of the php5-fpm main config file
  64. defaults:
  65. global:
  66. pid: /var/run/php5-fpm.pid
  67. # php-cli os-specific settings
  68. cli:
  69. ini: /location/of/php-cli/php.ini
  70. # php-fpm settings
  71. fpm:
  72. # settings for the php-fpm service
  73. service:
  74. # if true, enables the php-fpm service, if false disables it
  75. enabled: true
  76. # additional arguments passed forward to
  77. # service.enabled/disabled
  78. opts:
  79. reload: true
  80. # settings for the relevant php-fpm configuration files
  81. config:
  82. # options to manage the php.ini file used by php-fpm
  83. ini:
  84. # arguments passed through to file.managed
  85. opts:
  86. recurse: true
  87. # php.ini file contents that will be merged with the
  88. # defaults in php.ini.defaults. See php.ini.defaults for
  89. # syntax guidelines.
  90. settings:
  91. PHP:
  92. engine: 'Off'
  93. extension_dir: '/usr/lib/php/modules/'
  94. extension: [pdo_mysql.so, iconv.so, openssl.so]
  95. # options to manage the php-fpm conf file
  96. conf:
  97. # arguments passed through to file.managed
  98. opts:
  99. recurse: true
  100. # php-fpm conf file contents that will be merged with
  101. # php.lookup.fpm.defaults. See php.ini.defaults for
  102. # ini-style syntax guidelines.
  103. settings:
  104. global:
  105. pid: /var/run/php-fpm/special-pid.file
  106. # settings for fpm-pools
  107. pools:
  108. # defaults will apply for each pools settings and can be overwritten
  109. # by pool settings
  110. defaults:
  111. user: nginx
  112. group: nginx
  113. listen: /var/run/php-fpm-default.sock
  114. # name of the pool file to be managed, this will be appended
  115. # to the path specified in php.lookup.fpm.pools
  116. 'mypool.conf':
  117. # If true, the pool file will be managed, if false it will be
  118. # absent
  119. enabled: true
  120. # Overwrite the filename for ext_pillar that doesn't allow
  121. # dots in fields names.
  122. filname: my_other_name.conf
  123. # arguments passed forward to file.managed or file.absent
  124. opts:
  125. replace: false
  126. # pool file contents. See php.ini.defaults for ini-style
  127. # syntax guidelines.
  128. settings:
  129. myapp:
  130. user: www-data
  131. group: www-data
  132. listen: /var/run/php5-fpm-myapp.sock
  133. listen.owner: www-data
  134. listen.group: www-data
  135. listen.mode: '0660'
  136. pm: dynamic
  137. pm.max_children: 5
  138. pm.start_servers: 2
  139. pm.min_spare_servers: 1
  140. pm.max_spare_servers: 3
  141. 'php_admin_value[memory_limit]': 300M
  142. # php-cli settings
  143. cli:
  144. # settings to manage the cli's php.ini
  145. ini:
  146. # opts passed forward directly to file.managed
  147. opts:
  148. replace: false
  149. # contents of the php.ini file that are merged with defaults
  150. # from php.ini.defaults. See php.ini.defaults for ini-style
  151. # syntax guidelines
  152. settings:
  153. PHP:
  154. engine: 'Off'
  155. # php-xcache settings
  156. xcache:
  157. ini:
  158. opts: {}
  159. # contents of the xcache.ini file that are merged with defaults
  160. # from php.xcache.ini.defaults. See php.ini.defaults for ini-style
  161. settings:
  162. xcache:
  163. xcache.size: 90M
  164. # global php.ini settings
  165. ini:
  166. # Default php.ini contents. These follow a strict format. The top-
  167. # level dict keys form ini group headings. Nested key/value
  168. # pairs represent setting=value statements. If a value is a list,
  169. # its contents will be joined by commas in final rendering.
  170. defaults:
  171. PHP:
  172. engine: 'On'
  173. output_buffering: 4096
  174. disable_functions:
  175. - pcntl_alarm
  176. - pcntl_fork
  177. - pcntl_wait
  178. 'CLI Server':
  179. cli_server_color: 'On'
  180. # List of modules to install via php.modules
  181. modules:
  182. # Calls `php.<name>` if available, or try to install the matching
  183. # packages that can be set via from php:lookup:pkgs
  184. - cli
  185. - fpm
  186. - curl
  187. - mysql
  188. # When using php.apache2 on FreeBSD:
  189. # Set this to false if you're not using apache-formula
  190. use_apache_formula: true
  191. tofs:
  192. # The files_switch key serves as a selector for alternative
  193. # directories under the formula files directory. See TOFS pattern
  194. # doc for more info.
  195. # Note: Any value not evaluated by `config.get` will be used literally.
  196. # This can be used to set custom paths, as many levels deep as required.
  197. # files_switch:
  198. # - any/path/can/be/used/here
  199. # - id
  200. # - role
  201. # - osfinger
  202. # - os
  203. # - os_family
  204. # All aspects of path/file resolution are customisable using the options below.
  205. # This is unnecessary in most cases; there are sensible defaults.
  206. # path_prefix: template_alt
  207. # dirs:
  208. # files: files_alt
  209. # default: default_alt
  210. source_files:
  211. php_apache2_ini:
  212. - alt_php.ini
  213. php_apache2_module_config:
  214. - alt_mod_php.conf.jinja
  215. php_cli_ini: # Used if there is only one version declared
  216. - alt_php.ini
  217. php_cli_ini_7.2: # Used if several versions are declared
  218. - alt_php.ini
  219. php_fpm_conf_config:
  220. - alt_php.ini
  221. php_fpm_conf_config_7.3:
  222. - alt_php.ini
  223. php_fpm_ini_config:
  224. - alt_php.ini
  225. php_fpm_ini_config_7.0:
  226. - alt_php.ini
  227. php_fpm_pool_conf:
  228. - alt_php.ini
  229. php_hhvm_conf_config:
  230. - alt_php.ini
  231. php_hhvm_ini_config:
  232. - alt_php.ini
  233. php_xcache_ini:
  234. - alt_php.ini