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.

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