Saltstack Official PHP Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

pillar.example 8.0KB

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 år sedan
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 år sedan
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 år sedan
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 år sedan
10 år sedan
10 år sedan
10 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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.composer
  71. # Some OS need modules to be installed
  72. composer:
  73. required_modules:
  74. - filter
  75. - json
  76. - mbstring
  77. - openssl
  78. - phar
  79. # php-fpm settings
  80. fpm:
  81. # settings for the php-fpm service
  82. service:
  83. # if true, enables the php-fpm service, if false disables it
  84. enabled: true
  85. # additional arguments passed forward to
  86. # service.enabled/disabled
  87. opts:
  88. reload: true
  89. # settings for the relevant php-fpm configuration files
  90. config:
  91. # options to manage the php.ini file used by php-fpm
  92. ini:
  93. # arguments passed through to file.managed
  94. opts:
  95. recurse: true
  96. # php.ini file contents that will be merged with the
  97. # defaults in php.ini.defaults. See php.ini.defaults for
  98. # syntax guidelines.
  99. settings:
  100. PHP:
  101. engine: 'Off'
  102. extension_dir: '/usr/lib/php/modules/'
  103. extension: [pdo_mysql.so, iconv.so, openssl.so]
  104. # options to manage the php-fpm conf file
  105. conf:
  106. # arguments passed through to file.managed
  107. opts:
  108. recurse: true
  109. # php-fpm conf file contents that will be merged with
  110. # php.lookup.fpm.defaults. See php.ini.defaults for
  111. # ini-style syntax guidelines.
  112. settings:
  113. global:
  114. pid: /var/run/php-fpm/special-pid.file
  115. # settings for fpm-pools
  116. pools:
  117. # defaults will apply for each pools settings and can be overwritten
  118. # by pool settings
  119. defaults:
  120. user: nginx
  121. group: nginx
  122. listen: /var/run/php-fpm-default.sock
  123. # name of the pool file to be managed, this will be appended
  124. # to the path specified in php.lookup.fpm.pools
  125. 'mypool.conf':
  126. # If true, the pool file will be managed, if false it will be
  127. # absent
  128. enabled: true
  129. # Overwrite the filename for ext_pillar that doesn't allow
  130. # dots in fields names.
  131. filname: my_other_name.conf
  132. # arguments passed forward to file.managed or file.absent
  133. opts:
  134. replace: false
  135. # If using multiple php versions, force the pool to use a specific one
  136. phpversion: "7.2"
  137. # pool file contents. See php.ini.defaults for ini-style
  138. # syntax guidelines.
  139. settings:
  140. myapp:
  141. user: www-data
  142. group: www-data
  143. listen: /var/run/php5-fpm-myapp.sock
  144. listen.owner: www-data
  145. listen.group: www-data
  146. listen.mode: '0660'
  147. pm: dynamic
  148. pm.max_children: 5
  149. pm.start_servers: 2
  150. pm.min_spare_servers: 1
  151. pm.max_spare_servers: 3
  152. 'php_admin_value[memory_limit]': 300M
  153. # php-cli settings
  154. cli:
  155. # settings to manage the cli's php.ini
  156. ini:
  157. # opts passed forward directly to file.managed
  158. opts:
  159. replace: false
  160. # contents of the php.ini file that are merged with defaults
  161. # from php.ini.defaults. See php.ini.defaults for ini-style
  162. # syntax guidelines
  163. settings:
  164. PHP:
  165. engine: 'Off'
  166. # php-xcache settings
  167. xcache:
  168. ini:
  169. opts: {}
  170. # contents of the xcache.ini file that are merged with defaults
  171. # from php.xcache.ini.defaults. See php.ini.defaults for ini-style
  172. settings:
  173. xcache:
  174. xcache.size: 90M
  175. # global php.ini settings
  176. ini:
  177. # Default php.ini contents. These follow a strict format. The top-
  178. # level dict keys form ini group headings. Nested key/value
  179. # pairs represent setting=value statements. If a value is a list,
  180. # its contents will be joined by commas in final rendering.
  181. defaults:
  182. PHP:
  183. engine: 'On'
  184. output_buffering: 4096
  185. disable_functions:
  186. - pcntl_alarm
  187. - pcntl_fork
  188. - pcntl_wait
  189. 'CLI Server':
  190. cli_server_color: 'On'
  191. # List of modules to install via php.modules
  192. modules:
  193. # Calls `php.<name>` if available, or try to install the matching
  194. # packages that can be set via from php:lookup:pkgs
  195. - cli
  196. - fpm
  197. - curl
  198. - mysql
  199. # When using php.apache2 on FreeBSD:
  200. # Set this to false if you're not using apache-formula
  201. use_apache_formula: true
  202. tofs:
  203. # The files_switch key serves as a selector for alternative
  204. # directories under the formula files directory. See TOFS pattern
  205. # doc for more info.
  206. # Note: Any value not evaluated by `config.get` will be used literally.
  207. # This can be used to set custom paths, as many levels deep as required.
  208. # files_switch:
  209. # - any/path/can/be/used/here
  210. # - id
  211. # - role
  212. # - osfinger
  213. # - os
  214. # - os_family
  215. # All aspects of path/file resolution are customisable using the options below.
  216. # This is unnecessary in most cases; there are sensible defaults.
  217. # path_prefix: template_alt
  218. # dirs:
  219. # files: files_alt
  220. # default: default_alt
  221. source_files:
  222. php_apache2_ini:
  223. - alt_php.ini
  224. php_apache2_module_config:
  225. - alt_mod_php.conf.jinja
  226. php_cli_ini: # Used if there is only one version declared
  227. - alt_php.ini
  228. php_cli_ini_7.2: # Used if several versions are declared
  229. - alt_php.ini
  230. php_fpm_conf_config:
  231. - alt_php.ini
  232. php_fpm_conf_config_7.3:
  233. - alt_php.ini
  234. php_fpm_ini_config:
  235. - alt_php.ini
  236. php_fpm_ini_config_7.0:
  237. - alt_php.ini
  238. php_fpm_pool_conf:
  239. - alt_php.ini
  240. php_hhvm_conf_config:
  241. - alt_php.ini
  242. php_hhvm_ini_config:
  243. - alt_php.ini
  244. php_xcache_ini:
  245. - alt_php.ini