Saltstack Official PHP Formula
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

pillar.example 6.5KB

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