Saltstack Official PHP Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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'