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.

pillar.example 4.6KB

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