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.

2282 satır
108KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=jinja
  3. {%- if salt['grains.get']('os') == "Ubuntu" %}
  4. {%- set use_external_repo = salt['pillar.get']('php:use_external_repo', False) %}
  5. {%- if use_external_repo %}
  6. {%- set phpng_version = salt['pillar.get']('php:ng:version', '7.0')|string %}
  7. {%- if salt['grains.get']('osrelease')|string >= '16.04' %}
  8. {%- set php = salt['pillar.get']('php:ng', {
  9. 'lookup': salt['grains.filter_by']({
  10. 'Debian': {
  11. 'pkgs': {
  12. 'adodb': 'libphp-adodb',
  13. 'apache2': 'libapache2-mod-php' + phpng_version,
  14. 'apc': 'php-apcu',
  15. 'apcu': 'php-apcu-bc',
  16. 'bcmath': 'php' + phpng_version + '-bcmath',
  17. 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'],
  18. 'cache-lite': 'php-cache-lite',
  19. 'cgi': 'php' + phpng_version + '-cgi',
  20. 'cli': 'php' + phpng_version + '-cli',
  21. 'composer_bin': 'composer',
  22. 'console-table': 'php-console-table',
  23. 'curl': 'php' + phpng_version + '-curl',
  24. 'dev': 'php' + phpng_version + '-dev',
  25. 'ext_conf_path': '/etc/php/' + phpng_version + '/mods-available',
  26. 'fpm': 'php' + phpng_version + '-fpm',
  27. 'gd': 'php' + phpng_version + '-gd',
  28. 'gearman': 'php-gearman',
  29. 'geoip': 'php-geoip',
  30. 'geshi': 'php-geshi',
  31. 'gettext': 'php' + phpng_version,
  32. 'gmp': 'php' + phpng_version + '-gmp',
  33. 'hhvm': 'hhvm',
  34. 'imagick': 'php-imagick',
  35. 'imap': 'php' + phpng_version + '-imap',
  36. 'intl': 'php' + phpng_version + '-intl',
  37. 'json': 'php' + phpng_version + '-json',
  38. 'ldap': 'php' + phpng_version + '-ldap',
  39. 'local_bin': '/usr/local/bin',
  40. 'mbstring': 'php' + phpng_version + '-mbstring',
  41. 'mcrypt': 'php' + phpng_version + '-mcrypt',
  42. 'memcache': 'php-memcache',
  43. 'memcached': 'php-memcached',
  44. 'mongo': 'php-mongo',
  45. 'mongodb': 'php-mongodb',
  46. 'mysql': 'php' + phpng_version + '-mysql',
  47. 'mysqlnd': 'php' + phpng_version + '-mysql',
  48. 'net4': 'php-net-ipv4',
  49. 'net6': 'php-net-ipv6',
  50. 'oauth': 'php-oauth',
  51. 'opcache': 'php' + phpng_version + '-opcache',
  52. 'pear': 'php-pear',
  53. 'pgsql': 'php' + phpng_version + '-pgsql',
  54. 'php': 'php' + phpng_version,
  55. 'phpenmod_command': 'phpenmod -v' + phpng_version,
  56. 'pspell': 'php' + phpng_version + '-pspell',
  57. 'redis': 'php' + phpng_version + '-redis',
  58. 'seclib': ['php-phpseclib', 'php-seclib'],
  59. 'snmp': 'php' + phpng_version + '-snmp',
  60. 'soap': 'php' + phpng_version + '-soap',
  61. 'ssh2': 'php-ssh2',
  62. 'sqlite': 'php' + phpng_version + '-sqlite3',
  63. 'suhosin5_ext': 'suhosin.so',
  64. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  65. 'suhosin7_ext': 'suhosin7.so',
  66. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  67. 'sybase': 'php' + phpng_version + '-sybase',
  68. 'tcpdf': 'php-tcpdf',
  69. 'temp_dir': '/tmp',
  70. 'tidy': 'php' + phpng_version + '-tidy',
  71. 'xdebug': 'php' + phpng_version + '-xdebug',
  72. 'xml': 'php' + phpng_version + '-xml',
  73. 'xsl': 'php' + phpng_version + '-xsl',
  74. 'zip': 'php' + phpng_version + '-zip',
  75. },
  76. 'fpm': {
  77. 'conf': '/etc/php/' + phpng_version + '/fpm/php-fpm.conf',
  78. 'ini': '/etc/php/' + phpng_version + '/fpm/php.ini',
  79. 'pools': '/etc/php/' + phpng_version + '/fpm/pool.d',
  80. 'service': 'php' + phpng_version + '-fpm',
  81. 'defaults': odict([
  82. ('global', odict([
  83. ('pid', '/var/run/php' + phpng_version + '-fpm.pid'),
  84. ('error_log', '/var/log/php' + phpng_version + '-fpm.log'),
  85. ])),
  86. ('include', '/etc/php/' + phpng_version + '/fpm/pool.d/*.conf'),
  87. ]),
  88. },
  89. 'hhvm': {
  90. 'conf': '/etc/hhvm/server.ini',
  91. 'ini': '/etc/hhvm/php.ini',
  92. 'service': 'hhvm',
  93. 'defaults': {},
  94. 'server': odict([
  95. ('pid', '/var/run/hhvm/pid'),
  96. ('hhvm.server.port', '9000'),
  97. ('hhvm.server.type', 'fastcgi'),
  98. ('hhvm.server.default_document', 'index.php'),
  99. ('hhvm.log.use_log_file', 'true'),
  100. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  101. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  102. ]),
  103. 'php': odict([
  104. ('session.save_handler', 'files'),
  105. ('session.save_path', '/var/lib/hhvm/sessions'),
  106. ('session.gc_maxlifetime', '1440'),
  107. ('hhvm.log.level', 'Warning'),
  108. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  109. ('hhvm.log.runtime_error_reporting_level', '8191'),
  110. ('hhvm.mysql.typed_results', 'false'),
  111. ]),
  112. },
  113. 'cli': {
  114. 'ini': '/etc/php/' + phpng_version + '/cli/php.ini',
  115. },
  116. 'apache2': {
  117. 'ini': '/etc/php/' + phpng_version + '/apache2/php.ini',
  118. },
  119. },
  120. }),
  121. 'fpm': {
  122. 'service': {
  123. 'enabled': True,
  124. 'opts': {},
  125. },
  126. 'config': {
  127. 'ini': {
  128. 'opts': {},
  129. 'settings': {},
  130. },
  131. 'conf': {
  132. 'opts': {},
  133. 'settings': {},
  134. },
  135. },
  136. 'pools': {},
  137. },
  138. 'hhvm': {
  139. 'service': {
  140. 'enabled': True,
  141. 'opts': {},
  142. },
  143. 'config': {
  144. 'server': {
  145. 'opts': {},
  146. 'settings': {},
  147. },
  148. 'php': {
  149. 'opts': {},
  150. 'settings': {},
  151. },
  152. },
  153. },
  154. 'cli': {
  155. 'ini': {
  156. 'opts': {},
  157. 'settings': {},
  158. }
  159. },
  160. 'apache2': {
  161. 'ini': {
  162. 'opts': {},
  163. 'settings': {},
  164. }
  165. },
  166. 'ini': {
  167. 'defaults': {
  168. 'PHP': {
  169. 'allow_url_fopen': 'On',
  170. 'allow_url_include': 'Off',
  171. 'asp_tags': 'Off',
  172. 'auto_globals_jit': 'On',
  173. 'default_mimetype': '"text/html"',
  174. 'default_socket_timeout': 60,
  175. 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',
  176. 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
  177. 'pcntl_sigprocmask','pcntl_sigwaitinfo','pcntl_sigtimedwait','pcntl_exec','pcntl_getpriority','pcntl_setpriority'],
  178. 'display_errors': 'Off',
  179. 'display_startup_errors': 'Off',
  180. 'enable_dl': 'Off',
  181. 'engine': 'On',
  182. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  183. 'expose_php': 'On',
  184. 'file_uploads': 'On',
  185. 'html_errors': 'On',
  186. 'ignore_repeated_errors': 'Off',
  187. 'ignore_repeated_source': 'Off',
  188. 'implicit_flush': 'Off',
  189. 'log_errors': 'On',
  190. 'log_errors_max_len': 1024,
  191. 'max_execution_time': 30,
  192. 'max_file_uploads': 20,
  193. 'max_input_nesting_level': 64,
  194. 'max_input_time': 60,
  195. 'max_input_vars': 1000,
  196. 'memory_limit': '128M',
  197. 'output_buffering': 4096,
  198. 'post_max_size': '8M',
  199. 'precision': 14,
  200. 'register_argc_argv': 'Off',
  201. 'report_memleaks': 'On',
  202. 'request_order': 'GP',
  203. 'serialize_precision': 17,
  204. 'short_open_tag': 'Off',
  205. 'track_errors': 'Off',
  206. 'upload_max_filesize': '2M',
  207. 'variables_order': 'GPCS',
  208. 'zend.enable_gc': 'On',
  209. 'zlib.output_compression': 'Off',
  210. },
  211. 'CLI Server': {
  212. 'cli_server.color': 'On'
  213. },
  214. 'Date': {
  215. 'date.timezone': 'America/New_York'
  216. },
  217. 'Pdo_mysql': {
  218. 'pdo_mysql.cache_size': 2000
  219. },
  220. 'mail function': {
  221. 'SMTP': 'localhost',
  222. 'mail.add_x_header': 'On'
  223. },
  224. 'SQL': {
  225. 'sql.safe_mode': 'Off'
  226. },
  227. 'ODBC': {
  228. 'odbc.allow_persistent': 'On',
  229. 'odbc.check_persistent': 'On',
  230. 'odbc.max_persistent': '-1',
  231. 'odbc.max_links': '-1',
  232. 'odbc.defaultlrl': 4096,
  233. 'odbc.defaultbinmode': 1
  234. },
  235. 'Interbase': {
  236. 'ibase.allow_persistent': 1,
  237. 'ibase.max_persistent': -1,
  238. 'ibase.max_links': -1,
  239. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  240. 'ibase.dateformat': '"%Y-%m-%d"',
  241. 'ibase.timeformat': '"%H:%M:%S"'
  242. },
  243. 'MySQL': {
  244. 'mysql.allow_local_infile': 'On',
  245. 'mysql.allow_persistent': 'On',
  246. 'mysql.cache_size': '2000',
  247. 'mysql.max_persistent': -1,
  248. 'mysql.max_links': -1,
  249. 'mysql.connect_timeout': 60,
  250. 'mysql.trace_mode': 'Off'
  251. },
  252. 'MySQLi': {
  253. 'mysqli.max_persistent': -1,
  254. 'mysqli.allow_persistent': 'On',
  255. 'mysqli.max_links': -1,
  256. 'mysqli.cache_size': 2000,
  257. 'mysqli.default_port': 3306,
  258. 'mysqli.reconnect': 'Off'
  259. },
  260. 'mysqlnd': {
  261. 'mysqlnd.collect_statistics': 'On',
  262. 'mysqlnd.collect_memory_statistics': 'Off'
  263. },
  264. 'PostgreSQL': {
  265. 'pgsql.allow_persistent': 'On',
  266. 'pgsql.auto_reset_persistent': 'Off',
  267. 'pgsql.max_persistent': -1,
  268. 'pgsql.max_links': -1,
  269. 'pgsql.ignore_notice': 0,
  270. 'pgsql.log_notice': 0
  271. },
  272. 'Sybase-CT': {
  273. 'sybct.allow_persistent': 'On',
  274. 'sybct.max_persistent': -1,
  275. 'sybct.max_links': -1,
  276. 'sybct.min_server_severity': 10,
  277. 'sybct.min_client_severity': 10
  278. },
  279. 'bcmath': {
  280. 'bcmath.scale': 0
  281. },
  282. 'Session': {
  283. 'session.save_handler': 'files',
  284. 'session.use_strict_mode': 0,
  285. 'session.use_cookies': 1,
  286. 'session.use_only_cookies': 1,
  287. 'session.name': 'PHPSESSID',
  288. 'session.auto_start': 0,
  289. 'session.cookie_lifetime': 0,
  290. 'session.cookie_path': '/',
  291. 'session.serialize_handler': 'php',
  292. 'session.gc_probability': 0,
  293. 'session.gc_divisor': 1000,
  294. 'session.gc_maxlifetime': 1440,
  295. 'session.bug_compat_42': 'Off',
  296. 'session.bug_compat_warn': 'Off',
  297. 'session.cache_limiter': 'nocache',
  298. 'session.cache_expire': '180',
  299. 'session.use_trans_sid': 0,
  300. 'session.hash_function': 0,
  301. 'session.hash_bits_per_character': 5,
  302. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  303. },
  304. 'MSSQL': {
  305. 'mssql.allow_persistent': 'On',
  306. 'mssql.max_persistent': -1,
  307. 'mssql.max_links': -1,
  308. 'mssql.min_error_severity': 10,
  309. 'mssql.min_message_severity': 10,
  310. 'mssql.compatibility_mode': 'Off',
  311. 'mssql.secure_connection': 'Off'
  312. },
  313. 'Tidy': {
  314. 'tidy.clean_output': 'Off'
  315. },
  316. 'soap': {
  317. 'soap.wsdl_cache_enabled': 1,
  318. 'soap.wsdl_cache_dir': '"/tmp"',
  319. 'soap.wsdl_cache_ttl': 86400,
  320. 'soap.wsdl_cache_limit': 5
  321. },
  322. 'ldap': {
  323. 'ldap.max_links': -1
  324. },
  325. },
  326. },
  327. }, merge=True) %}
  328. {%- else %}
  329. {%- set php = salt['pillar.get']('php:ng', {
  330. 'lookup': salt['grains.filter_by']({
  331. 'Debian': {
  332. 'pkgs': {
  333. 'adodb': 'libphp-adodb',
  334. 'apache2': 'libapache2-mod-php' + phpng_version,
  335. 'apc': 'php-apcu',
  336. 'apcu': 'php-apcu-bc',
  337. 'bcmath': 'php' + phpng_version + '-bcmath',
  338. 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'],
  339. 'cache-lite': 'php-cache-lite',
  340. 'cgi': 'php' + phpng_version + '-cgi',
  341. 'cli': 'php' + phpng_version + '-cli',
  342. 'composer_bin': 'composer',
  343. 'console-table': 'php-console-table',
  344. 'curl': 'php' + phpng_version + '-curl',
  345. 'dev': 'php' + phpng_version + '-dev',
  346. 'ext_conf_path': '/etc/php/' + phpng_version + '/mods-available',
  347. 'fpm': 'php' + phpng_version + '-fpm',
  348. 'gd': 'php' + phpng_version + '-gd',
  349. 'gearman': 'php-gearman',
  350. 'geoip': 'php-geoip',
  351. 'geshi': 'php-geshi',
  352. 'gettext': 'php' + phpng_version,
  353. 'gmp': 'php' + phpng_version + '-gmp',
  354. 'hhvm': 'hhvm',
  355. 'imagick': 'php-imagick',
  356. 'imap': 'php' + phpng_version + '-imap',
  357. 'intl': 'php' + phpng_version + '-intl',
  358. 'json': 'php' + phpng_version + '-json',
  359. 'ldap': 'php' + phpng_version + '-ldap',
  360. 'local_bin': '/usr/local/bin',
  361. 'mbstring': 'php' + phpng_version + '-mbstring',
  362. 'mcrypt': 'php' + phpng_version + '-mcrypt',
  363. 'memcache': 'php-memcache',
  364. 'memcached': 'php-memcached',
  365. 'mongo': 'php-mongo',
  366. 'mongodb': 'php-mongodb',
  367. 'mysql': 'php' + phpng_version + '-mysql',
  368. 'mysqlnd': 'php' + phpng_version + '-mysql',
  369. 'net4': 'php-net-ipv4',
  370. 'net6': 'php-net-ipv6',
  371. 'oauth': 'php-oauth',
  372. 'opcache': 'php' + phpng_version + '-opcache',
  373. 'pear': 'php-pear',
  374. 'pgsql': 'php' + phpng_version + '-pgsql',
  375. 'php': 'php' + phpng_version,
  376. 'phpenmod_command': 'phpenmod -v' + phpng_version,
  377. 'pspell': 'php' + phpng_version + '-pspell',
  378. 'redis': 'php' + phpng_version + '-redis',
  379. 'seclib': 'php-seclib',
  380. 'snmp': 'php' + phpng_version + '-snmp',
  381. 'soap': 'php' + phpng_version + '-soap',
  382. 'ssh2': 'php-ssh2',
  383. 'sqlite': 'php' + phpng_version + '-sqlite3',
  384. 'suhosin5_ext': 'suhosin.so',
  385. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  386. 'suhosin7_ext': 'suhosin7.so',
  387. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  388. 'sybase': 'php' + phpng_version + '-sybase',
  389. 'tcpdf': 'php-tcpdf',
  390. 'temp_dir': '/tmp',
  391. 'tidy': 'php' + phpng_version + '-tidy',
  392. 'xdebug': 'php' + phpng_version + '-xdebug',
  393. 'xml': 'php' + phpng_version + '-xml',
  394. 'xsl': 'php' + phpng_version + '-xsl',
  395. 'zip': 'php' + phpng_version + '-zip',
  396. },
  397. 'fpm': {
  398. 'conf': '/etc/php/' + phpng_version + '/fpm/php-fpm.conf',
  399. 'ini': '/etc/php/' + phpng_version + '/fpm/php.ini',
  400. 'pools': '/etc/php/' + phpng_version + '/fpm/pool.d',
  401. 'service': 'php' + phpng_version + '-fpm',
  402. 'defaults': odict([
  403. ('global', odict([
  404. ('pid', '/var/run/php' + phpng_version + '-fpm.pid'),
  405. ('error_log', '/var/log/php' + phpng_version + '-fpm.log'),
  406. ])),
  407. ('include', '/etc/php/' + phpng_version + '/fpm/pool.d/*.conf'),
  408. ]),
  409. },
  410. 'hhvm': {
  411. 'conf': '/etc/hhvm/server.ini',
  412. 'ini': '/etc/hhvm/php.ini',
  413. 'service': 'hhvm',
  414. 'defaults': {},
  415. 'server': odict([
  416. ('pid', '/var/run/hhvm/pid'),
  417. ('hhvm.server.port', '9000'),
  418. ('hhvm.server.type', 'fastcgi'),
  419. ('hhvm.server.default_document', 'index.php'),
  420. ('hhvm.log.use_log_file', 'true'),
  421. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  422. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  423. ]),
  424. 'php': odict([
  425. ('session.save_handler', 'files'),
  426. ('session.save_path', '/var/lib/hhvm/sessions'),
  427. ('session.gc_maxlifetime', '1440'),
  428. ('hhvm.log.level', 'Warning'),
  429. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  430. ('hhvm.log.runtime_error_reporting_level', '8191'),
  431. ('hhvm.mysql.typed_results', 'false'),
  432. ]),
  433. },
  434. 'cli': {
  435. 'ini': '/etc/php/' + phpng_version + '/cli/php.ini',
  436. },
  437. 'apache2': {
  438. 'ini': '/etc/php/' + phpng_version + '/apache2/php.ini',
  439. },
  440. },
  441. }),
  442. 'fpm': {
  443. 'service': {
  444. 'enabled': True,
  445. 'opts': {},
  446. },
  447. 'config': {
  448. 'ini': {
  449. 'opts': {},
  450. 'settings': {},
  451. },
  452. 'conf': {
  453. 'opts': {},
  454. 'settings': {},
  455. },
  456. },
  457. 'pools': {},
  458. },
  459. 'hhvm': {
  460. 'service': {
  461. 'enabled': True,
  462. 'opts': {},
  463. },
  464. 'config': {
  465. 'server': {
  466. 'opts': {},
  467. 'settings': {},
  468. },
  469. 'php': {
  470. 'opts': {},
  471. 'settings': {},
  472. },
  473. },
  474. },
  475. 'cli': {
  476. 'ini': {
  477. 'opts': {},
  478. 'settings': {},
  479. }
  480. },
  481. 'apache2': {
  482. 'ini': {
  483. 'opts': {},
  484. 'settings': {},
  485. }
  486. },
  487. 'ini': {
  488. 'defaults': {
  489. 'PHP': {
  490. 'allow_url_fopen': 'On',
  491. 'allow_url_include': 'Off',
  492. 'asp_tags': 'Off',
  493. 'auto_globals_jit': 'On',
  494. 'default_mimetype': '"text/html"',
  495. 'default_socket_timeout': 60,
  496. 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',
  497. 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
  498. 'pcntl_sigprocmask','pcntl_sigwaitinfo','pcntl_sigtimedwait','pcntl_exec','pcntl_getpriority','pcntl_setpriority'],
  499. 'display_errors': 'Off',
  500. 'display_startup_errors': 'Off',
  501. 'enable_dl': 'Off',
  502. 'engine': 'On',
  503. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  504. 'expose_php': 'On',
  505. 'file_uploads': 'On',
  506. 'html_errors': 'On',
  507. 'ignore_repeated_errors': 'Off',
  508. 'ignore_repeated_source': 'Off',
  509. 'implicit_flush': 'Off',
  510. 'log_errors': 'On',
  511. 'log_errors_max_len': 1024,
  512. 'max_execution_time': 30,
  513. 'max_file_uploads': 20,
  514. 'max_input_nesting_level': 64,
  515. 'max_input_time': 60,
  516. 'max_input_vars': 1000,
  517. 'memory_limit': '128M',
  518. 'output_buffering': 4096,
  519. 'post_max_size': '8M',
  520. 'precision': 14,
  521. 'register_argc_argv': 'Off',
  522. 'report_memleaks': 'On',
  523. 'request_order': 'GP',
  524. 'serialize_precision': 17,
  525. 'short_open_tag': 'Off',
  526. 'track_errors': 'Off',
  527. 'upload_max_filesize': '2M',
  528. 'variables_order': 'GPCS',
  529. 'zend.enable_gc': 'On',
  530. 'zlib.output_compression': 'Off',
  531. },
  532. 'CLI Server': {
  533. 'cli_server.color': 'On'
  534. },
  535. 'Date': {
  536. 'date.timezone': 'America/New_York'
  537. },
  538. 'Pdo_mysql': {
  539. 'pdo_mysql.cache_size': 2000
  540. },
  541. 'mail function': {
  542. 'SMTP': 'localhost',
  543. 'mail.add_x_header': 'On'
  544. },
  545. 'SQL': {
  546. 'sql.safe_mode': 'Off'
  547. },
  548. 'ODBC': {
  549. 'odbc.allow_persistent': 'On',
  550. 'odbc.check_persistent': 'On',
  551. 'odbc.max_persistent': '-1',
  552. 'odbc.max_links': '-1',
  553. 'odbc.defaultlrl': 4096,
  554. 'odbc.defaultbinmode': 1
  555. },
  556. 'Interbase': {
  557. 'ibase.allow_persistent': 1,
  558. 'ibase.max_persistent': -1,
  559. 'ibase.max_links': -1,
  560. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  561. 'ibase.dateformat': '"%Y-%m-%d"',
  562. 'ibase.timeformat': '"%H:%M:%S"'
  563. },
  564. 'MySQL': {
  565. 'mysql.allow_local_infile': 'On',
  566. 'mysql.allow_persistent': 'On',
  567. 'mysql.cache_size': '2000',
  568. 'mysql.max_persistent': -1,
  569. 'mysql.max_links': -1,
  570. 'mysql.connect_timeout': 60,
  571. 'mysql.trace_mode': 'Off'
  572. },
  573. 'MySQLi': {
  574. 'mysqli.max_persistent': -1,
  575. 'mysqli.allow_persistent': 'On',
  576. 'mysqli.max_links': -1,
  577. 'mysqli.cache_size': 2000,
  578. 'mysqli.default_port': 3306,
  579. 'mysqli.reconnect': 'Off'
  580. },
  581. 'mysqlnd': {
  582. 'mysqlnd.collect_statistics': 'On',
  583. 'mysqlnd.collect_memory_statistics': 'Off'
  584. },
  585. 'PostgreSQL': {
  586. 'pgsql.allow_persistent': 'On',
  587. 'pgsql.auto_reset_persistent': 'Off',
  588. 'pgsql.max_persistent': -1,
  589. 'pgsql.max_links': -1,
  590. 'pgsql.ignore_notice': 0,
  591. 'pgsql.log_notice': 0
  592. },
  593. 'Sybase-CT': {
  594. 'sybct.allow_persistent': 'On',
  595. 'sybct.max_persistent': -1,
  596. 'sybct.max_links': -1,
  597. 'sybct.min_server_severity': 10,
  598. 'sybct.min_client_severity': 10
  599. },
  600. 'bcmath': {
  601. 'bcmath.scale': 0
  602. },
  603. 'Session': {
  604. 'session.save_handler': 'files',
  605. 'session.use_strict_mode': 0,
  606. 'session.use_cookies': 1,
  607. 'session.use_only_cookies': 1,
  608. 'session.name': 'PHPSESSID',
  609. 'session.auto_start': 0,
  610. 'session.cookie_lifetime': 0,
  611. 'session.cookie_path': '/',
  612. 'session.serialize_handler': 'php',
  613. 'session.gc_probability': 0,
  614. 'session.gc_divisor': 1000,
  615. 'session.gc_maxlifetime': 1440,
  616. 'session.bug_compat_42': 'Off',
  617. 'session.bug_compat_warn': 'Off',
  618. 'session.cache_limiter': 'nocache',
  619. 'session.cache_expire': '180',
  620. 'session.use_trans_sid': 0,
  621. 'session.hash_function': 0,
  622. 'session.hash_bits_per_character': 5,
  623. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  624. },
  625. 'MSSQL': {
  626. 'mssql.allow_persistent': 'On',
  627. 'mssql.max_persistent': -1,
  628. 'mssql.max_links': -1,
  629. 'mssql.min_error_severity': 10,
  630. 'mssql.min_message_severity': 10,
  631. 'mssql.compatibility_mode': 'Off',
  632. 'mssql.secure_connection': 'Off'
  633. },
  634. 'Tidy': {
  635. 'tidy.clean_output': 'Off'
  636. },
  637. 'soap': {
  638. 'soap.wsdl_cache_enabled': 1,
  639. 'soap.wsdl_cache_dir': '"/tmp"',
  640. 'soap.wsdl_cache_ttl': 86400,
  641. 'soap.wsdl_cache_limit': 5
  642. },
  643. 'ldap': {
  644. 'ldap.max_links': -1
  645. },
  646. },
  647. },
  648. }, merge=True) %}
  649. {%- endif %}
  650. {%- else %}
  651. {%- if salt['grains.get']('osrelease')|string >= '16.04' %}
  652. {%- set php = salt['pillar.get']('php:ng', {
  653. 'lookup': salt['grains.filter_by']({
  654. 'Ubuntu': {
  655. 'pkgs': {
  656. 'adodb': 'libphp-adodb',
  657. 'apache2': 'libapache2-mod-php',
  658. 'apc': 'php',
  659. 'apcu': 'php-apcu',
  660. 'bcmath': 'php7.0-bcmath',
  661. 'cache-lite': 'php-cache-lite',
  662. 'cgi': 'php-cgi',
  663. 'cli': 'php-cli',
  664. 'console-table': 'php-console-table',
  665. 'curl': 'php-curl',
  666. 'dev': 'php7.0-dev',
  667. 'fpm': 'php-fpm',
  668. 'gd': 'php-gd',
  669. 'geoip': 'php-geoip',
  670. 'geshi': 'php-geshi',
  671. 'gmp': 'php-gmp',
  672. 'hhvm': 'hhvm',
  673. 'imagick': 'php-imagick',
  674. 'imap': 'php-imap',
  675. 'intl': 'php-intl',
  676. 'json': 'php-json',
  677. 'ldap': 'php-ldap',
  678. 'mbstring': 'php-mbstring',
  679. 'mcrypt': 'php-mcrypt',
  680. 'memcache': 'php-memcache',
  681. 'memcached': 'php-memcached',
  682. 'mongodb': 'php-mongodb',
  683. 'mysql': 'php-mysql',
  684. 'mysqlnd': 'php',
  685. 'net4': 'php-net-ipv4',
  686. 'net6': 'php-net-ipv6',
  687. 'oauth': 'php-oauth',
  688. 'opcache': 'php7.0-opcache',
  689. 'pear': 'php-pear',
  690. 'pgsql': 'php-pgsql',
  691. 'php': 'php',
  692. 'phpenmod_command': 'phpenmod',
  693. 'pspell': 'php-pspell',
  694. 'redis': 'php-redis',
  695. 'seclib': ['php-phpseclib', 'php-seclib'],
  696. 'snmp': 'php-snmp',
  697. 'soap': 'php-soap',
  698. 'sqlite': 'php-sqlite3',
  699. 'ssh2': 'php-ssh2',
  700. 'suhosin': 'php',
  701. 'sybase': 'php-sybase',
  702. 'tcpdf': 'php-tcpdf',
  703. 'tidy': 'php7.0-tidy',
  704. 'xcache': 'php',
  705. 'xdebug': 'php-xdebug',
  706. 'xml': 'php-xml',
  707. 'xsl': 'php7.0-xsl',
  708. 'zip': 'php-zip',
  709. },
  710. 'fpm': {
  711. 'conf': '/etc/php/7.0/fpm/php-fpm.conf',
  712. 'ini': '/etc/php/7.0/fpm/php.ini',
  713. 'pools': '/etc/php/7.0/fpm/pool.d',
  714. 'service': 'php7.0-fpm',
  715. 'defaults': odict([
  716. ('global', odict([
  717. ('pid', '/var/run/php7.0-fpm.pid'),
  718. ('error_log', '/var/log/php7.0-fpm.log'),
  719. ])),
  720. ('include', '/etc/php/7.0/fpm/pool.d/*.conf'),
  721. ]),
  722. },
  723. 'hhvm': {
  724. 'conf': '/etc/hhvm/server.ini',
  725. 'ini': '/etc/hhvm/php.ini',
  726. 'service': 'hhvm',
  727. 'defaults': {},
  728. 'server': odict([
  729. ('pid', '/var/run/hhvm/pid'),
  730. ('hhvm.server.port', '9000'),
  731. ('hhvm.server.type', 'fastcgi'),
  732. ('hhvm.server.default_document', 'index.php'),
  733. ('hhvm.log.use_log_file', 'true'),
  734. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  735. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  736. ]),
  737. 'php': odict([
  738. ('session.save_handler', 'files'),
  739. ('session.save_path', '/var/lib/hhvm/sessions'),
  740. ('session.gc_maxlifetime', '1440'),
  741. ('hhvm.log.level', 'Warning'),
  742. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  743. ('hhvm.log.runtime_error_reporting_level', '8191'),
  744. ('hhvm.mysql.typed_results', 'false'),
  745. ]),
  746. },
  747. 'cli': {
  748. 'ini': '/etc/php/7.0/cli/php.ini',
  749. },
  750. 'apache2': {
  751. 'ini': '/etc/php/7.0/apache2/php.ini',
  752. },
  753. 'xcache': {
  754. 'ini': '/etc/php/7.0/mods-available/xcache.ini',
  755. 'defaults': {},
  756. },
  757. },
  758. }, grain="os"),
  759. 'fpm': {
  760. 'service': {
  761. 'enabled': True,
  762. 'opts': {},
  763. },
  764. 'config': {
  765. 'ini': {
  766. 'opts': {},
  767. 'settings': {},
  768. },
  769. 'conf': {
  770. 'opts': {},
  771. 'settings': {},
  772. },
  773. },
  774. 'pools': {
  775. 'default.conf': {
  776. 'enabled': False,
  777. 'opts': {},
  778. },
  779. },
  780. },
  781. 'hhvm': {
  782. 'service': {
  783. 'enabled': True,
  784. 'opts': {},
  785. },
  786. 'config': {
  787. 'server': {
  788. 'opts': {},
  789. 'settings': {},
  790. },
  791. 'php': {
  792. 'opts': {},
  793. 'settings': {},
  794. },
  795. },
  796. },
  797. 'cli': {
  798. 'ini': {
  799. 'opts': {},
  800. 'settings': {},
  801. }
  802. },
  803. 'apache2': {
  804. 'ini': {
  805. 'opts': {},
  806. 'settings': {},
  807. }
  808. },
  809. 'xcache': {
  810. 'ini': {
  811. 'defaults': {
  812. 'xcache-common': {
  813. 'extension': 'xcache.so',
  814. },
  815. 'xcache.admin': {
  816. 'xcache.admin.enable_auth': 'On',
  817. },
  818. 'xcache': {
  819. 'xcache.shm_scheme': '"mmap"',
  820. 'xcache.size': '60M',
  821. 'xcache.count': '1',
  822. 'xcache.slots': '8K',
  823. 'xcache.ttl': '0',
  824. 'xcache.gc_interval': '0',
  825. 'xcache.var_size': '4M',
  826. 'xcache.var_count': '1',
  827. 'xcache.var_slots': '8K',
  828. 'xcache.var_ttl': '0',
  829. 'xcache.var_maxttl': '0',
  830. 'xcache.var_gc_interval': '300',
  831. 'xcache.var_namespace_mode': '0',
  832. 'xcache.var_namespace': '""',
  833. 'xcache.readonly_protection': 'Off',
  834. 'xcache.mmap_path': '"/dev/zero"',
  835. 'xcache.coredump_directory': '""',
  836. 'xcache.coredump_type': '0',
  837. 'xcache.disable_on_crash': 'Off',
  838. 'xcache.experimental': 'Off',
  839. 'xcache.cacher': 'On',
  840. 'xcache.stat': 'On',
  841. 'xcache.optimizer': 'Off',
  842. },
  843. 'xcache.coverager': {
  844. 'xcache.coverager': 'Off',
  845. 'xcache.coverager_autostart': 'On',
  846. 'xcache.coveragedump_directory': '""',
  847. },
  848. },
  849. 'opts': {},
  850. 'settings': {},
  851. }
  852. },
  853. 'ini': {
  854. 'defaults': {
  855. 'PHP': {
  856. 'allow_url_fopen': 'On',
  857. 'allow_url_include': 'Off',
  858. 'asp_tags': 'Off',
  859. 'auto_globals_jit': 'On',
  860. 'default_mimetype': '"text/html"',
  861. 'default_socket_timeout': 60,
  862. 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',
  863. 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
  864. 'pcntl_sigprocmask','pcntl_sigwaitinfo','pcntl_sigtimedwait','pcntl_exec','pcntl_getpriority','pcntl_setpriority'],
  865. 'display_errors': 'Off',
  866. 'display_startup_errors': 'Off',
  867. 'enable_dl': 'Off',
  868. 'engine': 'On',
  869. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  870. 'expose_php': 'On',
  871. 'file_uploads': 'On',
  872. 'html_errors': 'On',
  873. 'ignore_repeated_errors': 'Off',
  874. 'ignore_repeated_source': 'Off',
  875. 'implicit_flush': 'Off',
  876. 'log_errors': 'On',
  877. 'log_errors_max_len': 1024,
  878. 'max_execution_time': 30,
  879. 'max_file_uploads': 20,
  880. 'max_input_nesting_level': 64,
  881. 'max_input_time': 60,
  882. 'max_input_vars': 1000,
  883. 'memory_limit': '128M',
  884. 'output_buffering': 4096,
  885. 'post_max_size': '8M',
  886. 'precision': 14,
  887. 'register_argc_argv': 'Off',
  888. 'report_memleaks': 'On',
  889. 'request_order': 'GP',
  890. 'serialize_precision': 17,
  891. 'short_open_tag': 'Off',
  892. 'track_errors': 'Off',
  893. 'upload_max_filesize': '2M',
  894. 'variables_order': 'GPCS',
  895. 'zend.enable_gc': 'On',
  896. 'zlib.output_compression': 'Off',
  897. },
  898. 'CLI Server': {
  899. 'cli_server.color': 'On'
  900. },
  901. 'Date': {
  902. 'date.timezone': 'America/New_York'
  903. },
  904. 'Pdo_mysql': {
  905. 'pdo_mysql.cache_size': 2000
  906. },
  907. 'mail function': {
  908. 'SMTP': 'localhost',
  909. 'mail.add_x_header': 'On'
  910. },
  911. 'SQL': {
  912. 'sql.safe_mode': 'Off'
  913. },
  914. 'ODBC': {
  915. 'odbc.allow_persistent': 'On',
  916. 'odbc.check_persistent': 'On',
  917. 'odbc.max_persistent': '-1',
  918. 'odbc.max_links': '-1',
  919. 'odbc.defaultlrl': 4096,
  920. 'odbc.defaultbinmode': 1
  921. },
  922. 'Interbase': {
  923. 'ibase.allow_persistent': 1,
  924. 'ibase.max_persistent': -1,
  925. 'ibase.max_links': -1,
  926. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  927. 'ibase.dateformat': '"%Y-%m-%d"',
  928. 'ibase.timeformat': '"%H:%M:%S"'
  929. },
  930. 'MySQL': {
  931. 'mysql.allow_local_infile': 'On',
  932. 'mysql.allow_persistent': 'On',
  933. 'mysql.cache_size': '2000',
  934. 'mysql.max_persistent': -1,
  935. 'mysql.max_links': -1,
  936. 'mysql.connect_timeout': 60,
  937. 'mysql.trace_mode': 'Off'
  938. },
  939. 'MySQLi': {
  940. 'mysqli.max_persistent': -1,
  941. 'mysqli.allow_persistent': 'On',
  942. 'mysqli.max_links': -1,
  943. 'mysqli.cache_size': 2000,
  944. 'mysqli.default_port': 3306,
  945. 'mysqli.reconnect': 'Off'
  946. },
  947. 'mysqlnd': {
  948. 'mysqlnd.collect_statistics': 'On',
  949. 'mysqlnd.collect_memory_statistics': 'Off'
  950. },
  951. 'PostgreSQL': {
  952. 'pgsql.allow_persistent': 'On',
  953. 'pgsql.auto_reset_persistent': 'Off',
  954. 'pgsql.max_persistent': -1,
  955. 'pgsql.max_links': -1,
  956. 'pgsql.ignore_notice': 0,
  957. 'pgsql.log_notice': 0
  958. },
  959. 'Sybase-CT': {
  960. 'sybct.allow_persistent': 'On',
  961. 'sybct.max_persistent': -1,
  962. 'sybct.max_links': -1,
  963. 'sybct.min_server_severity': 10,
  964. 'sybct.min_client_severity': 10
  965. },
  966. 'bcmath': {
  967. 'bcmath.scale': 0
  968. },
  969. 'Session': {
  970. 'session.save_handler': 'files',
  971. 'session.use_strict_mode': 0,
  972. 'session.use_cookies': 1,
  973. 'session.use_only_cookies': 1,
  974. 'session.name': 'PHPSESSID',
  975. 'session.auto_start': 0,
  976. 'session.cookie_lifetime': 0,
  977. 'session.cookie_path': '/',
  978. 'session.serialize_handler': 'php',
  979. 'session.gc_probability': 0,
  980. 'session.gc_divisor': 1000,
  981. 'session.gc_maxlifetime': 1440,
  982. 'session.bug_compat_42': 'Off',
  983. 'session.bug_compat_warn': 'Off',
  984. 'session.cache_limiter': 'nocache',
  985. 'session.cache_expire': '180',
  986. 'session.use_trans_sid': 0,
  987. 'session.hash_function': 0,
  988. 'session.hash_bits_per_character': 5,
  989. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  990. },
  991. 'MSSQL': {
  992. 'mssql.allow_persistent': 'On',
  993. 'mssql.max_persistent': -1,
  994. 'mssql.max_links': -1,
  995. 'mssql.min_error_severity': 10,
  996. 'mssql.min_message_severity': 10,
  997. 'mssql.compatibility_mode': 'Off',
  998. 'mssql.secure_connection': 'Off'
  999. },
  1000. 'Tidy': {
  1001. 'tidy.clean_output': 'Off'
  1002. },
  1003. 'soap': {
  1004. 'soap.wsdl_cache_enabled': 1,
  1005. 'soap.wsdl_cache_dir': '"/tmp"',
  1006. 'soap.wsdl_cache_ttl': 86400,
  1007. 'soap.wsdl_cache_limit': 5
  1008. },
  1009. 'ldap': {
  1010. 'ldap.max_links': -1
  1011. },
  1012. },
  1013. },
  1014. }, merge=True) %}
  1015. {%- else %}
  1016. {%- set php = salt['pillar.get']('php:ng', {
  1017. 'lookup': salt['grains.filter_by']({
  1018. 'Ubuntu': {
  1019. 'pkgs': {
  1020. 'adodb': 'php5-adodb',
  1021. 'apache2': 'libapache2-mod-php5',
  1022. 'apc': 'php-apc',
  1023. 'apcu': 'php5-apcu',
  1024. 'bcmath': 'php5',
  1025. 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev'],
  1026. 'cache-lite': 'php-cache-lite',
  1027. 'cgi': 'php5-cgi',
  1028. 'cli': 'php5-cli',
  1029. 'composer_bin': 'composer',
  1030. 'console-table': 'php-console-table',
  1031. 'curl': 'php5-curl',
  1032. 'dev': ['php5-dev','build-essential'],
  1033. 'ext_conf_path': salt['grains.filter_by']({
  1034. 'precise': '/etc/php5/conf.d',
  1035. 'default': '/etc/php5/mods-available',
  1036. }, grain='oscodename'),
  1037. 'fpm': 'php5-fpm',
  1038. 'gd': 'php5-gd',
  1039. 'gearman': 'php5-gearman',
  1040. 'geoip': 'php5-geoip',
  1041. 'geshi': 'php-geshi',
  1042. 'gettext': 'php-gettext',
  1043. 'gmp': 'php5-gmp',
  1044. 'hhvm': 'hhvm',
  1045. 'imagick': 'php5-imagick',
  1046. 'imap': 'php5-imap',
  1047. 'intl': 'php5-intl',
  1048. 'json': 'php5-json',
  1049. 'ldap': 'php5-ldap',
  1050. 'local_bin': '/usr/local/bin',
  1051. 'mbstring': 'php5',
  1052. 'mcrypt': 'php5-mcrypt',
  1053. 'mdb2': 'php-mdb2',
  1054. 'mdb2-driver-mysql': 'php-mdb2-driver-mysql',
  1055. 'mdb2-driver-pgsql': 'php-mdb2-driver-pgsql',
  1056. 'memcache': 'php5-memcache',
  1057. 'memcached': 'php5-memcached',
  1058. 'mongodb': salt['grains.filter_by']({
  1059. 'trusty': 'php5-mongo',
  1060. 'default': '',
  1061. }, grain='oscodename'),
  1062. 'mysql': 'php5-mysql',
  1063. 'mysqlnd': 'php5-mysqlnd',
  1064. 'net4': 'php-net-ipv4',
  1065. 'net6': 'php-net-ipv6',
  1066. 'oauth': 'php5-oauth',
  1067. 'opcache': 'php5',
  1068. 'pear': 'php-pear',
  1069. 'pgsql': 'php5-pgsql',
  1070. 'php': 'php5',
  1071. 'phpenmod_command': salt['grains.filter_by']({
  1072. 'precise': 'true',
  1073. 'default': 'php5enmod',
  1074. }, grain='oscodename'),
  1075. 'pspell': 'php5-pspell',
  1076. 'redis': 'php5-redis',
  1077. 'seclib': 'php-seclib',
  1078. 'snmp': 'php5-snmp',
  1079. 'soap': 'php-soap',
  1080. 'sqlite': 'php5-sqlite',
  1081. 'ssh2': 'libssh2-php',
  1082. 'suhosin5_ext': 'suhosin.so',
  1083. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  1084. 'suhosin7_ext': 'suhosin7.so',
  1085. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  1086. 'svn': 'php5-svn',
  1087. 'tcpdf': 'php-tcpdf',
  1088. 'tidy': 'php5-tidy',
  1089. 'temp_dir': '/tmp',
  1090. 'xcache': 'php5-xcache',
  1091. 'xdebug': 'php5-xdebug',
  1092. 'xml': 'php5',
  1093. 'xsl': 'php5-xsl',
  1094. 'zip': 'php5',
  1095. },
  1096. 'fpm': {
  1097. 'conf': '/etc/php5/fpm/php-fpm.conf',
  1098. 'ini': '/etc/php5/fpm/php.ini',
  1099. 'pools': '/etc/php5/fpm/pool.d',
  1100. 'service': 'php5-fpm',
  1101. 'defaults': odict([
  1102. ('global', odict([
  1103. ('pid', '/var/run/php5-fpm.pid'),
  1104. ('error_log', '/var/log/php5-fpm.log'),
  1105. ])),
  1106. ('include', '/etc/php5/fpm/pool.d/*.conf'),
  1107. ]),
  1108. },
  1109. 'hhvm': {
  1110. 'conf': '/etc/hhvm/server.ini',
  1111. 'ini': '/etc/hhvm/php.ini',
  1112. 'service': 'hhvm',
  1113. 'defaults': {},
  1114. 'server': odict([
  1115. ('pid', '/var/run/hhvm/pid'),
  1116. ('hhvm.server.port', '9000'),
  1117. ('hhvm.server.type', 'fastcgi'),
  1118. ('hhvm.server.default_document', 'index.php'),
  1119. ('hhvm.log.use_log_file', 'true'),
  1120. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  1121. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  1122. ]),
  1123. 'php': odict([
  1124. ('session.save_handler', 'files'),
  1125. ('session.save_path', '/var/lib/hhvm/sessions'),
  1126. ('session.gc_maxlifetime', '1440'),
  1127. ('hhvm.log.level', 'Warning'),
  1128. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  1129. ('hhvm.log.runtime_error_reporting_level', '8191'),
  1130. ('hhvm.mysql.typed_results', 'false'),
  1131. ]),
  1132. },
  1133. 'cli': {
  1134. 'ini': '/etc/php5/cli/php.ini',
  1135. },
  1136. 'apache2': {
  1137. 'ini': '/etc/php5/apache2/php.ini',
  1138. },
  1139. 'xcache': {
  1140. 'ini': '/etc/php5/mods-available/xcache.ini',
  1141. 'defaults': {},
  1142. },
  1143. },
  1144. }, grain="os"),
  1145. 'fpm': {
  1146. 'service': {
  1147. 'enabled': True,
  1148. 'opts': {},
  1149. },
  1150. 'config': {
  1151. 'ini': {
  1152. 'opts': {},
  1153. 'settings': {},
  1154. },
  1155. 'conf': {
  1156. 'opts': {},
  1157. 'settings': {},
  1158. },
  1159. },
  1160. 'pools': {
  1161. 'default.conf': {
  1162. 'enabled': False,
  1163. 'opts': {},
  1164. },
  1165. },
  1166. },
  1167. 'hhvm': {
  1168. 'service': {
  1169. 'enabled': True,
  1170. 'opts': {},
  1171. },
  1172. 'config': {
  1173. 'server': {
  1174. 'opts': {},
  1175. 'settings': {},
  1176. },
  1177. 'php': {
  1178. 'opts': {},
  1179. 'settings': {},
  1180. },
  1181. },
  1182. },
  1183. 'cli': {
  1184. 'ini': {
  1185. 'opts': {},
  1186. 'settings': {},
  1187. }
  1188. },
  1189. 'apache2': {
  1190. 'ini': {
  1191. 'opts': {},
  1192. 'settings': {},
  1193. }
  1194. },
  1195. 'xcache': {
  1196. 'ini': {
  1197. 'defaults': {
  1198. 'xcache-common': {
  1199. 'extension': 'xcache.so',
  1200. },
  1201. 'xcache.admin': {
  1202. 'xcache.admin.enable_auth': 'On',
  1203. },
  1204. 'xcache': {
  1205. 'xcache.shm_scheme': '"mmap"',
  1206. 'xcache.size': '60M',
  1207. 'xcache.count': '1',
  1208. 'xcache.slots': '8K',
  1209. 'xcache.ttl': '0',
  1210. 'xcache.gc_interval': '0',
  1211. 'xcache.var_size': '4M',
  1212. 'xcache.var_count': '1',
  1213. 'xcache.var_slots': '8K',
  1214. 'xcache.var_ttl': '0',
  1215. 'xcache.var_maxttl': '0',
  1216. 'xcache.var_gc_interval': '300',
  1217. 'xcache.var_namespace_mode': '0',
  1218. 'xcache.var_namespace': '""',
  1219. 'xcache.readonly_protection': 'Off',
  1220. 'xcache.mmap_path': '"/dev/zero"',
  1221. 'xcache.coredump_directory': '""',
  1222. 'xcache.coredump_type': '0',
  1223. 'xcache.disable_on_crash': 'Off',
  1224. 'xcache.experimental': 'Off',
  1225. 'xcache.cacher': 'On',
  1226. 'xcache.stat': 'On',
  1227. 'xcache.optimizer': 'Off',
  1228. },
  1229. 'xcache.coverager': {
  1230. 'xcache.coverager': 'Off',
  1231. 'xcache.coverager_autostart': 'On',
  1232. 'xcache.coveragedump_directory': '""',
  1233. },
  1234. },
  1235. 'opts': {},
  1236. 'settings': {},
  1237. }
  1238. },
  1239. 'ini': {
  1240. 'defaults': {
  1241. 'PHP': {
  1242. 'allow_url_fopen': 'On',
  1243. 'allow_url_include': 'Off',
  1244. 'asp_tags': 'Off',
  1245. 'auto_globals_jit': 'On',
  1246. 'default_mimetype': '"text/html"',
  1247. 'default_socket_timeout': 60,
  1248. 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',
  1249. 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
  1250. 'pcntl_sigprocmask','pcntl_sigwaitinfo','pcntl_sigtimedwait','pcntl_exec','pcntl_getpriority','pcntl_setpriority'],
  1251. 'display_errors': 'Off',
  1252. 'display_startup_errors': 'Off',
  1253. 'enable_dl': 'Off',
  1254. 'engine': 'On',
  1255. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  1256. 'expose_php': 'On',
  1257. 'file_uploads': 'On',
  1258. 'html_errors': 'On',
  1259. 'ignore_repeated_errors': 'Off',
  1260. 'ignore_repeated_source': 'Off',
  1261. 'implicit_flush': 'Off',
  1262. 'log_errors': 'On',
  1263. 'log_errors_max_len': 1024,
  1264. 'max_execution_time': 30,
  1265. 'max_file_uploads': 20,
  1266. 'max_input_nesting_level': 64,
  1267. 'max_input_time': 60,
  1268. 'max_input_vars': 1000,
  1269. 'memory_limit': '128M',
  1270. 'output_buffering': 4096,
  1271. 'post_max_size': '8M',
  1272. 'precision': 14,
  1273. 'register_argc_argv': 'Off',
  1274. 'report_memleaks': 'On',
  1275. 'request_order': 'GP',
  1276. 'serialize_precision': 17,
  1277. 'short_open_tag': 'Off',
  1278. 'track_errors': 'Off',
  1279. 'upload_max_filesize': '2M',
  1280. 'variables_order': 'GPCS',
  1281. 'zend.enable_gc': 'On',
  1282. 'zlib.output_compression': 'Off',
  1283. },
  1284. 'CLI Server': {
  1285. 'cli_server.color': 'On'
  1286. },
  1287. 'Date': {
  1288. 'date.timezone': 'America/New_York'
  1289. },
  1290. 'Pdo_mysql': {
  1291. 'pdo_mysql.cache_size': 2000
  1292. },
  1293. 'mail function': {
  1294. 'SMTP': 'localhost',
  1295. 'mail.add_x_header': 'On'
  1296. },
  1297. 'SQL': {
  1298. 'sql.safe_mode': 'Off'
  1299. },
  1300. 'ODBC': {
  1301. 'odbc.allow_persistent': 'On',
  1302. 'odbc.check_persistent': 'On',
  1303. 'odbc.max_persistent': '-1',
  1304. 'odbc.max_links': '-1',
  1305. 'odbc.defaultlrl': 4096,
  1306. 'odbc.defaultbinmode': 1
  1307. },
  1308. 'Interbase': {
  1309. 'ibase.allow_persistent': 1,
  1310. 'ibase.max_persistent': -1,
  1311. 'ibase.max_links': -1,
  1312. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  1313. 'ibase.dateformat': '"%Y-%m-%d"',
  1314. 'ibase.timeformat': '"%H:%M:%S"'
  1315. },
  1316. 'MySQL': {
  1317. 'mysql.allow_local_infile': 'On',
  1318. 'mysql.allow_persistent': 'On',
  1319. 'mysql.cache_size': '2000',
  1320. 'mysql.max_persistent': -1,
  1321. 'mysql.max_links': -1,
  1322. 'mysql.connect_timeout': 60,
  1323. 'mysql.trace_mode': 'Off'
  1324. },
  1325. 'MySQLi': {
  1326. 'mysqli.max_persistent': -1,
  1327. 'mysqli.allow_persistent': 'On',
  1328. 'mysqli.max_links': -1,
  1329. 'mysqli.cache_size': 2000,
  1330. 'mysqli.default_port': 3306,
  1331. 'mysqli.reconnect': 'Off'
  1332. },
  1333. 'mysqlnd': {
  1334. 'mysqlnd.collect_statistics': 'On',
  1335. 'mysqlnd.collect_memory_statistics': 'Off'
  1336. },
  1337. 'PostgreSQL': {
  1338. 'pgsql.allow_persistent': 'On',
  1339. 'pgsql.auto_reset_persistent': 'Off',
  1340. 'pgsql.max_persistent': -1,
  1341. 'pgsql.max_links': -1,
  1342. 'pgsql.ignore_notice': 0,
  1343. 'pgsql.log_notice': 0
  1344. },
  1345. 'Sybase-CT': {
  1346. 'sybct.allow_persistent': 'On',
  1347. 'sybct.max_persistent': -1,
  1348. 'sybct.max_links': -1,
  1349. 'sybct.min_server_severity': 10,
  1350. 'sybct.min_client_severity': 10
  1351. },
  1352. 'bcmath': {
  1353. 'bcmath.scale': 0
  1354. },
  1355. 'Session': {
  1356. 'session.save_handler': 'files',
  1357. 'session.use_strict_mode': 0,
  1358. 'session.use_cookies': 1,
  1359. 'session.use_only_cookies': 1,
  1360. 'session.name': 'PHPSESSID',
  1361. 'session.auto_start': 0,
  1362. 'session.cookie_lifetime': 0,
  1363. 'session.cookie_path': '/',
  1364. 'session.serialize_handler': 'php',
  1365. 'session.gc_probability': 0,
  1366. 'session.gc_divisor': 1000,
  1367. 'session.gc_maxlifetime': 1440,
  1368. 'session.bug_compat_42': 'Off',
  1369. 'session.bug_compat_warn': 'Off',
  1370. 'session.cache_limiter': 'nocache',
  1371. 'session.cache_expire': '180',
  1372. 'session.use_trans_sid': 0,
  1373. 'session.hash_function': 0,
  1374. 'session.hash_bits_per_character': 5,
  1375. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  1376. },
  1377. 'MSSQL': {
  1378. 'mssql.allow_persistent': 'On',
  1379. 'mssql.max_persistent': -1,
  1380. 'mssql.max_links': -1,
  1381. 'mssql.min_error_severity': 10,
  1382. 'mssql.min_message_severity': 10,
  1383. 'mssql.compatibility_mode': 'Off',
  1384. 'mssql.secure_connection': 'Off'
  1385. },
  1386. 'Tidy': {
  1387. 'tidy.clean_output': 'Off'
  1388. },
  1389. 'soap': {
  1390. 'soap.wsdl_cache_enabled': 1,
  1391. 'soap.wsdl_cache_dir': '"/tmp"',
  1392. 'soap.wsdl_cache_ttl': 86400,
  1393. 'soap.wsdl_cache_limit': 5
  1394. },
  1395. 'ldap': {
  1396. 'ldap.max_links': -1
  1397. },
  1398. },
  1399. },
  1400. }, merge=True) %}
  1401. {%- endif %}
  1402. {%- endif %}
  1403. {%- elif salt['grains.get']('os') == "Debian" %}
  1404. {%- set phpng_version = salt['pillar.get']('php:ng:version', '7.0')|string %}
  1405. {%- if phpng_version|string == '5' %}
  1406. {%- set confdir = '/etc/php5' %}
  1407. {%- else %}
  1408. {%- set confdir = '/etc/php/' + phpng_version %}
  1409. {%- endif %}
  1410. {%- set php = salt['pillar.get']('php:ng', {
  1411. 'lookup': salt['grains.filter_by']({
  1412. 'Debian': {
  1413. 'pkgs': {
  1414. 'adodb': 'libphp-adodb',
  1415. 'apache2': 'libapache2-mod-php' + phpng_version,
  1416. 'apc': 'php-apcu',
  1417. 'apcu': 'php-apcu-bc',
  1418. 'bcmath': 'php' + phpng_version + '-bcmath',
  1419. 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'],
  1420. 'cache-lite': 'php-cache-lite',
  1421. 'cgi': 'php' + phpng_version + '-cgi',
  1422. 'cli': 'php' + phpng_version + '-cli',
  1423. 'composer_bin': 'composer',
  1424. 'console-table': 'php-console-table',
  1425. 'curl': 'php' + phpng_version + '-curl',
  1426. 'dev': 'php' + phpng_version + '-dev',
  1427. 'ext_conf_path': '/etc/php/' + phpng_version + '/mods-available',
  1428. 'fpm': 'php' + phpng_version + '-fpm',
  1429. 'gd': 'php' + phpng_version + '-gd',
  1430. 'gearman': 'php-gearman',
  1431. 'geoip': 'php-geoip',
  1432. 'geshi': 'php-geshi',
  1433. 'gettext': 'php' + phpng_version,
  1434. 'gmp': 'php' + phpng_version + '-gmp',
  1435. 'hhvm': 'hhvm',
  1436. 'imagick': 'php-imagick',
  1437. 'imap': 'php' + phpng_version + '-imap',
  1438. 'intl': 'php' + phpng_version + '-intl',
  1439. 'json': 'php' + phpng_version + '-json',
  1440. 'ldap': 'php' + phpng_version + '-ldap',
  1441. 'local_bin': '/usr/local/bin',
  1442. 'mbstring': 'php' + phpng_version + '-mbstring',
  1443. 'mcrypt': 'php' + phpng_version + '-mcrypt',
  1444. 'memcache': 'php-memcache',
  1445. 'memcached': 'php-memcached',
  1446. 'mongo': 'php-mongo',
  1447. 'mongodb': 'php-mongodb',
  1448. 'mysql': 'php' + phpng_version + '-mysql',
  1449. 'mysqlnd': 'php' + phpng_version + '-mysql',
  1450. 'net4': 'php-net-ipv4',
  1451. 'net6': 'php-net-ipv6',
  1452. 'oauth': 'php-oauth',
  1453. 'opcache': 'php' + phpng_version + '-opcache',
  1454. 'pear': 'php-pear',
  1455. 'pgsql': 'php' + phpng_version + '-pgsql',
  1456. 'php': 'php' + phpng_version,
  1457. 'phpenmod_command': 'phpenmod -v' + phpng_version,
  1458. 'pspell': 'php' + phpng_version + '-pspell',
  1459. 'redis': 'php-redis',
  1460. 'seclib': ['php-phpseclib', 'php-seclib'],
  1461. 'snmp': 'php' + phpng_version + '-snmp',
  1462. 'soap': 'php' + phpng_version + '-soap',
  1463. 'ssh2': 'php-ssh2',
  1464. 'sqlite': 'php' + phpng_version + '-sqlite3',
  1465. 'suhosin5_ext': 'suhosin.so',
  1466. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  1467. 'suhosin7_ext': 'suhosin7.so',
  1468. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  1469. 'sybase': 'php' + phpng_version + '-sybase',
  1470. 'tcpdf': 'php-tcpdf',
  1471. 'temp_dir': '/tmp',
  1472. 'tidy': 'php' + phpng_version + '-tidy',
  1473. 'xdebug': 'php' + phpng_version + '-xdebug',
  1474. 'xml': 'php' + phpng_version + '-xml',
  1475. 'xsl': 'php' + phpng_version + '-xsl',
  1476. 'zip': 'php' + phpng_version + '-zip',
  1477. },
  1478. 'fpm': {
  1479. 'conf': confdir + '/fpm/php-fpm.conf',
  1480. 'ini': confdir + '/fpm/php.ini',
  1481. 'pools': confdir + '/fpm/pool.d',
  1482. 'service': 'php' + phpng_version + '-fpm',
  1483. 'defaults': odict([
  1484. ('global', odict([
  1485. ('pid', '/var/run/php' + phpng_version + '-fpm.pid'),
  1486. ('error_log', '/var/log/php' + phpng_version + '-fpm.log'),
  1487. ])),
  1488. ('include', confdir + '/fpm/pool.d/*.conf'),
  1489. ]),
  1490. },
  1491. 'hhvm': {
  1492. 'conf': '/etc/hhvm/server.ini',
  1493. 'ini': '/etc/hhvm/php.ini',
  1494. 'service': 'hhvm',
  1495. 'defaults': {},
  1496. 'server': odict([
  1497. ('pid', '/var/run/hhvm/pid'),
  1498. ('hhvm.server.port', '9000'),
  1499. ('hhvm.server.type', 'fastcgi'),
  1500. ('hhvm.server.default_document', 'index.php'),
  1501. ('hhvm.log.use_log_file', 'true'),
  1502. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  1503. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  1504. ]),
  1505. 'php': odict([
  1506. ('session.save_handler', 'files'),
  1507. ('session.save_path', '/var/lib/hhvm/sessions'),
  1508. ('session.gc_maxlifetime', '1440'),
  1509. ('hhvm.log.level', 'Warning'),
  1510. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  1511. ('hhvm.log.runtime_error_reporting_level', '8191'),
  1512. ('hhvm.mysql.typed_results', 'false'),
  1513. ]),
  1514. },
  1515. 'cli': {
  1516. 'ini': confdir + '/cli/php.ini',
  1517. },
  1518. 'apache2': {
  1519. 'ini': confdir + '/apache2/php.ini',
  1520. },
  1521. },
  1522. }),
  1523. 'fpm': {
  1524. 'service': {
  1525. 'enabled': True,
  1526. 'opts': {},
  1527. },
  1528. 'config': {
  1529. 'ini': {
  1530. 'opts': {},
  1531. 'settings': {},
  1532. },
  1533. 'conf': {
  1534. 'opts': {},
  1535. 'settings': {},
  1536. },
  1537. },
  1538. 'pools': {},
  1539. },
  1540. 'hhvm': {
  1541. 'service': {
  1542. 'enabled': True,
  1543. 'opts': {},
  1544. },
  1545. 'config': {
  1546. 'server': {
  1547. 'opts': {},
  1548. 'settings': {},
  1549. },
  1550. 'php': {
  1551. 'opts': {},
  1552. 'settings': {},
  1553. },
  1554. },
  1555. },
  1556. 'cli': {
  1557. 'ini': {
  1558. 'opts': {},
  1559. 'settings': {},
  1560. }
  1561. },
  1562. 'apache2': {
  1563. 'ini': {
  1564. 'opts': {},
  1565. 'settings': {},
  1566. }
  1567. },
  1568. 'ini': {
  1569. 'defaults': {
  1570. 'PHP': {
  1571. 'allow_url_fopen': 'On',
  1572. 'allow_url_include': 'Off',
  1573. 'asp_tags': 'Off',
  1574. 'auto_globals_jit': 'On',
  1575. 'default_mimetype': '"text/html"',
  1576. 'default_socket_timeout': 60,
  1577. 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',
  1578. 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
  1579. 'pcntl_sigprocmask','pcntl_sigwaitinfo','pcntl_sigtimedwait','pcntl_exec','pcntl_getpriority','pcntl_setpriority'],
  1580. 'display_errors': 'Off',
  1581. 'display_startup_errors': 'Off',
  1582. 'enable_dl': 'Off',
  1583. 'engine': 'On',
  1584. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  1585. 'expose_php': 'On',
  1586. 'file_uploads': 'On',
  1587. 'html_errors': 'On',
  1588. 'ignore_repeated_errors': 'Off',
  1589. 'ignore_repeated_source': 'Off',
  1590. 'implicit_flush': 'Off',
  1591. 'log_errors': 'On',
  1592. 'log_errors_max_len': 1024,
  1593. 'max_execution_time': 30,
  1594. 'max_file_uploads': 20,
  1595. 'max_input_nesting_level': 64,
  1596. 'max_input_time': 60,
  1597. 'max_input_vars': 1000,
  1598. 'memory_limit': '128M',
  1599. 'output_buffering': 4096,
  1600. 'post_max_size': '8M',
  1601. 'precision': 14,
  1602. 'register_argc_argv': 'Off',
  1603. 'report_memleaks': 'On',
  1604. 'request_order': 'GP',
  1605. 'serialize_precision': 17,
  1606. 'short_open_tag': 'Off',
  1607. 'track_errors': 'Off',
  1608. 'upload_max_filesize': '2M',
  1609. 'variables_order': 'GPCS',
  1610. 'zend.enable_gc': 'On',
  1611. 'zlib.output_compression': 'Off',
  1612. },
  1613. 'CLI Server': {
  1614. 'cli_server.color': 'On'
  1615. },
  1616. 'Date': {
  1617. 'date.timezone': 'America/New_York'
  1618. },
  1619. 'Pdo_mysql': {
  1620. 'pdo_mysql.cache_size': 2000
  1621. },
  1622. 'mail function': {
  1623. 'SMTP': 'localhost',
  1624. 'mail.add_x_header': 'On'
  1625. },
  1626. 'SQL': {
  1627. 'sql.safe_mode': 'Off'
  1628. },
  1629. 'ODBC': {
  1630. 'odbc.allow_persistent': 'On',
  1631. 'odbc.check_persistent': 'On',
  1632. 'odbc.max_persistent': '-1',
  1633. 'odbc.max_links': '-1',
  1634. 'odbc.defaultlrl': 4096,
  1635. 'odbc.defaultbinmode': 1
  1636. },
  1637. 'Interbase': {
  1638. 'ibase.allow_persistent': 1,
  1639. 'ibase.max_persistent': -1,
  1640. 'ibase.max_links': -1,
  1641. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  1642. 'ibase.dateformat': '"%Y-%m-%d"',
  1643. 'ibase.timeformat': '"%H:%M:%S"'
  1644. },
  1645. 'MySQL': {
  1646. 'mysql.allow_local_infile': 'On',
  1647. 'mysql.allow_persistent': 'On',
  1648. 'mysql.cache_size': '2000',
  1649. 'mysql.max_persistent': -1,
  1650. 'mysql.max_links': -1,
  1651. 'mysql.connect_timeout': 60,
  1652. 'mysql.trace_mode': 'Off'
  1653. },
  1654. 'MySQLi': {
  1655. 'mysqli.max_persistent': -1,
  1656. 'mysqli.allow_persistent': 'On',
  1657. 'mysqli.max_links': -1,
  1658. 'mysqli.cache_size': 2000,
  1659. 'mysqli.default_port': 3306,
  1660. 'mysqli.reconnect': 'Off'
  1661. },
  1662. 'mysqlnd': {
  1663. 'mysqlnd.collect_statistics': 'On',
  1664. 'mysqlnd.collect_memory_statistics': 'Off'
  1665. },
  1666. 'PostgreSQL': {
  1667. 'pgsql.allow_persistent': 'On',
  1668. 'pgsql.auto_reset_persistent': 'Off',
  1669. 'pgsql.max_persistent': -1,
  1670. 'pgsql.max_links': -1,
  1671. 'pgsql.ignore_notice': 0,
  1672. 'pgsql.log_notice': 0
  1673. },
  1674. 'Sybase-CT': {
  1675. 'sybct.allow_persistent': 'On',
  1676. 'sybct.max_persistent': -1,
  1677. 'sybct.max_links': -1,
  1678. 'sybct.min_server_severity': 10,
  1679. 'sybct.min_client_severity': 10
  1680. },
  1681. 'bcmath': {
  1682. 'bcmath.scale': 0
  1683. },
  1684. 'Session': {
  1685. 'session.save_handler': 'files',
  1686. 'session.use_strict_mode': 0,
  1687. 'session.use_cookies': 1,
  1688. 'session.use_only_cookies': 1,
  1689. 'session.name': 'PHPSESSID',
  1690. 'session.auto_start': 0,
  1691. 'session.cookie_lifetime': 0,
  1692. 'session.cookie_path': '/',
  1693. 'session.serialize_handler': 'php',
  1694. 'session.gc_probability': 0,
  1695. 'session.gc_divisor': 1000,
  1696. 'session.gc_maxlifetime': 1440,
  1697. 'session.bug_compat_42': 'Off',
  1698. 'session.bug_compat_warn': 'Off',
  1699. 'session.cache_limiter': 'nocache',
  1700. 'session.cache_expire': '180',
  1701. 'session.use_trans_sid': 0,
  1702. 'session.hash_function': 0,
  1703. 'session.hash_bits_per_character': 5,
  1704. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  1705. },
  1706. 'MSSQL': {
  1707. 'mssql.allow_persistent': 'On',
  1708. 'mssql.max_persistent': -1,
  1709. 'mssql.max_links': -1,
  1710. 'mssql.min_error_severity': 10,
  1711. 'mssql.min_message_severity': 10,
  1712. 'mssql.compatibility_mode': 'Off',
  1713. 'mssql.secure_connection': 'Off'
  1714. },
  1715. 'Tidy': {
  1716. 'tidy.clean_output': 'Off'
  1717. },
  1718. 'soap': {
  1719. 'soap.wsdl_cache_enabled': 1,
  1720. 'soap.wsdl_cache_dir': '"/tmp"',
  1721. 'soap.wsdl_cache_ttl': 86400,
  1722. 'soap.wsdl_cache_limit': 5
  1723. },
  1724. 'ldap': {
  1725. 'ldap.max_links': -1
  1726. },
  1727. },
  1728. },
  1729. }, merge=True) %}
  1730. {%- else %}
  1731. {%- set php = salt['pillar.get']('php:ng', {
  1732. 'lookup': salt['grains.filter_by']({
  1733. 'Debian': {
  1734. 'pkgs': {
  1735. 'adodb': 'php5-adodb',
  1736. 'apache2': 'libapache2-mod-php5',
  1737. 'apc': 'php-apc',
  1738. 'apcu': 'php5-apcu',
  1739. 'bcmath': 'php5',
  1740. 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev'],
  1741. 'cache-lite': 'php-cache-lite',
  1742. 'cgi': 'php5-cgi',
  1743. 'cli': 'php5-cli',
  1744. 'console-table': 'php-console-table',
  1745. 'composer_bin': 'composer',
  1746. 'curl': 'php5-curl',
  1747. 'dev': ['php5-dev','build-essential'],
  1748. 'ext_conf_path': '/etc/php5/mods-available',
  1749. 'fpm': 'php5-fpm',
  1750. 'gd': 'php5-gd',
  1751. 'gearman': 'php5-gearman',
  1752. 'geoip': 'php5-geoip',
  1753. 'geshi': 'php-geshi',
  1754. 'gettext': 'php-gettext',
  1755. 'gmp': 'php5-gmp',
  1756. 'hhvm': 'hhvm',
  1757. 'imagick': 'php5-imagick',
  1758. 'imap': 'php5-imap',
  1759. 'intl': 'php5-intl',
  1760. 'json': 'php5-json',
  1761. 'ldap': 'php5-ldap',
  1762. 'local_bin': '/usr/local/bin',
  1763. 'mbstring': 'php5',
  1764. 'mcrypt': 'php5-mcrypt',
  1765. 'mdb2': 'php-mdb2',
  1766. 'mdb2-driver-mysql': 'php-mdb2-driver-mysql',
  1767. 'mdb2-driver-pgsql': 'php-mdb2-driver-pgsql',
  1768. 'memcache': 'php5-memcache',
  1769. 'memcached': 'php5-memcached',
  1770. 'mysql': 'php5-mysql',
  1771. 'mysqlnd': 'php5-mysqlnd',
  1772. 'net4': 'php-net-ipv4',
  1773. 'net6': 'php-net-ipv6',
  1774. 'oauth': 'php5-oauth',
  1775. 'opcache': 'php5',
  1776. 'pear': 'php-pear',
  1777. 'pgsql': 'php5-pgsql',
  1778. 'php': 'php5',
  1779. 'phpenmod_command': 'php5enmod',
  1780. 'pspell': 'php5-pspell',
  1781. 'redis': 'php5-redis',
  1782. 'seclib': 'php-seclib',
  1783. 'snmp': 'php5-snmp',
  1784. 'soap': 'php-soap',
  1785. 'sqlite': 'php5-sqlite',
  1786. 'ssh2': 'php5-ssh2',
  1787. 'suhosin5_ext': 'suhosin.so',
  1788. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  1789. 'suhosin7_ext': 'suhosin7.so',
  1790. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  1791. 'svn': 'php5-svn',
  1792. 'sybase': 'php5-sybase',
  1793. 'tcpdf': 'php-tcpdf',
  1794. 'temp_dir': '/tmp',
  1795. 'tidy': 'php5-tidy',
  1796. 'uuid': 'php-uuid',
  1797. 'xcache': 'php5-xcache',
  1798. 'xdebug': 'php5-xdebug',
  1799. 'xml': 'php5',
  1800. 'xsl': 'php5-xsl',
  1801. 'zip': 'php5',
  1802. },
  1803. 'fpm': {
  1804. 'conf': '/etc/php5/fpm/php-fpm.conf',
  1805. 'ini': '/etc/php5/fpm/php.ini',
  1806. 'pools': '/etc/php5/fpm/pool.d',
  1807. 'service': 'php5-fpm',
  1808. 'defaults': odict([
  1809. ('global', odict([
  1810. ('pid', '/var/run/php5-fpm.pid'),
  1811. ('error_log', '/var/log/php5-fpm.log'),
  1812. ])),
  1813. ('include', '/etc/php5/fpm/pool.d/*.conf'),
  1814. ]),
  1815. },
  1816. 'hhvm': {
  1817. 'conf': '/etc/hhvm/server.ini',
  1818. 'ini': '/etc/hhvm/php.ini',
  1819. 'service': 'hhvm',
  1820. 'defaults': {},
  1821. 'server': odict([
  1822. ('pid', '/var/run/hhvm/pid'),
  1823. ('hhvm.server.port', '9000'),
  1824. ('hhvm.server.type', 'fastcgi'),
  1825. ('hhvm.server.default_document', 'index.php'),
  1826. ('hhvm.log.use_log_file', 'true'),
  1827. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  1828. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  1829. ]),
  1830. 'php': odict([
  1831. ('session.save_handler', 'files'),
  1832. ('session.save_path', '/var/lib/hhvm/sessions'),
  1833. ('session.gc_maxlifetime', '1440'),
  1834. ('hhvm.log.level', 'Warning'),
  1835. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  1836. ('hhvm.log.runtime_error_reporting_level', '8191'),
  1837. ('hhvm.mysql.typed_results', 'false'),
  1838. ]),
  1839. },
  1840. 'cli': {
  1841. 'ini': '/etc/php5/cli/php.ini',
  1842. },
  1843. 'apache2': {
  1844. 'ini': '/etc/php5/apache2/php.ini',
  1845. },
  1846. 'xcache': {
  1847. 'ini': '/etc/php5/mods-available/xcache.ini',
  1848. 'defaults': {},
  1849. },
  1850. },
  1851. 'RedHat': {
  1852. 'pkgs': {
  1853. 'adodb': 'php-adodb',
  1854. 'apc': 'php-pecl-apc',
  1855. 'apcu': 'php-pecl-apcu',
  1856. 'bcmath': 'php-bcmath',
  1857. 'build_pkgs': ['openssl-devel', 'gcc'],
  1858. 'cache-lite': 'php-pear-Cache-Lite',
  1859. 'cgi': 'php-cgi',
  1860. 'cli': 'php-cli',
  1861. 'composer': 'composer',
  1862. 'composer_bin': 'composer',
  1863. 'console-table': 'php-pear-Console-Table',
  1864. 'curl': ['php-common', 'curl'],
  1865. 'dev': 'php-devel',
  1866. 'ext_conf_path': '/etc/php.d',
  1867. 'fpm': 'php-fpm',
  1868. 'gd': 'php-gd',
  1869. 'geoip': 'php-pecl-geoip',
  1870. 'geshi': 'php-geshi',
  1871. 'gettext': 'php-php-gettext',
  1872. 'http': 'php-pecl-http',
  1873. 'imagick': 'php-pecl-imagick',
  1874. 'imap': 'php-imap',
  1875. 'intl': 'php-intl',
  1876. 'json': 'php-common',
  1877. 'ldap': 'php-ldap',
  1878. 'local_bin': '/usr/local/bin',
  1879. 'mbstring': 'php-mbstring',
  1880. 'mcrypt': 'php-mcrypt',
  1881. 'memcache': 'php-pecl-memcache',
  1882. 'memcached': 'php-pecl-memcached',
  1883. 'mysql': 'php-mysql',
  1884. 'mysqlnd': 'php-mysqlnd',
  1885. 'net4': 'php-pear-Net-IPv4',
  1886. 'oauth': 'php-pecl-oauth',
  1887. 'opcache': 'php-pecl-zendopcache',
  1888. 'pear': 'php-pear',
  1889. 'pgsql': 'php-pgsql',
  1890. 'php': 'php',
  1891. 'pspell': 'php-pspell',
  1892. 'redis': 'php-pecl-redis',
  1893. 'seclib': 'php-phpseclib',
  1894. 'snmp': 'php-snmp',
  1895. 'soap': 'php-soap',
  1896. 'sqlite': 'php-pdo',
  1897. 'ssh2': 'php-pecl-ssh2',
  1898. 'suhosin5_ext': 'suhosin.so',
  1899. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  1900. 'suhosin7_ext': 'suhosin7.so',
  1901. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  1902. 'tcpdf': 'php-tcpdf',
  1903. 'temp_dir': '/tmp',
  1904. 'tidy': 'php-tidy',
  1905. 'uuid': 'php-pecl-uuid',
  1906. 'xcache': 'php-xcache',
  1907. 'xdebug': 'php-pecl-xdebug',
  1908. 'xml': 'php-xml',
  1909. 'xsl': 'php-xml',
  1910. 'zip': 'php',
  1911. },
  1912. 'fpm': {
  1913. 'conf': '/etc/php-fpm.conf',
  1914. 'ini': '/etc/php.ini',
  1915. 'pools': '/etc/php-fpm.d',
  1916. 'service': 'php-fpm',
  1917. 'defaults': {
  1918. 'global': {
  1919. 'pid': '/var/run/php-fpm/php-fpm.pid',
  1920. 'error_log': '/var/log/php-fpm/error.log',
  1921. },
  1922. 'include': '/etc/php-fpm.d/*.conf',
  1923. },
  1924. },
  1925. 'cli': {
  1926. 'ini': '/etc/php.ini',
  1927. },
  1928. 'xcache': {
  1929. 'ini': '/etc/php.d/xcache.ini',
  1930. },
  1931. },
  1932. 'Suse': {
  1933. 'pkgs': {
  1934. 'adodb': 'php5-dba',
  1935. 'apache2': 'apache2-mod_php5',
  1936. 'cli': 'php5',
  1937. 'curl': 'php5-curl',
  1938. 'fpm': 'php5-fpm',
  1939. 'gd': 'php5-gd',
  1940. 'imap': 'php5-imap',
  1941. 'intl': 'php5-intl',
  1942. 'json': 'php5-json',
  1943. 'ldap': 'php5-ldap',
  1944. 'mbstring': 'php5-mbstring',
  1945. 'mcrypt': 'php5-mcrypt',
  1946. 'mysql': 'php5-mysql',
  1947. 'oauth': 'php5-oauth',
  1948. 'pear': 'php5-pear',
  1949. 'pgsql': 'php5-pgsql',
  1950. 'php': 'php5',
  1951. 'snmp': 'php5-snmp',
  1952. 'soap': 'php5-soap',
  1953. 'sqlite': 'php5-sqlite',
  1954. 'suhosin': 'php5-suhosin',
  1955. 'xml': ['php5-xmlreader','php5-xmlwriter','php5-xmlrpc'],
  1956. 'zip': 'php5-zip',
  1957. },
  1958. 'fpm': {
  1959. 'conf': '/etc/php-fpm.conf',
  1960. 'ini': '/etc/php.ini',
  1961. 'pools': '/etc/php-fpm.d',
  1962. 'service': 'php-fpm',
  1963. 'defaults': {
  1964. 'global': {
  1965. 'pid': '/var/run/php-fpm/php-fpm.pid',
  1966. 'error_log': '/var/log/php-fpm/error.log',
  1967. },
  1968. 'include': '/etc/php-fpm.d/*.conf',
  1969. },
  1970. },
  1971. 'cli': {
  1972. 'ini': '/etc/php.ini',
  1973. },
  1974. },
  1975. 'Arch': {
  1976. 'pkgs': {
  1977. 'apc': 'php-apcu',
  1978. 'apcu': 'php-apcu-bc',
  1979. 'cgi': 'php-cgi',
  1980. 'cli': 'php',
  1981. 'composer_bin': 'composer',
  1982. 'curl': 'curl',
  1983. 'fpm': 'php-fpm',
  1984. 'gd': 'php-gd',
  1985. 'geoip': 'php-geoip',
  1986. 'imap': 'php-imap',
  1987. 'intl': 'php-intl',
  1988. 'local_bin': '/usr/local/bin',
  1989. 'mcrypt': 'php-mcrypt',
  1990. 'memcache': 'php-memcache',
  1991. 'memcached': 'php-memcached',
  1992. 'pgsql': 'php-pgsql',
  1993. 'php': 'php',
  1994. 'pspell': 'php-pspell',
  1995. 'snmp': 'php-snmp',
  1996. 'sqlite': 'php-sqlite',
  1997. 'temp_dir': '/tmp',
  1998. 'tidy': 'php-tidy',
  1999. 'xcache': 'php-xcache',
  2000. 'xdebug': 'xdebug',
  2001. 'xsl': 'php-xsl',
  2002. },
  2003. 'fpm': {
  2004. 'conf': '/etc/php/php-fpm.conf',
  2005. 'ini': '/etc/php/php.ini',
  2006. 'pools': '/etc/php/fpm.d',
  2007. 'service': 'php-fpm',
  2008. 'defaults': {
  2009. 'global': {
  2010. 'pid': '/run/php-fpm/php-fpm.pid',
  2011. 'error_log': 'log/php-fpm.log',
  2012. },
  2013. 'include': '/etc/php/fpm.d/*.conf',
  2014. },
  2015. },
  2016. 'cli': {
  2017. 'ini': '/etc/php/php-cli.ini',
  2018. },
  2019. 'xcache': {
  2020. 'ini': '/etc/php/conf.d/xcache.ini',
  2021. },
  2022. },
  2023. }),
  2024. 'fpm': {
  2025. 'service': {
  2026. 'enabled': True,
  2027. 'opts': {},
  2028. },
  2029. 'config': {
  2030. 'ini': {
  2031. 'opts': {},
  2032. 'settings': {},
  2033. },
  2034. 'conf': {
  2035. 'opts': {},
  2036. 'settings': {},
  2037. },
  2038. },
  2039. 'pools': {
  2040. 'default.conf': {
  2041. 'enabled': False,
  2042. 'opts': {},
  2043. },
  2044. },
  2045. },
  2046. 'hhvm': {
  2047. 'service': {
  2048. 'enabled': True,
  2049. 'opts': {},
  2050. },
  2051. 'config': {
  2052. 'server': {
  2053. 'opts': {},
  2054. 'settings': {},
  2055. },
  2056. 'php': {
  2057. 'opts': {},
  2058. 'settings': {},
  2059. },
  2060. },
  2061. },
  2062. 'cli': {
  2063. 'ini': {
  2064. 'opts': {},
  2065. 'settings': {},
  2066. }
  2067. },
  2068. 'apache2': {
  2069. 'ini': {
  2070. 'opts': {},
  2071. 'settings': {},
  2072. }
  2073. },
  2074. 'xcache': {
  2075. 'ini': {
  2076. 'defaults': {
  2077. 'xcache-common': {
  2078. 'extension': 'xcache.so',
  2079. },
  2080. 'xcache.admin': {
  2081. 'xcache.admin.enable_auth': 'On',
  2082. },
  2083. 'xcache': {
  2084. 'xcache.shm_scheme': '"mmap"',
  2085. 'xcache.size': '60M',
  2086. 'xcache.count': '1',
  2087. 'xcache.slots': '8K',
  2088. 'xcache.ttl': '0',
  2089. 'xcache.gc_interval': '0',
  2090. 'xcache.var_size': '4M',
  2091. 'xcache.var_count': '1',
  2092. 'xcache.var_slots': '8K',
  2093. 'xcache.var_ttl': '0',
  2094. 'xcache.var_maxttl': '0',
  2095. 'xcache.var_gc_interval': '300',
  2096. 'xcache.var_namespace_mode': '0',
  2097. 'xcache.var_namespace': '""',
  2098. 'xcache.readonly_protection': 'Off',
  2099. 'xcache.mmap_path': '"/dev/zero"',
  2100. 'xcache.coredump_directory': '""',
  2101. 'xcache.coredump_type': '0',
  2102. 'xcache.disable_on_crash': 'Off',
  2103. 'xcache.experimental': 'Off',
  2104. 'xcache.cacher': 'On',
  2105. 'xcache.stat': 'On',
  2106. 'xcache.optimizer': 'Off',
  2107. },
  2108. 'xcache.coverager': {
  2109. 'xcache.coverager': 'Off',
  2110. 'xcache.coverager_autostart': 'On',
  2111. 'xcache.coveragedump_directory': '""',
  2112. },
  2113. },
  2114. 'opts': {},
  2115. 'settings': {},
  2116. }
  2117. },
  2118. 'ini': {
  2119. 'defaults': {
  2120. 'PHP': {
  2121. 'engine': 'On',
  2122. 'allow_url_fopen': 'On',
  2123. 'allow_url_include': 'Off',
  2124. 'asp_tags': 'Off',
  2125. 'auto_globals_jit': 'On',
  2126. 'default_mimetype': '"text/html"',
  2127. 'default_socket_timeout': 60,
  2128. 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',
  2129. 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
  2130. 'pcntl_sigprocmask','pcntl_sigwaitinfo','pcntl_sigtimedwait','pcntl_exec','pcntl_getpriority','pcntl_setpriority'],
  2131. 'display_errors': 'Off',
  2132. 'display_startup_errors': 'Off',
  2133. 'enable_dl': 'Off',
  2134. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  2135. 'expose_php': 'On',
  2136. 'file_uploads': 'On',
  2137. 'html_errors': 'On',
  2138. 'ignore_repeated_errors': 'Off',
  2139. 'ignore_repeated_source': 'Off',
  2140. 'implicit_flush': 'Off',
  2141. 'log_errors': 'On',
  2142. 'log_errors_max_len': 1024,
  2143. 'max_execution_time': 30,
  2144. 'max_file_uploads': 20,
  2145. 'max_input_nesting_level': 64,
  2146. 'max_input_time': 60,
  2147. 'max_input_vars': 1000,
  2148. 'memory_limit': '128M',
  2149. 'output_buffering': 4096,
  2150. 'post_max_size': '8M',
  2151. 'precision': 14,
  2152. 'register_argc_argv': 'Off',
  2153. 'report_memleaks': 'On',
  2154. 'request_order': 'GP',
  2155. 'serialize_precision': 17,
  2156. 'short_open_tag': 'Off',
  2157. 'track_errors': 'Off',
  2158. 'upload_max_filesize': '2M',
  2159. 'variables_order': 'GPCS',
  2160. 'zend.enable_gc': 'On',
  2161. 'zlib.output_compression': 'Off',
  2162. },
  2163. 'CLI Server': {
  2164. 'cli_server.color': 'On'
  2165. },
  2166. 'Date': {
  2167. 'date.timezone': 'America/New_York'
  2168. },
  2169. 'Pdo_mysql': {
  2170. 'pdo_mysql.cache_size': 2000
  2171. },
  2172. 'mail function': {
  2173. 'SMTP': 'localhost',
  2174. 'mail.add_x_header': 'On'
  2175. },
  2176. 'SQL': {
  2177. 'sql.safe_mode': 'Off'
  2178. },
  2179. 'ODBC': {
  2180. 'odbc.allow_persistent': 'On',
  2181. 'odbc.check_persistent': 'On',
  2182. 'odbc.max_persistent': '-1',
  2183. 'odbc.max_links': '-1',
  2184. 'odbc.defaultlrl': 4096,
  2185. 'odbc.defaultbinmode': 1
  2186. },
  2187. 'Interbase': {
  2188. 'ibase.allow_persistent': 1,
  2189. 'ibase.max_persistent': -1,
  2190. 'ibase.max_links': -1,
  2191. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  2192. 'ibase.dateformat': '"%Y-%m-%d"',
  2193. 'ibase.timeformat': '"%H:%M:%S"'
  2194. },
  2195. 'MySQL': {
  2196. 'mysql.allow_local_infile': 'On',
  2197. 'mysql.allow_persistent': 'On',
  2198. 'mysql.cache_size': '2000',
  2199. 'mysql.max_persistent': -1,
  2200. 'mysql.max_links': -1,
  2201. 'mysql.connect_timeout': 60,
  2202. 'mysql.trace_mode': 'Off'
  2203. },
  2204. 'MySQLi': {
  2205. 'mysqli.max_persistent': -1,
  2206. 'mysqli.allow_persistent': 'On',
  2207. 'mysqli.max_links': -1,
  2208. 'mysqli.cache_size': 2000,
  2209. 'mysqli.default_port': 3306,
  2210. 'mysqli.reconnect': 'Off'
  2211. },
  2212. 'mysqlnd': {
  2213. 'mysqlnd.collect_statistics': 'On',
  2214. 'mysqlnd.collect_memory_statistics': 'Off'
  2215. },
  2216. 'PostgreSQL': {
  2217. 'pgsql.allow_persistent': 'On',
  2218. 'pgsql.auto_reset_persistent': 'Off',
  2219. 'pgsql.max_persistent': -1,
  2220. 'pgsql.max_links': -1,
  2221. 'pgsql.ignore_notice': 0,
  2222. 'pgsql.log_notice': 0
  2223. },
  2224. 'Sybase-CT': {
  2225. 'sybct.allow_persistent': 'On',
  2226. 'sybct.max_persistent': -1,
  2227. 'sybct.max_links': -1,
  2228. 'sybct.min_server_severity': 10,
  2229. 'sybct.min_client_severity': 10
  2230. },
  2231. 'bcmath': {
  2232. 'bcmath.scale': 0
  2233. },
  2234. 'Session': {
  2235. 'session.save_handler': 'files',
  2236. 'session.use_strict_mode': 0,
  2237. 'session.use_cookies': 1,
  2238. 'session.use_only_cookies': 1,
  2239. 'session.name': 'PHPSESSID',
  2240. 'session.auto_start': 0,
  2241. 'session.cookie_lifetime': 0,
  2242. 'session.cookie_path': '/',
  2243. 'session.serialize_handler': 'php',
  2244. 'session.gc_probability': 0,
  2245. 'session.gc_divisor': 1000,
  2246. 'session.gc_maxlifetime': 1440,
  2247. 'session.bug_compat_42': 'Off',
  2248. 'session.bug_compat_warn': 'Off',
  2249. 'session.cache_limiter': 'nocache',
  2250. 'session.cache_expire': '180',
  2251. 'session.use_trans_sid': 0,
  2252. 'session.hash_function': 0,
  2253. 'session.hash_bits_per_character': 5,
  2254. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  2255. },
  2256. 'MSSQL': {
  2257. 'mssql.allow_persistent': 'On',
  2258. 'mssql.max_persistent': -1,
  2259. 'mssql.max_links': -1,
  2260. 'mssql.min_error_severity': 10,
  2261. 'mssql.min_message_severity': 10,
  2262. 'mssql.compatibility_mode': 'Off',
  2263. 'mssql.secure_connection': 'Off'
  2264. },
  2265. 'Tidy': {
  2266. 'tidy.clean_output': 'Off'
  2267. },
  2268. 'soap': {
  2269. 'soap.wsdl_cache_enabled': 1,
  2270. 'soap.wsdl_cache_dir': '"/tmp"',
  2271. 'soap.wsdl_cache_ttl': 86400,
  2272. 'soap.wsdl_cache_limit': 5
  2273. },
  2274. 'ldap': {
  2275. 'ldap.max_links': -1
  2276. },
  2277. },
  2278. },
  2279. }, merge=True) %}
  2280. {%- endif %}