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

141 行
4.3KB

  1. ## php.ng pillar examples
  2. php:
  3. ng:
  4. # this section contains mostly grain filtered data, while overrides
  5. # are possible in the pillar for unique cases, if your OS is not
  6. # represented, please consider adding it to the map.jinja for
  7. # upstream inclusion
  8. lookup:
  9. # package definitions, these can strings, lists of strings, or
  10. # lists of dictionaries
  11. pkgs:
  12. memcached: php5-memcached
  13. # ensures both will be installed
  14. curl:
  15. - php-common
  16. - curl
  17. # a dictionary can be used in more complex cases where you want
  18. # to pass forward special arguments to the pkg.installed call
  19. # you MUST include the name argument for this to work
  20. cli:
  21. -
  22. name: php-cli
  23. fromrepo: my-specialrepo
  24. -
  25. name: php-common
  26. skip_verify: True
  27. # php-fpm os-specific settings
  28. fpm:
  29. conf: /location/of/php-fpm/config.conf
  30. ini: /location/of/php-fpm/php.ini
  31. pools: /location/of/php-fpm/pool.d
  32. service: name-of-php5-fpm-service
  33. # the default content of the php5-fpm main config file
  34. defaults:
  35. global:
  36. pid: /var/run/php5-fpm.pid
  37. # php-cli os-specific settings
  38. cli:
  39. ini: /location/of/php-cli/php.ini
  40. # php-fpm settings
  41. fpm:
  42. # settings for the php-fpm service
  43. service:
  44. # if True, enables the php-fpm service, if False disables it
  45. enabled: True
  46. # additional arguments passed forward to
  47. # service.enabled/disabled
  48. opts:
  49. reload: True
  50. # settings for the relevant php-fpm configuration files
  51. config:
  52. # options to manage the php.ini file used by php-fpm
  53. ini:
  54. # arguments passed through to file.managed
  55. opts:
  56. recurse: True
  57. # php.ini file contents that will be merged with the
  58. # defaults in php.ng.ini.defaults. See php.ng.ini.defaults for
  59. # syntax guidelines.
  60. settings:
  61. PHP:
  62. engine: 'Off'
  63. # options to manage the php-fpm conf file
  64. conf:
  65. # arguments passed through to file.managed
  66. opts:
  67. recurse: True
  68. # php-fpm conf file contents that will be merged with
  69. # php.ng.lookup.fpm.defaults. See php.ng.ini.defaults for
  70. # ini-style syntax guidelines.
  71. settings:
  72. global:
  73. pid: /var/run/php-fpm/special-pid.file
  74. # settings for fpm-pools
  75. pools:
  76. # name of the pool file to be managed, this will be appended
  77. # to the path specified in php.ng.lookup.fpm.pools
  78. 'mypool.conf':
  79. # If true, the pool file will be managed, if False it will be
  80. # absent
  81. enabled: True
  82. # arguments passed forward to file.managed or file.absent
  83. opts:
  84. replace: False
  85. # pool file contents. See php.ng.ini.defaults for ini-style
  86. # syntax guidelines.
  87. settings:
  88. myapp:
  89. user: www-data
  90. group: www-data
  91. listen: /var/run/php5-fpm-myapp.sock
  92. pm: dynamic
  93. pm.max_children: 5
  94. pm.start_servers: 2
  95. pm.min_spare_servers: 1
  96. pm.max_spare_servers: 3
  97. 'php_admin_value[memory_limit]': 300M
  98. # php-cli settings
  99. cli:
  100. # settings to manage the cli's php.ini
  101. ini:
  102. # opts passed forward directly to file.managed
  103. opts:
  104. replace: False
  105. # contents of the php.ini file that are merged with defaults
  106. # from php.ng.ini.defaults. See php.ng.ini.defaults for ini-style
  107. # syntax guidelines
  108. settings:
  109. PHP:
  110. engine: 'Off'
  111. # global php.ini settings
  112. ini:
  113. # Default php.ini contents. These follow a strict format. The top-
  114. # level dict keys form ini group headings. Nested key/value
  115. # pairs represent setting=value statements. If a value is a list,
  116. # its contents will be joined by commas in final rendering.
  117. defaults:
  118. PHP:
  119. engine: on
  120. output_buffering: 4096
  121. disable_functions:
  122. - pcntl_alarm
  123. - pcntl_fork
  124. - pcntl_wait
  125. 'CLI Server':
  126. cli_server_color: 'On'