Saltstack Official PHP Formula
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
fix(map.jinja): fix `salt-lint` errors ```bash Examining php/map.jinja of type state [204] Lines should be no longer that 160 chars php/map.jinja:25 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:191 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:192 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:520 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:521 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:896 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:897 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1270 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1271 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1644 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1645 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2035 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2036 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2206 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:2375 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2376 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', ```
5 anos atrás
fix(map.jinja): fix `salt-lint` errors ```bash Examining php/map.jinja of type state [204] Lines should be no longer that 160 chars php/map.jinja:25 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:191 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:192 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:520 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:521 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:896 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:897 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1270 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1271 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1644 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1645 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2035 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2036 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2206 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:2375 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2376 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', ```
5 anos atrás
fix(map.jinja): fix `salt-lint` errors ```bash Examining php/map.jinja of type state [204] Lines should be no longer that 160 chars php/map.jinja:25 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:191 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:192 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:520 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:521 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:896 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:897 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1270 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1271 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1644 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1645 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2035 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2036 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2206 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:2375 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2376 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', ```
5 anos atrás
fix(map.jinja): fix `salt-lint` errors ```bash Examining php/map.jinja of type state [204] Lines should be no longer that 160 chars php/map.jinja:25 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:191 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:192 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:520 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:521 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:896 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:897 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1270 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1271 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1644 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1645 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2035 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2036 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2206 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:2375 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2376 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', ```
5 anos atrás
fix(map.jinja): fix `salt-lint` errors ```bash Examining php/map.jinja of type state [204] Lines should be no longer that 160 chars php/map.jinja:25 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:191 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:192 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:520 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:521 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:896 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:897 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1270 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1271 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1644 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1645 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2035 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2036 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2206 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:2375 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2376 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', ```
5 anos atrás
fix(map.jinja): fix `salt-lint` errors ```bash Examining php/map.jinja of type state [204] Lines should be no longer that 160 chars php/map.jinja:25 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:191 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:192 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:520 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:521 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:896 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:897 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1270 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1271 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1644 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1645 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2035 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2036 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2206 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:2375 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2376 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', ```
5 anos atrás
fix(map.jinja): fix `salt-lint` errors ```bash Examining php/map.jinja of type state [204] Lines should be no longer that 160 chars php/map.jinja:25 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:191 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:192 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:520 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:521 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:896 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:897 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1270 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1271 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1644 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1645 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2035 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2036 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2206 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:2375 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2376 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', ```
5 anos atrás
fix(map.jinja): fix `salt-lint` errors ```bash Examining php/map.jinja of type state [204] Lines should be no longer that 160 chars php/map.jinja:25 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:191 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:192 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:520 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:521 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:896 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:897 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1270 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1271 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1644 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1645 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2035 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2036 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2206 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:2375 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2376 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', ```
5 anos atrás
fix(map.jinja): fix `salt-lint` errors ```bash Examining php/map.jinja of type state [204] Lines should be no longer that 160 chars php/map.jinja:25 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:191 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:192 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:520 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:521 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:896 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:897 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1270 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1271 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:1644 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:1645 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2035 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2036 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', [204] Lines should be no longer that 160 chars php/map.jinja:2206 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'], [204] Lines should be no longer that 160 chars php/map.jinja:2375 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled', [204] Lines should be no longer that 160 chars php/map.jinja:2376 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror', ```
5 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 anos atrás
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401
  1. # -*- coding: utf-8 -*-
  2. # vim: ft=jinja
  3. {% set pillar_php_version = salt['pillar.get']('php:version', '7.0') %}
  4. {%- if pillar_php_version is iterable and pillar_php_version is not string %}
  5. {%- set php_version = pillar_php_version[0]|string %}
  6. {% else %}
  7. {%- set php_version = pillar_php_version|string %}
  8. {% endif %}
  9. {%- set freebsd_php_version = php_version.replace('.', '') %}
  10. {%- if salt['grains.get']('os') == "Ubuntu" %}
  11. {%- set use_external_repo = salt['pillar.get']('php:use_external_repo', False) %}
  12. {%- if use_external_repo %}
  13. {%- if salt['grains.get']('osrelease')|string >= '16.04' %}
  14. {%- set php = salt['pillar.get']('php', {
  15. 'lookup': salt['grains.filter_by']({
  16. 'Debian': {
  17. 'pkgs': {
  18. 'adodb': 'libphp-adodb',
  19. 'apache2': 'libapache2-mod-php' + php_version,
  20. 'apc': 'php-apcu',
  21. 'apcu': 'php-apcu-bc',
  22. 'bcmath': 'php' + php_version + '-bcmath',
  23. 'build_pkgs': [
  24. 'libssl-dev',
  25. 'libcurl4-openssl-dev',
  26. 'pkg-config',
  27. 'libsslcommon2-dev',
  28. 'gcc',
  29. 'make',
  30. 'autoconf',
  31. 'libc-dev',
  32. 'pkg-config',
  33. ],
  34. 'bz2': 'php' + php_version + '-bz2',
  35. 'cache-lite': 'php-cache-lite',
  36. 'cgi': 'php' + php_version + '-cgi',
  37. 'cli': 'php' + php_version + '-cli',
  38. 'composer_bin': 'composer',
  39. 'console-table': 'php-console-table',
  40. 'curl': 'php' + php_version + '-curl',
  41. 'dba': 'php' + php_version + '-dba',
  42. 'dev': 'php' + php_version + '-dev',
  43. 'ext_conf_path': '/etc/php/' + php_version + '/mods-available',
  44. 'fpm': 'php' + php_version + '-fpm',
  45. 'gd': 'php' + php_version + '-gd',
  46. 'gearman': 'php-gearman',
  47. 'geoip': 'php-geoip',
  48. 'geshi': 'php-geshi',
  49. 'gettext': 'php' + php_version,
  50. 'gmp': 'php' + php_version + '-gmp',
  51. 'hhvm': 'hhvm',
  52. 'imagick': 'php-imagick',
  53. 'imap': 'php' + php_version + '-imap',
  54. 'intl': 'php' + php_version + '-intl',
  55. 'json': 'php' + php_version + '-json',
  56. 'ldap': 'php' + php_version + '-ldap',
  57. 'local_bin': '/usr/local/bin',
  58. 'auth-sasl': 'php-auth-sasl',
  59. 'mail': 'php-mail',
  60. 'mbstring': 'php' + php_version + '-mbstring',
  61. 'mcrypt': 'php' + php_version + '-mcrypt',
  62. 'memcache': 'php-memcache',
  63. 'memcached': 'php-memcached',
  64. 'mongo': 'php-mongo',
  65. 'mongodb': 'php-mongodb',
  66. 'mysql': 'php' + php_version + '-mysql',
  67. 'mysqlnd': 'php' + php_version + '-mysql',
  68. 'net-smtp': 'php-net-smtp',
  69. 'net4': 'php-net-ipv4',
  70. 'net6': 'php-net-ipv6',
  71. 'oauth': 'php-oauth',
  72. 'opcache': 'php' + php_version + '-opcache',
  73. 'pear': 'php-pear',
  74. 'pgsql': 'php' + php_version + '-pgsql',
  75. 'php': 'php' + php_version,
  76. 'phpenmod_command': 'phpenmod -v' + php_version,
  77. 'pspell': 'php' + php_version + '-pspell',
  78. 'readline': 'php' + php_version + '-readline',
  79. 'redis': 'php-redis',
  80. 'seclib': ['php-phpseclib', 'php-seclib'],
  81. 'snmp': 'php' + php_version + '-snmp',
  82. 'soap': 'php' + php_version + '-soap',
  83. 'ssh2': 'php-ssh2',
  84. 'sqlite': 'php' + php_version + '-sqlite3',
  85. 'suhosin5_ext': 'suhosin.so',
  86. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  87. 'suhosin7_ext': 'suhosin7.so',
  88. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  89. 'sybase': 'php' + php_version + '-sybase',
  90. 'tcpdf': 'php-tcpdf',
  91. 'temp_dir': '/tmp',
  92. 'tidy': 'php' + php_version + '-tidy',
  93. 'xdebug': 'php-xdebug',
  94. 'xml': ['php' + php_version + '-xml', 'php' + php_version + '-xmlrpc'],
  95. 'xsl': 'php' + php_version + '-xsl',
  96. 'zip': 'php' + php_version + '-zip',
  97. },
  98. 'fpm': {
  99. 'conf': '/etc/php/' + php_version + '/fpm/php-fpm.conf',
  100. 'ini': '/etc/php/' + php_version + '/fpm/php.ini',
  101. 'pools': '/etc/php/' + php_version + '/fpm/pool.d',
  102. 'service': 'php' + php_version + '-fpm',
  103. 'user': 'root',
  104. 'group': 'root',
  105. 'defaults': odict([
  106. ('global', odict([
  107. ('pid', '/var/run/php' + php_version + '-fpm.pid'),
  108. ('error_log', '/var/log/php' + php_version + '-fpm.log'),
  109. ])),
  110. ('include', '/etc/php/' + php_version + '/fpm/pool.d/*.conf'),
  111. ]),
  112. },
  113. 'hhvm': {
  114. 'conf': '/etc/hhvm/server.ini',
  115. 'ini': '/etc/hhvm/php.ini',
  116. 'service': 'hhvm',
  117. 'defaults': {},
  118. 'server': odict([
  119. ('pid', '/var/run/hhvm/pid'),
  120. ('hhvm.server.port', '9000'),
  121. ('hhvm.server.type', 'fastcgi'),
  122. ('hhvm.server.default_document', 'index.php'),
  123. ('hhvm.log.use_log_file', 'true'),
  124. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  125. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  126. ]),
  127. 'php': odict([
  128. ('session.save_handler', 'files'),
  129. ('session.save_path', '/var/lib/hhvm/sessions'),
  130. ('session.gc_maxlifetime', '1440'),
  131. ('hhvm.log.level', 'Warning'),
  132. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  133. ('hhvm.log.runtime_error_reporting_level', '8191'),
  134. ('hhvm.mysql.typed_results', 'false'),
  135. ]),
  136. },
  137. 'cli': {
  138. 'ini': '/etc/php/' + php_version + '/cli/php.ini',
  139. },
  140. 'apache2': {
  141. 'ini': '/etc/php/' + php_version + '/apache2/php.ini',
  142. },
  143. },
  144. }),
  145. 'fpm': {
  146. 'service': {
  147. 'enabled': True,
  148. 'opts': {},
  149. },
  150. 'config': {
  151. 'ini': {
  152. 'opts': {},
  153. 'settings': {},
  154. },
  155. 'conf': {
  156. 'opts': {},
  157. 'settings': {},
  158. },
  159. },
  160. 'pools': {},
  161. },
  162. 'hhvm': {
  163. 'service': {
  164. 'enabled': True,
  165. 'opts': {},
  166. },
  167. 'config': {
  168. 'server': {
  169. 'opts': {},
  170. 'settings': {},
  171. },
  172. 'php': {
  173. 'opts': {},
  174. 'settings': {},
  175. },
  176. },
  177. },
  178. 'cli': {
  179. 'ini': {
  180. 'opts': {},
  181. 'settings': {},
  182. }
  183. },
  184. 'apache2': {
  185. 'ini': {
  186. 'opts': {},
  187. 'settings': {},
  188. }
  189. },
  190. 'ini': {
  191. 'defaults': {
  192. 'PHP': {
  193. 'allow_url_fopen': 'On',
  194. 'allow_url_include': 'Off',
  195. 'asp_tags': 'Off',
  196. 'auto_globals_jit': 'On',
  197. 'default_mimetype': '"text/html"',
  198. 'default_socket_timeout': 60,
  199. 'disable_functions': [
  200. 'pcntl_alarm',
  201. 'pcntl_fork',
  202. 'pcntl_waitpid',
  203. 'pcntl_wait',
  204. 'pcntl_wifexited',
  205. 'pcntl_wifstopped',
  206. 'pcntl_wifsignaled',
  207. 'pcntl_wexitstatus',
  208. 'pcntl_wtermsig',
  209. 'pcntl_wstopsig',
  210. 'pcntl_signal',
  211. 'pcntl_signal_dispatch',
  212. 'pcntl_get_last_error',
  213. 'pcntl_strerror',
  214. 'pcntl_sigprocmask',
  215. 'pcntl_sigwaitinfo',
  216. 'pcntl_sigtimedwait',
  217. 'pcntl_exec',
  218. 'pcntl_getpriority',
  219. 'pcntl_setpriority',
  220. ],
  221. 'display_errors': 'Off',
  222. 'display_startup_errors': 'Off',
  223. 'enable_dl': 'Off',
  224. 'engine': 'On',
  225. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  226. 'expose_php': 'On',
  227. 'file_uploads': 'On',
  228. 'html_errors': 'On',
  229. 'ignore_repeated_errors': 'Off',
  230. 'ignore_repeated_source': 'Off',
  231. 'implicit_flush': 'Off',
  232. 'log_errors': 'On',
  233. 'log_errors_max_len': 1024,
  234. 'max_execution_time': 30,
  235. 'max_file_uploads': 20,
  236. 'max_input_nesting_level': 64,
  237. 'max_input_time': 60,
  238. 'max_input_vars': 1000,
  239. 'memory_limit': '128M',
  240. 'output_buffering': 4096,
  241. 'post_max_size': '8M',
  242. 'precision': 14,
  243. 'register_argc_argv': 'Off',
  244. 'report_memleaks': 'On',
  245. 'request_order': 'GP',
  246. 'serialize_precision': 17,
  247. 'short_open_tag': 'Off',
  248. 'track_errors': 'Off',
  249. 'upload_max_filesize': '2M',
  250. 'variables_order': 'GPCS',
  251. 'zend.enable_gc': 'On',
  252. 'zlib.output_compression': 'Off',
  253. },
  254. 'CLI Server': {
  255. 'cli_server.color': 'On'
  256. },
  257. 'Date': {
  258. 'date.timezone': 'America/New_York'
  259. },
  260. 'Pdo_mysql': {
  261. 'pdo_mysql.cache_size': 2000
  262. },
  263. 'mail function': {
  264. 'SMTP': 'localhost',
  265. 'mail.add_x_header': 'On'
  266. },
  267. 'SQL': {
  268. 'sql.safe_mode': 'Off'
  269. },
  270. 'ODBC': {
  271. 'odbc.allow_persistent': 'On',
  272. 'odbc.check_persistent': 'On',
  273. 'odbc.max_persistent': '-1',
  274. 'odbc.max_links': '-1',
  275. 'odbc.defaultlrl': 4096,
  276. 'odbc.defaultbinmode': 1
  277. },
  278. 'Interbase': {
  279. 'ibase.allow_persistent': 1,
  280. 'ibase.max_persistent': -1,
  281. 'ibase.max_links': -1,
  282. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  283. 'ibase.dateformat': '"%Y-%m-%d"',
  284. 'ibase.timeformat': '"%H:%M:%S"'
  285. },
  286. 'MySQL': {
  287. 'mysql.allow_local_infile': 'On',
  288. 'mysql.allow_persistent': 'On',
  289. 'mysql.cache_size': '2000',
  290. 'mysql.max_persistent': -1,
  291. 'mysql.max_links': -1,
  292. 'mysql.connect_timeout': 60,
  293. 'mysql.trace_mode': 'Off'
  294. },
  295. 'MySQLi': {
  296. 'mysqli.max_persistent': -1,
  297. 'mysqli.allow_persistent': 'On',
  298. 'mysqli.max_links': -1,
  299. 'mysqli.cache_size': 2000,
  300. 'mysqli.default_port': 3306,
  301. 'mysqli.reconnect': 'Off'
  302. },
  303. 'mysqlnd': {
  304. 'mysqlnd.collect_statistics': 'On',
  305. 'mysqlnd.collect_memory_statistics': 'Off'
  306. },
  307. 'PostgreSQL': {
  308. 'pgsql.allow_persistent': 'On',
  309. 'pgsql.auto_reset_persistent': 'Off',
  310. 'pgsql.max_persistent': -1,
  311. 'pgsql.max_links': -1,
  312. 'pgsql.ignore_notice': 0,
  313. 'pgsql.log_notice': 0
  314. },
  315. 'Sybase-CT': {
  316. 'sybct.allow_persistent': 'On',
  317. 'sybct.max_persistent': -1,
  318. 'sybct.max_links': -1,
  319. 'sybct.min_server_severity': 10,
  320. 'sybct.min_client_severity': 10
  321. },
  322. 'bcmath': {
  323. 'bcmath.scale': 0
  324. },
  325. 'Session': {
  326. 'session.save_handler': 'files',
  327. 'session.use_strict_mode': 0,
  328. 'session.use_cookies': 1,
  329. 'session.use_only_cookies': 1,
  330. 'session.name': 'PHPSESSID',
  331. 'session.auto_start': 0,
  332. 'session.cookie_lifetime': 0,
  333. 'session.cookie_path': '/',
  334. 'session.serialize_handler': 'php',
  335. 'session.gc_probability': 0,
  336. 'session.gc_divisor': 1000,
  337. 'session.gc_maxlifetime': 1440,
  338. 'session.bug_compat_42': 'Off',
  339. 'session.bug_compat_warn': 'Off',
  340. 'session.cache_limiter': 'nocache',
  341. 'session.cache_expire': '180',
  342. 'session.use_trans_sid': 0,
  343. 'session.hash_function': 0,
  344. 'session.hash_bits_per_character': 5,
  345. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  346. },
  347. 'MSSQL': {
  348. 'mssql.allow_persistent': 'On',
  349. 'mssql.max_persistent': -1,
  350. 'mssql.max_links': -1,
  351. 'mssql.min_error_severity': 10,
  352. 'mssql.min_message_severity': 10,
  353. 'mssql.compatibility_mode': 'Off',
  354. 'mssql.secure_connection': 'Off'
  355. },
  356. 'Tidy': {
  357. 'tidy.clean_output': 'Off'
  358. },
  359. 'soap': {
  360. 'soap.wsdl_cache_enabled': 1,
  361. 'soap.wsdl_cache_dir': '"/tmp"',
  362. 'soap.wsdl_cache_ttl': 86400,
  363. 'soap.wsdl_cache_limit': 5
  364. },
  365. 'ldap': {
  366. 'ldap.max_links': -1
  367. },
  368. },
  369. },
  370. }, merge=True) %}
  371. {%- else %}
  372. {%- set php = salt['pillar.get']('php', {
  373. 'lookup': salt['grains.filter_by']({
  374. 'Debian': {
  375. 'pkgs': {
  376. 'adodb': 'libphp-adodb',
  377. 'apache2': 'libapache2-mod-php' + php_version,
  378. 'apc': 'php-apcu',
  379. 'apcu': 'php-apcu-bc',
  380. 'bcmath': 'php' + php_version + '-bcmath',
  381. 'bz2': 'php' + php_version + '-bz2',
  382. 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'],
  383. 'cache-lite': 'php-cache-lite',
  384. 'cgi': 'php' + php_version + '-cgi',
  385. 'cli': 'php' + php_version + '-cli',
  386. 'composer_bin': 'composer',
  387. 'console-table': 'php-console-table',
  388. 'curl': 'php' + php_version + '-curl',
  389. 'dba': 'php' + php_version + '-dba',
  390. 'dev': 'php' + php_version + '-dev',
  391. 'ext_conf_path': '/etc/php/' + php_version + '/mods-available',
  392. 'fpm': 'php' + php_version + '-fpm',
  393. 'gd': 'php' + php_version + '-gd',
  394. 'gearman': 'php-gearman',
  395. 'geoip': 'php-geoip',
  396. 'geshi': 'php-geshi',
  397. 'gettext': 'php' + php_version,
  398. 'gmp': 'php' + php_version + '-gmp',
  399. 'hhvm': 'hhvm',
  400. 'imagick': 'php-imagick',
  401. 'imap': 'php' + php_version + '-imap',
  402. 'intl': 'php' + php_version + '-intl',
  403. 'json': 'php' + php_version + '-json',
  404. 'ldap': 'php' + php_version + '-ldap',
  405. 'local_bin': '/usr/local/bin',
  406. 'auth-sasl': 'php-auth-sasl',
  407. 'mail': 'php-mail',
  408. 'mbstring': 'php' + php_version + '-mbstring',
  409. 'mcrypt': 'php' + php_version + '-mcrypt',
  410. 'memcache': 'php-memcache',
  411. 'memcached': 'php-memcached',
  412. 'mongo': 'php-mongo',
  413. 'mongodb': 'php-mongodb',
  414. 'mysql': 'php' + php_version + '-mysql',
  415. 'mysqlnd': 'php' + php_version + '-mysql',
  416. 'net-smtp': 'php-net-smtp',
  417. 'net4': 'php-net-ipv4',
  418. 'net6': 'php-net-ipv6',
  419. 'oauth': 'php-oauth',
  420. 'opcache': 'php' + php_version + '-opcache',
  421. 'pear': 'php-pear',
  422. 'pgsql': 'php' + php_version + '-pgsql',
  423. 'php': 'php' + php_version,
  424. 'phpenmod_command': 'phpenmod -v' + php_version,
  425. 'pspell': 'php' + php_version + '-pspell',
  426. 'readline': 'php' + php_version + '-readline',
  427. 'redis': 'php' + php_version + '-redis',
  428. 'seclib': 'php-seclib',
  429. 'snmp': 'php' + php_version + '-snmp',
  430. 'soap': 'php' + php_version + '-soap',
  431. 'ssh2': 'php-ssh2',
  432. 'sqlite': 'php' + php_version + '-sqlite3',
  433. 'suhosin5_ext': 'suhosin.so',
  434. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  435. 'suhosin7_ext': 'suhosin7.so',
  436. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  437. 'sybase': 'php' + php_version + '-sybase',
  438. 'tcpdf': 'php-tcpdf',
  439. 'temp_dir': '/tmp',
  440. 'tidy': 'php' + php_version + '-tidy',
  441. 'xdebug': 'php' + php_version + '-xdebug',
  442. 'xml': ['php' + php_version + '-xml', 'php' + php_version + '-xmlrpc'],
  443. 'xsl': 'php' + php_version + '-xsl',
  444. 'zip': 'php' + php_version + '-zip',
  445. },
  446. 'fpm': {
  447. 'conf': '/etc/php/' + php_version + '/fpm/php-fpm.conf',
  448. 'ini': '/etc/php/' + php_version + '/fpm/php.ini',
  449. 'pools': '/etc/php/' + php_version + '/fpm/pool.d',
  450. 'service': 'php' + php_version + '-fpm',
  451. 'user': 'root',
  452. 'group': 'root',
  453. 'defaults': odict([
  454. ('global', odict([
  455. ('pid', '/var/run/php' + php_version + '-fpm.pid'),
  456. ('error_log', '/var/log/php' + php_version + '-fpm.log'),
  457. ])),
  458. ('include', '/etc/php/' + php_version + '/fpm/pool.d/*.conf'),
  459. ]),
  460. },
  461. 'hhvm': {
  462. 'conf': '/etc/hhvm/server.ini',
  463. 'ini': '/etc/hhvm/php.ini',
  464. 'service': 'hhvm',
  465. 'defaults': {},
  466. 'server': odict([
  467. ('pid', '/var/run/hhvm/pid'),
  468. ('hhvm.server.port', '9000'),
  469. ('hhvm.server.type', 'fastcgi'),
  470. ('hhvm.server.default_document', 'index.php'),
  471. ('hhvm.log.use_log_file', 'true'),
  472. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  473. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  474. ]),
  475. 'php': odict([
  476. ('session.save_handler', 'files'),
  477. ('session.save_path', '/var/lib/hhvm/sessions'),
  478. ('session.gc_maxlifetime', '1440'),
  479. ('hhvm.log.level', 'Warning'),
  480. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  481. ('hhvm.log.runtime_error_reporting_level', '8191'),
  482. ('hhvm.mysql.typed_results', 'false'),
  483. ]),
  484. },
  485. 'cli': {
  486. 'ini': '/etc/php/' + php_version + '/cli/php.ini',
  487. },
  488. 'apache2': {
  489. 'ini': '/etc/php/' + php_version + '/apache2/php.ini',
  490. },
  491. },
  492. }),
  493. 'fpm': {
  494. 'service': {
  495. 'enabled': True,
  496. 'opts': {},
  497. },
  498. 'config': {
  499. 'ini': {
  500. 'opts': {},
  501. 'settings': {},
  502. },
  503. 'conf': {
  504. 'opts': {},
  505. 'settings': {},
  506. },
  507. },
  508. 'pools': {},
  509. },
  510. 'hhvm': {
  511. 'service': {
  512. 'enabled': True,
  513. 'opts': {},
  514. },
  515. 'config': {
  516. 'server': {
  517. 'opts': {},
  518. 'settings': {},
  519. },
  520. 'php': {
  521. 'opts': {},
  522. 'settings': {},
  523. },
  524. },
  525. },
  526. 'cli': {
  527. 'ini': {
  528. 'opts': {},
  529. 'settings': {},
  530. }
  531. },
  532. 'apache2': {
  533. 'ini': {
  534. 'opts': {},
  535. 'settings': {},
  536. }
  537. },
  538. 'ini': {
  539. 'defaults': {
  540. 'PHP': {
  541. 'allow_url_fopen': 'On',
  542. 'allow_url_include': 'Off',
  543. 'asp_tags': 'Off',
  544. 'auto_globals_jit': 'On',
  545. 'default_mimetype': '"text/html"',
  546. 'default_socket_timeout': 60,
  547. 'disable_functions': [
  548. 'pcntl_alarm',
  549. 'pcntl_fork',
  550. 'pcntl_waitpid',
  551. 'pcntl_wait',
  552. 'pcntl_wifexited',
  553. 'pcntl_wifstopped',
  554. 'pcntl_wifsignaled',
  555. 'pcntl_wexitstatus',
  556. 'pcntl_wtermsig',
  557. 'pcntl_wstopsig',
  558. 'pcntl_signal',
  559. 'pcntl_signal_dispatch',
  560. 'pcntl_get_last_error',
  561. 'pcntl_strerror',
  562. 'pcntl_sigprocmask',
  563. 'pcntl_sigwaitinfo',
  564. 'pcntl_sigtimedwait',
  565. 'pcntl_exec',
  566. 'pcntl_getpriority',
  567. 'pcntl_setpriority',
  568. ],
  569. 'display_errors': 'Off',
  570. 'display_startup_errors': 'Off',
  571. 'enable_dl': 'Off',
  572. 'engine': 'On',
  573. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  574. 'expose_php': 'On',
  575. 'file_uploads': 'On',
  576. 'html_errors': 'On',
  577. 'ignore_repeated_errors': 'Off',
  578. 'ignore_repeated_source': 'Off',
  579. 'implicit_flush': 'Off',
  580. 'log_errors': 'On',
  581. 'log_errors_max_len': 1024,
  582. 'max_execution_time': 30,
  583. 'max_file_uploads': 20,
  584. 'max_input_nesting_level': 64,
  585. 'max_input_time': 60,
  586. 'max_input_vars': 1000,
  587. 'memory_limit': '128M',
  588. 'output_buffering': 4096,
  589. 'post_max_size': '8M',
  590. 'precision': 14,
  591. 'register_argc_argv': 'Off',
  592. 'report_memleaks': 'On',
  593. 'request_order': 'GP',
  594. 'serialize_precision': 17,
  595. 'short_open_tag': 'Off',
  596. 'track_errors': 'Off',
  597. 'upload_max_filesize': '2M',
  598. 'variables_order': 'GPCS',
  599. 'zend.enable_gc': 'On',
  600. 'zlib.output_compression': 'Off',
  601. },
  602. 'CLI Server': {
  603. 'cli_server.color': 'On'
  604. },
  605. 'Date': {
  606. 'date.timezone': 'America/New_York'
  607. },
  608. 'Pdo_mysql': {
  609. 'pdo_mysql.cache_size': 2000
  610. },
  611. 'mail function': {
  612. 'SMTP': 'localhost',
  613. 'mail.add_x_header': 'On'
  614. },
  615. 'SQL': {
  616. 'sql.safe_mode': 'Off'
  617. },
  618. 'ODBC': {
  619. 'odbc.allow_persistent': 'On',
  620. 'odbc.check_persistent': 'On',
  621. 'odbc.max_persistent': '-1',
  622. 'odbc.max_links': '-1',
  623. 'odbc.defaultlrl': 4096,
  624. 'odbc.defaultbinmode': 1
  625. },
  626. 'Interbase': {
  627. 'ibase.allow_persistent': 1,
  628. 'ibase.max_persistent': -1,
  629. 'ibase.max_links': -1,
  630. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  631. 'ibase.dateformat': '"%Y-%m-%d"',
  632. 'ibase.timeformat': '"%H:%M:%S"'
  633. },
  634. 'MySQL': {
  635. 'mysql.allow_local_infile': 'On',
  636. 'mysql.allow_persistent': 'On',
  637. 'mysql.cache_size': '2000',
  638. 'mysql.max_persistent': -1,
  639. 'mysql.max_links': -1,
  640. 'mysql.connect_timeout': 60,
  641. 'mysql.trace_mode': 'Off'
  642. },
  643. 'MySQLi': {
  644. 'mysqli.max_persistent': -1,
  645. 'mysqli.allow_persistent': 'On',
  646. 'mysqli.max_links': -1,
  647. 'mysqli.cache_size': 2000,
  648. 'mysqli.default_port': 3306,
  649. 'mysqli.reconnect': 'Off'
  650. },
  651. 'mysqlnd': {
  652. 'mysqlnd.collect_statistics': 'On',
  653. 'mysqlnd.collect_memory_statistics': 'Off'
  654. },
  655. 'PostgreSQL': {
  656. 'pgsql.allow_persistent': 'On',
  657. 'pgsql.auto_reset_persistent': 'Off',
  658. 'pgsql.max_persistent': -1,
  659. 'pgsql.max_links': -1,
  660. 'pgsql.ignore_notice': 0,
  661. 'pgsql.log_notice': 0
  662. },
  663. 'Sybase-CT': {
  664. 'sybct.allow_persistent': 'On',
  665. 'sybct.max_persistent': -1,
  666. 'sybct.max_links': -1,
  667. 'sybct.min_server_severity': 10,
  668. 'sybct.min_client_severity': 10
  669. },
  670. 'bcmath': {
  671. 'bcmath.scale': 0
  672. },
  673. 'Session': {
  674. 'session.save_handler': 'files',
  675. 'session.use_strict_mode': 0,
  676. 'session.use_cookies': 1,
  677. 'session.use_only_cookies': 1,
  678. 'session.name': 'PHPSESSID',
  679. 'session.auto_start': 0,
  680. 'session.cookie_lifetime': 0,
  681. 'session.cookie_path': '/',
  682. 'session.serialize_handler': 'php',
  683. 'session.gc_probability': 0,
  684. 'session.gc_divisor': 1000,
  685. 'session.gc_maxlifetime': 1440,
  686. 'session.bug_compat_42': 'Off',
  687. 'session.bug_compat_warn': 'Off',
  688. 'session.cache_limiter': 'nocache',
  689. 'session.cache_expire': '180',
  690. 'session.use_trans_sid': 0,
  691. 'session.hash_function': 0,
  692. 'session.hash_bits_per_character': 5,
  693. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  694. },
  695. 'MSSQL': {
  696. 'mssql.allow_persistent': 'On',
  697. 'mssql.max_persistent': -1,
  698. 'mssql.max_links': -1,
  699. 'mssql.min_error_severity': 10,
  700. 'mssql.min_message_severity': 10,
  701. 'mssql.compatibility_mode': 'Off',
  702. 'mssql.secure_connection': 'Off'
  703. },
  704. 'Tidy': {
  705. 'tidy.clean_output': 'Off'
  706. },
  707. 'soap': {
  708. 'soap.wsdl_cache_enabled': 1,
  709. 'soap.wsdl_cache_dir': '"/tmp"',
  710. 'soap.wsdl_cache_ttl': 86400,
  711. 'soap.wsdl_cache_limit': 5
  712. },
  713. 'ldap': {
  714. 'ldap.max_links': -1
  715. },
  716. },
  717. },
  718. }, merge=True) %}
  719. {%- endif %}
  720. {%- else %}
  721. {%- if salt['grains.get']('osrelease')|string >= '18.04' %}
  722. {%- set php = salt['pillar.get']('php', {
  723. 'lookup': salt['grains.filter_by']({
  724. 'Ubuntu': {
  725. 'pkgs': {
  726. 'adodb': 'libphp-adodb',
  727. 'apache2': 'libapache2-mod-php',
  728. 'apc': 'php',
  729. 'apcu': 'php-apcu',
  730. 'bcmath': 'php7.2-bcmath',
  731. 'bz2': 'php7.2-bz2',
  732. 'cache-lite': 'php-cache-lite',
  733. 'cgi': 'php-cgi',
  734. 'cli': 'php-cli',
  735. 'console-table': 'php-console-table',
  736. 'composer_bin': 'composer',
  737. 'curl': 'php-curl',
  738. 'dev': 'php7.2-dev',
  739. 'dba': 'php7.2-dba',
  740. 'fpm': 'php-fpm',
  741. 'gd': 'php-gd',
  742. 'geoip': 'php-geoip',
  743. 'geshi': 'php-geshi',
  744. 'gmp': 'php-gmp',
  745. 'hhvm': 'hhvm',
  746. 'imagick': 'php-imagick',
  747. 'imap': 'php-imap',
  748. 'intl': 'php-intl',
  749. 'json': 'php-json',
  750. 'ldap': 'php-ldap',
  751. 'local_bin': '/usr/local/bin',
  752. 'auth-sasl': 'php-auth-sasl',
  753. 'mail': 'php-mail',
  754. 'mbstring': 'php-mbstring',
  755. 'mcrypt': 'php-mcrypt',
  756. 'memcache': 'php-memcache',
  757. 'memcached': 'php-memcached',
  758. 'mongodb': 'php-mongodb',
  759. 'mysql': 'php-mysql',
  760. 'mysqlnd': 'php',
  761. 'net-smtp': 'php-net-smtp',
  762. 'net4': 'php-net-ipv4',
  763. 'net6': 'php-net-ipv6',
  764. 'oauth': 'php-oauth',
  765. 'opcache': 'php7.2-opcache',
  766. 'pear': 'php-pear',
  767. 'pgsql': 'php-pgsql',
  768. 'php': 'php',
  769. 'phpenmod_command': 'phpenmod',
  770. 'pspell': 'php-pspell',
  771. 'redis': 'php-redis',
  772. 'seclib': ['php-phpseclib', 'php-seclib'],
  773. 'snmp': 'php-snmp',
  774. 'soap': 'php-soap',
  775. 'sqlite': 'php-sqlite3',
  776. 'ssh2': 'php-ssh2',
  777. 'suhosin': 'php',
  778. 'sybase': 'php-sybase',
  779. 'tcpdf': 'php-tcpdf',
  780. 'temp_dir': '/tmp',
  781. 'tidy': 'php7.2-tidy',
  782. 'xcache': 'php',
  783. 'xdebug': 'php-xdebug',
  784. 'xml': ['php-xml', 'php-xmlrpc'],
  785. 'xsl': 'php7.2-xsl',
  786. 'zip': 'php-zip',
  787. },
  788. 'fpm': {
  789. 'conf': '/etc/php/7.2/fpm/php-fpm.conf',
  790. 'ini': '/etc/php/7.2/fpm/php.ini',
  791. 'pools': '/etc/php/7.2/fpm/pool.d',
  792. 'service': 'php7.2-fpm',
  793. 'user': 'root',
  794. 'group': 'root',
  795. 'defaults': odict([
  796. ('global', odict([
  797. ('pid', '/var/run/php7.2-fpm.pid'),
  798. ('error_log', '/var/log/php7.2-fpm.log'),
  799. ])),
  800. ('include', '/etc/php/7.2/fpm/pool.d/*.conf'),
  801. ]),
  802. },
  803. 'hhvm': {
  804. 'conf': '/etc/hhvm/server.ini',
  805. 'ini': '/etc/hhvm/php.ini',
  806. 'service': 'hhvm',
  807. 'defaults': {},
  808. 'server': odict([
  809. ('pid', '/var/run/hhvm/pid'),
  810. ('hhvm.server.port', '9000'),
  811. ('hhvm.server.type', 'fastcgi'),
  812. ('hhvm.server.default_document', 'index.php'),
  813. ('hhvm.log.use_log_file', 'true'),
  814. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  815. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  816. ]),
  817. 'php': odict([
  818. ('session.save_handler', 'files'),
  819. ('session.save_path', '/var/lib/hhvm/sessions'),
  820. ('session.gc_maxlifetime', '1440'),
  821. ('hhvm.log.level', 'Warning'),
  822. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  823. ('hhvm.log.runtime_error_reporting_level', '8191'),
  824. ('hhvm.mysql.typed_results', 'false'),
  825. ]),
  826. },
  827. 'cli': {
  828. 'ini': '/etc/php/7.2/cli/php.ini',
  829. },
  830. 'apache2': {
  831. 'ini': '/etc/php/7.2/apache2/php.ini',
  832. },
  833. 'xcache': {
  834. 'ini': '/etc/php/7.2/mods-available/xcache.ini',
  835. 'defaults': {},
  836. },
  837. },
  838. }, grain="os"),
  839. 'fpm': {
  840. 'service': {
  841. 'enabled': True,
  842. 'opts': {},
  843. },
  844. 'config': {
  845. 'ini': {
  846. 'opts': {},
  847. 'settings': {},
  848. },
  849. 'conf': {
  850. 'opts': {},
  851. 'settings': {},
  852. },
  853. },
  854. 'pools': {
  855. 'default.conf': {
  856. 'enabled': False,
  857. 'opts': {},
  858. },
  859. },
  860. },
  861. 'hhvm': {
  862. 'service': {
  863. 'enabled': True,
  864. 'opts': {},
  865. },
  866. 'config': {
  867. 'server': {
  868. 'opts': {},
  869. 'settings': {},
  870. },
  871. 'php': {
  872. 'opts': {},
  873. 'settings': {},
  874. },
  875. },
  876. },
  877. 'cli': {
  878. 'ini': {
  879. 'opts': {},
  880. 'settings': {},
  881. }
  882. },
  883. 'apache2': {
  884. 'ini': {
  885. 'opts': {},
  886. 'settings': {},
  887. }
  888. },
  889. 'xcache': {
  890. 'ini': {
  891. 'defaults': {
  892. 'xcache-common': {
  893. 'extension': 'xcache.so',
  894. },
  895. 'xcache.admin': {
  896. 'xcache.admin.enable_auth': 'On',
  897. },
  898. 'xcache': {
  899. 'xcache.shm_scheme': '"mmap"',
  900. 'xcache.size': '60M',
  901. 'xcache.count': '1',
  902. 'xcache.slots': '8K',
  903. 'xcache.ttl': '0',
  904. 'xcache.gc_interval': '0',
  905. 'xcache.var_size': '4M',
  906. 'xcache.var_count': '1',
  907. 'xcache.var_slots': '8K',
  908. 'xcache.var_ttl': '0',
  909. 'xcache.var_maxttl': '0',
  910. 'xcache.var_gc_interval': '300',
  911. 'xcache.var_namespace_mode': '0',
  912. 'xcache.var_namespace': '""',
  913. 'xcache.readonly_protection': 'Off',
  914. 'xcache.mmap_path': '"/dev/zero"',
  915. 'xcache.coredump_directory': '""',
  916. 'xcache.coredump_type': '0',
  917. 'xcache.disable_on_crash': 'Off',
  918. 'xcache.experimental': 'Off',
  919. 'xcache.cacher': 'On',
  920. 'xcache.stat': 'On',
  921. 'xcache.optimizer': 'Off',
  922. },
  923. 'xcache.coverager': {
  924. 'xcache.coverager': 'Off',
  925. 'xcache.coverager_autostart': 'On',
  926. 'xcache.coveragedump_directory': '""',
  927. },
  928. },
  929. 'opts': {},
  930. 'settings': {},
  931. }
  932. },
  933. 'ini': {
  934. 'defaults': {
  935. 'PHP': {
  936. 'allow_url_fopen': 'On',
  937. 'allow_url_include': 'Off',
  938. 'asp_tags': 'Off',
  939. 'auto_globals_jit': 'On',
  940. 'default_mimetype': '"text/html"',
  941. 'default_socket_timeout': 60,
  942. 'disable_functions': [
  943. 'pcntl_alarm',
  944. 'pcntl_fork',
  945. 'pcntl_waitpid',
  946. 'pcntl_wait',
  947. 'pcntl_wifexited',
  948. 'pcntl_wifstopped',
  949. 'pcntl_wifsignaled',
  950. 'pcntl_wexitstatus',
  951. 'pcntl_wtermsig',
  952. 'pcntl_wstopsig',
  953. 'pcntl_signal',
  954. 'pcntl_signal_dispatch',
  955. 'pcntl_get_last_error',
  956. 'pcntl_strerror',
  957. 'pcntl_sigprocmask',
  958. 'pcntl_sigwaitinfo',
  959. 'pcntl_sigtimedwait',
  960. 'pcntl_exec',
  961. 'pcntl_getpriority',
  962. 'pcntl_setpriority',
  963. ],
  964. 'display_errors': 'Off',
  965. 'display_startup_errors': 'Off',
  966. 'enable_dl': 'Off',
  967. 'engine': 'On',
  968. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  969. 'expose_php': 'On',
  970. 'file_uploads': 'On',
  971. 'html_errors': 'On',
  972. 'ignore_repeated_errors': 'Off',
  973. 'ignore_repeated_source': 'Off',
  974. 'implicit_flush': 'Off',
  975. 'log_errors': 'On',
  976. 'log_errors_max_len': 1024,
  977. 'max_execution_time': 30,
  978. 'max_file_uploads': 20,
  979. 'max_input_nesting_level': 64,
  980. 'max_input_time': 60,
  981. 'max_input_vars': 1000,
  982. 'memory_limit': '128M',
  983. 'output_buffering': 4096,
  984. 'post_max_size': '8M',
  985. 'precision': 14,
  986. 'register_argc_argv': 'Off',
  987. 'report_memleaks': 'On',
  988. 'request_order': 'GP',
  989. 'serialize_precision': 17,
  990. 'short_open_tag': 'Off',
  991. 'track_errors': 'Off',
  992. 'upload_max_filesize': '2M',
  993. 'variables_order': 'GPCS',
  994. 'zend.enable_gc': 'On',
  995. 'zlib.output_compression': 'Off',
  996. },
  997. 'CLI Server': {
  998. 'cli_server.color': 'On'
  999. },
  1000. 'Date': {
  1001. 'date.timezone': 'America/New_York'
  1002. },
  1003. 'Pdo_mysql': {
  1004. 'pdo_mysql.cache_size': 2000
  1005. },
  1006. 'mail function': {
  1007. 'SMTP': 'localhost',
  1008. 'mail.add_x_header': 'On'
  1009. },
  1010. 'SQL': {
  1011. 'sql.safe_mode': 'Off'
  1012. },
  1013. 'ODBC': {
  1014. 'odbc.allow_persistent': 'On',
  1015. 'odbc.check_persistent': 'On',
  1016. 'odbc.max_persistent': '-1',
  1017. 'odbc.max_links': '-1',
  1018. 'odbc.defaultlrl': 4096,
  1019. 'odbc.defaultbinmode': 1
  1020. },
  1021. 'Interbase': {
  1022. 'ibase.allow_persistent': 1,
  1023. 'ibase.max_persistent': -1,
  1024. 'ibase.max_links': -1,
  1025. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  1026. 'ibase.dateformat': '"%Y-%m-%d"',
  1027. 'ibase.timeformat': '"%H:%M:%S"'
  1028. },
  1029. 'MySQL': {
  1030. 'mysql.allow_local_infile': 'On',
  1031. 'mysql.allow_persistent': 'On',
  1032. 'mysql.cache_size': '2000',
  1033. 'mysql.max_persistent': -1,
  1034. 'mysql.max_links': -1,
  1035. 'mysql.connect_timeout': 60,
  1036. 'mysql.trace_mode': 'Off'
  1037. },
  1038. 'MySQLi': {
  1039. 'mysqli.max_persistent': -1,
  1040. 'mysqli.allow_persistent': 'On',
  1041. 'mysqli.max_links': -1,
  1042. 'mysqli.cache_size': 2000,
  1043. 'mysqli.default_port': 3306,
  1044. 'mysqli.reconnect': 'Off'
  1045. },
  1046. 'mysqlnd': {
  1047. 'mysqlnd.collect_statistics': 'On',
  1048. 'mysqlnd.collect_memory_statistics': 'Off'
  1049. },
  1050. 'PostgreSQL': {
  1051. 'pgsql.allow_persistent': 'On',
  1052. 'pgsql.auto_reset_persistent': 'Off',
  1053. 'pgsql.max_persistent': -1,
  1054. 'pgsql.max_links': -1,
  1055. 'pgsql.ignore_notice': 0,
  1056. 'pgsql.log_notice': 0
  1057. },
  1058. 'Sybase-CT': {
  1059. 'sybct.allow_persistent': 'On',
  1060. 'sybct.max_persistent': -1,
  1061. 'sybct.max_links': -1,
  1062. 'sybct.min_server_severity': 10,
  1063. 'sybct.min_client_severity': 10
  1064. },
  1065. 'bcmath': {
  1066. 'bcmath.scale': 0
  1067. },
  1068. 'Session': {
  1069. 'session.save_handler': 'files',
  1070. 'session.use_strict_mode': 0,
  1071. 'session.use_cookies': 1,
  1072. 'session.use_only_cookies': 1,
  1073. 'session.name': 'PHPSESSID',
  1074. 'session.auto_start': 0,
  1075. 'session.cookie_lifetime': 0,
  1076. 'session.cookie_path': '/',
  1077. 'session.serialize_handler': 'php',
  1078. 'session.gc_probability': 0,
  1079. 'session.gc_divisor': 1000,
  1080. 'session.gc_maxlifetime': 1440,
  1081. 'session.bug_compat_42': 'Off',
  1082. 'session.bug_compat_warn': 'Off',
  1083. 'session.cache_limiter': 'nocache',
  1084. 'session.cache_expire': '180',
  1085. 'session.use_trans_sid': 0,
  1086. 'session.hash_function': 0,
  1087. 'session.hash_bits_per_character': 5,
  1088. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  1089. },
  1090. 'MSSQL': {
  1091. 'mssql.allow_persistent': 'On',
  1092. 'mssql.max_persistent': -1,
  1093. 'mssql.max_links': -1,
  1094. 'mssql.min_error_severity': 10,
  1095. 'mssql.min_message_severity': 10,
  1096. 'mssql.compatibility_mode': 'Off',
  1097. 'mssql.secure_connection': 'Off'
  1098. },
  1099. 'Tidy': {
  1100. 'tidy.clean_output': 'Off'
  1101. },
  1102. 'soap': {
  1103. 'soap.wsdl_cache_enabled': 1,
  1104. 'soap.wsdl_cache_dir': '"/tmp"',
  1105. 'soap.wsdl_cache_ttl': 86400,
  1106. 'soap.wsdl_cache_limit': 5
  1107. },
  1108. 'ldap': {
  1109. 'ldap.max_links': -1
  1110. },
  1111. },
  1112. },
  1113. }, merge=True) %}
  1114. {%- elif salt['grains.get']('osrelease')|string >= '17.10' %}
  1115. {%- set php = salt['pillar.get']('php', {
  1116. 'lookup': salt['grains.filter_by']({
  1117. 'Ubuntu': {
  1118. 'pkgs': {
  1119. 'adodb': 'libphp-adodb',
  1120. 'apache2': 'libapache2-mod-php',
  1121. 'apc': 'php',
  1122. 'apcu': 'php-apcu',
  1123. 'bcmath': 'php7.1-bcmath',
  1124. 'bz2': 'php7.1-bz2',
  1125. 'cache-lite': 'php-cache-lite',
  1126. 'cgi': 'php-cgi',
  1127. 'cli': 'php-cli',
  1128. 'console-table': 'php-console-table',
  1129. 'composer_bin': 'composer',
  1130. 'curl': 'php-curl',
  1131. 'dba': 'php7.1-dba',
  1132. 'dev': 'php7.1-dev',
  1133. 'fpm': 'php-fpm',
  1134. 'gd': 'php-gd',
  1135. 'geoip': 'php-geoip',
  1136. 'geshi': 'php-geshi',
  1137. 'gmp': 'php-gmp',
  1138. 'hhvm': 'hhvm',
  1139. 'imagick': 'php-imagick',
  1140. 'imap': 'php-imap',
  1141. 'intl': 'php-intl',
  1142. 'json': 'php-json',
  1143. 'ldap': 'php-ldap',
  1144. 'local_bin': '/usr/local/bin',
  1145. 'auth-sasl': 'php-auth-sasl',
  1146. 'mail': 'php-mail',
  1147. 'mbstring': 'php-mbstring',
  1148. 'mcrypt': 'php-mcrypt',
  1149. 'memcache': 'php-memcache',
  1150. 'memcached': 'php-memcached',
  1151. 'mongodb': 'php-mongodb',
  1152. 'mysql': 'php-mysql',
  1153. 'mysqlnd': 'php',
  1154. 'net-smtp': 'php-net-smtp',
  1155. 'net4': 'php-net-ipv4',
  1156. 'net6': 'php-net-ipv6',
  1157. 'oauth': 'php-oauth',
  1158. 'opcache': 'php7.1-opcache',
  1159. 'pear': 'php-pear',
  1160. 'pgsql': 'php-pgsql',
  1161. 'php': 'php',
  1162. 'phpenmod_command': 'phpenmod',
  1163. 'pspell': 'php-pspell',
  1164. 'redis': 'php-redis',
  1165. 'seclib': ['php-phpseclib', 'php-seclib'],
  1166. 'snmp': 'php-snmp',
  1167. 'soap': 'php-soap',
  1168. 'sqlite': 'php-sqlite3',
  1169. 'ssh2': 'php-ssh2',
  1170. 'suhosin': 'php',
  1171. 'sybase': 'php-sybase',
  1172. 'tcpdf': 'php-tcpdf',
  1173. 'temp_dir': '/tmp',
  1174. 'tidy': 'php7.1-tidy',
  1175. 'xcache': 'php',
  1176. 'xdebug': 'php-xdebug',
  1177. 'xml': ['php-xml', 'php-xmlrpc'],
  1178. 'xsl': 'php7.1-xsl',
  1179. 'zip': 'php-zip',
  1180. },
  1181. 'fpm': {
  1182. 'conf': '/etc/php/7.1/fpm/php-fpm.conf',
  1183. 'ini': '/etc/php/7.1/fpm/php.ini',
  1184. 'pools': '/etc/php/7.1/fpm/pool.d',
  1185. 'service': 'php7.1-fpm',
  1186. 'user': 'root',
  1187. 'group': 'root',
  1188. 'defaults': odict([
  1189. ('global', odict([
  1190. ('pid', '/var/run/php7.1-fpm.pid'),
  1191. ('error_log', '/var/log/php7.1-fpm.log'),
  1192. ])),
  1193. ('include', '/etc/php/7.1/fpm/pool.d/*.conf'),
  1194. ]),
  1195. },
  1196. 'hhvm': {
  1197. 'conf': '/etc/hhvm/server.ini',
  1198. 'ini': '/etc/hhvm/php.ini',
  1199. 'service': 'hhvm',
  1200. 'defaults': {},
  1201. 'server': odict([
  1202. ('pid', '/var/run/hhvm/pid'),
  1203. ('hhvm.server.port', '9000'),
  1204. ('hhvm.server.type', 'fastcgi'),
  1205. ('hhvm.server.default_document', 'index.php'),
  1206. ('hhvm.log.use_log_file', 'true'),
  1207. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  1208. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  1209. ]),
  1210. 'php': odict([
  1211. ('session.save_handler', 'files'),
  1212. ('session.save_path', '/var/lib/hhvm/sessions'),
  1213. ('session.gc_maxlifetime', '1440'),
  1214. ('hhvm.log.level', 'Warning'),
  1215. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  1216. ('hhvm.log.runtime_error_reporting_level', '8191'),
  1217. ('hhvm.mysql.typed_results', 'false'),
  1218. ]),
  1219. },
  1220. 'cli': {
  1221. 'ini': '/etc/php/7.1/cli/php.ini',
  1222. },
  1223. 'apache2': {
  1224. 'ini': '/etc/php/7.1/apache2/php.ini',
  1225. },
  1226. 'xcache': {
  1227. 'ini': '/etc/php/7.1/mods-available/xcache.ini',
  1228. 'defaults': {},
  1229. },
  1230. },
  1231. }, grain="os"),
  1232. 'fpm': {
  1233. 'service': {
  1234. 'enabled': True,
  1235. 'opts': {},
  1236. },
  1237. 'config': {
  1238. 'ini': {
  1239. 'opts': {},
  1240. 'settings': {},
  1241. },
  1242. 'conf': {
  1243. 'opts': {},
  1244. 'settings': {},
  1245. },
  1246. },
  1247. 'pools': {
  1248. 'default.conf': {
  1249. 'enabled': False,
  1250. 'opts': {},
  1251. },
  1252. },
  1253. },
  1254. 'hhvm': {
  1255. 'service': {
  1256. 'enabled': True,
  1257. 'opts': {},
  1258. },
  1259. 'config': {
  1260. 'server': {
  1261. 'opts': {},
  1262. 'settings': {},
  1263. },
  1264. 'php': {
  1265. 'opts': {},
  1266. 'settings': {},
  1267. },
  1268. },
  1269. },
  1270. 'cli': {
  1271. 'ini': {
  1272. 'opts': {},
  1273. 'settings': {},
  1274. }
  1275. },
  1276. 'apache2': {
  1277. 'ini': {
  1278. 'opts': {},
  1279. 'settings': {},
  1280. }
  1281. },
  1282. 'xcache': {
  1283. 'ini': {
  1284. 'defaults': {
  1285. 'xcache-common': {
  1286. 'extension': 'xcache.so',
  1287. },
  1288. 'xcache.admin': {
  1289. 'xcache.admin.enable_auth': 'On',
  1290. },
  1291. 'xcache': {
  1292. 'xcache.shm_scheme': '"mmap"',
  1293. 'xcache.size': '60M',
  1294. 'xcache.count': '1',
  1295. 'xcache.slots': '8K',
  1296. 'xcache.ttl': '0',
  1297. 'xcache.gc_interval': '0',
  1298. 'xcache.var_size': '4M',
  1299. 'xcache.var_count': '1',
  1300. 'xcache.var_slots': '8K',
  1301. 'xcache.var_ttl': '0',
  1302. 'xcache.var_maxttl': '0',
  1303. 'xcache.var_gc_interval': '300',
  1304. 'xcache.var_namespace_mode': '0',
  1305. 'xcache.var_namespace': '""',
  1306. 'xcache.readonly_protection': 'Off',
  1307. 'xcache.mmap_path': '"/dev/zero"',
  1308. 'xcache.coredump_directory': '""',
  1309. 'xcache.coredump_type': '0',
  1310. 'xcache.disable_on_crash': 'Off',
  1311. 'xcache.experimental': 'Off',
  1312. 'xcache.cacher': 'On',
  1313. 'xcache.stat': 'On',
  1314. 'xcache.optimizer': 'Off',
  1315. },
  1316. 'xcache.coverager': {
  1317. 'xcache.coverager': 'Off',
  1318. 'xcache.coverager_autostart': 'On',
  1319. 'xcache.coveragedump_directory': '""',
  1320. },
  1321. },
  1322. 'opts': {},
  1323. 'settings': {},
  1324. }
  1325. },
  1326. 'ini': {
  1327. 'defaults': {
  1328. 'PHP': {
  1329. 'allow_url_fopen': 'On',
  1330. 'allow_url_include': 'Off',
  1331. 'asp_tags': 'Off',
  1332. 'auto_globals_jit': 'On',
  1333. 'default_mimetype': '"text/html"',
  1334. 'default_socket_timeout': 60,
  1335. 'disable_functions': [
  1336. 'pcntl_alarm',
  1337. 'pcntl_fork',
  1338. 'pcntl_waitpid',
  1339. 'pcntl_wait',
  1340. 'pcntl_wifexited',
  1341. 'pcntl_wifstopped',
  1342. 'pcntl_wifsignaled',
  1343. 'pcntl_wexitstatus',
  1344. 'pcntl_wtermsig',
  1345. 'pcntl_wstopsig',
  1346. 'pcntl_signal',
  1347. 'pcntl_signal_dispatch',
  1348. 'pcntl_get_last_error',
  1349. 'pcntl_strerror',
  1350. 'pcntl_sigprocmask',
  1351. 'pcntl_sigwaitinfo',
  1352. 'pcntl_sigtimedwait',
  1353. 'pcntl_exec',
  1354. 'pcntl_getpriority',
  1355. 'pcntl_setpriority',
  1356. ],
  1357. 'display_errors': 'Off',
  1358. 'display_startup_errors': 'Off',
  1359. 'enable_dl': 'Off',
  1360. 'engine': 'On',
  1361. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  1362. 'expose_php': 'On',
  1363. 'file_uploads': 'On',
  1364. 'html_errors': 'On',
  1365. 'ignore_repeated_errors': 'Off',
  1366. 'ignore_repeated_source': 'Off',
  1367. 'implicit_flush': 'Off',
  1368. 'log_errors': 'On',
  1369. 'log_errors_max_len': 1024,
  1370. 'max_execution_time': 30,
  1371. 'max_file_uploads': 20,
  1372. 'max_input_nesting_level': 64,
  1373. 'max_input_time': 60,
  1374. 'max_input_vars': 1000,
  1375. 'memory_limit': '128M',
  1376. 'output_buffering': 4096,
  1377. 'post_max_size': '8M',
  1378. 'precision': 14,
  1379. 'register_argc_argv': 'Off',
  1380. 'report_memleaks': 'On',
  1381. 'request_order': 'GP',
  1382. 'serialize_precision': 17,
  1383. 'short_open_tag': 'Off',
  1384. 'track_errors': 'Off',
  1385. 'upload_max_filesize': '2M',
  1386. 'variables_order': 'GPCS',
  1387. 'zend.enable_gc': 'On',
  1388. 'zlib.output_compression': 'Off',
  1389. },
  1390. 'CLI Server': {
  1391. 'cli_server.color': 'On'
  1392. },
  1393. 'Date': {
  1394. 'date.timezone': 'America/New_York'
  1395. },
  1396. 'Pdo_mysql': {
  1397. 'pdo_mysql.cache_size': 2000
  1398. },
  1399. 'mail function': {
  1400. 'SMTP': 'localhost',
  1401. 'mail.add_x_header': 'On'
  1402. },
  1403. 'SQL': {
  1404. 'sql.safe_mode': 'Off'
  1405. },
  1406. 'ODBC': {
  1407. 'odbc.allow_persistent': 'On',
  1408. 'odbc.check_persistent': 'On',
  1409. 'odbc.max_persistent': '-1',
  1410. 'odbc.max_links': '-1',
  1411. 'odbc.defaultlrl': 4096,
  1412. 'odbc.defaultbinmode': 1
  1413. },
  1414. 'Interbase': {
  1415. 'ibase.allow_persistent': 1,
  1416. 'ibase.max_persistent': -1,
  1417. 'ibase.max_links': -1,
  1418. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  1419. 'ibase.dateformat': '"%Y-%m-%d"',
  1420. 'ibase.timeformat': '"%H:%M:%S"'
  1421. },
  1422. 'MySQL': {
  1423. 'mysql.allow_local_infile': 'On',
  1424. 'mysql.allow_persistent': 'On',
  1425. 'mysql.cache_size': '2000',
  1426. 'mysql.max_persistent': -1,
  1427. 'mysql.max_links': -1,
  1428. 'mysql.connect_timeout': 60,
  1429. 'mysql.trace_mode': 'Off'
  1430. },
  1431. 'MySQLi': {
  1432. 'mysqli.max_persistent': -1,
  1433. 'mysqli.allow_persistent': 'On',
  1434. 'mysqli.max_links': -1,
  1435. 'mysqli.cache_size': 2000,
  1436. 'mysqli.default_port': 3306,
  1437. 'mysqli.reconnect': 'Off'
  1438. },
  1439. 'mysqlnd': {
  1440. 'mysqlnd.collect_statistics': 'On',
  1441. 'mysqlnd.collect_memory_statistics': 'Off'
  1442. },
  1443. 'PostgreSQL': {
  1444. 'pgsql.allow_persistent': 'On',
  1445. 'pgsql.auto_reset_persistent': 'Off',
  1446. 'pgsql.max_persistent': -1,
  1447. 'pgsql.max_links': -1,
  1448. 'pgsql.ignore_notice': 0,
  1449. 'pgsql.log_notice': 0
  1450. },
  1451. 'Sybase-CT': {
  1452. 'sybct.allow_persistent': 'On',
  1453. 'sybct.max_persistent': -1,
  1454. 'sybct.max_links': -1,
  1455. 'sybct.min_server_severity': 10,
  1456. 'sybct.min_client_severity': 10
  1457. },
  1458. 'bcmath': {
  1459. 'bcmath.scale': 0
  1460. },
  1461. 'Session': {
  1462. 'session.save_handler': 'files',
  1463. 'session.use_strict_mode': 0,
  1464. 'session.use_cookies': 1,
  1465. 'session.use_only_cookies': 1,
  1466. 'session.name': 'PHPSESSID',
  1467. 'session.auto_start': 0,
  1468. 'session.cookie_lifetime': 0,
  1469. 'session.cookie_path': '/',
  1470. 'session.serialize_handler': 'php',
  1471. 'session.gc_probability': 0,
  1472. 'session.gc_divisor': 1000,
  1473. 'session.gc_maxlifetime': 1440,
  1474. 'session.bug_compat_42': 'Off',
  1475. 'session.bug_compat_warn': 'Off',
  1476. 'session.cache_limiter': 'nocache',
  1477. 'session.cache_expire': '180',
  1478. 'session.use_trans_sid': 0,
  1479. 'session.hash_function': 0,
  1480. 'session.hash_bits_per_character': 5,
  1481. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  1482. },
  1483. 'MSSQL': {
  1484. 'mssql.allow_persistent': 'On',
  1485. 'mssql.max_persistent': -1,
  1486. 'mssql.max_links': -1,
  1487. 'mssql.min_error_severity': 10,
  1488. 'mssql.min_message_severity': 10,
  1489. 'mssql.compatibility_mode': 'Off',
  1490. 'mssql.secure_connection': 'Off'
  1491. },
  1492. 'Tidy': {
  1493. 'tidy.clean_output': 'Off'
  1494. },
  1495. 'soap': {
  1496. 'soap.wsdl_cache_enabled': 1,
  1497. 'soap.wsdl_cache_dir': '"/tmp"',
  1498. 'soap.wsdl_cache_ttl': 86400,
  1499. 'soap.wsdl_cache_limit': 5
  1500. },
  1501. 'ldap': {
  1502. 'ldap.max_links': -1
  1503. },
  1504. },
  1505. },
  1506. }, merge=True) %}
  1507. {%- elif salt['grains.get']('osrelease')|string >= '16.04' %}
  1508. {%- set php = salt['pillar.get']('php', {
  1509. 'lookup': salt['grains.filter_by']({
  1510. 'Ubuntu': {
  1511. 'pkgs': {
  1512. 'adodb': 'libphp-adodb',
  1513. 'apache2': 'libapache2-mod-php',
  1514. 'apc': 'php',
  1515. 'apcu': 'php-apcu',
  1516. 'bcmath': 'php7.0-bcmath',
  1517. 'bz2': 'php7.0-bz2',
  1518. 'cache-lite': 'php-cache-lite',
  1519. 'cgi': 'php-cgi',
  1520. 'cli': 'php-cli',
  1521. 'console-table': 'php-console-table',
  1522. 'composer_bin': 'composer',
  1523. 'curl': 'php-curl',
  1524. 'dba': 'php7.0-dba',
  1525. 'dev': 'php7.0-dev',
  1526. 'fpm': 'php-fpm',
  1527. 'gd': 'php-gd',
  1528. 'geoip': 'php-geoip',
  1529. 'geshi': 'php-geshi',
  1530. 'gmp': 'php-gmp',
  1531. 'hhvm': 'hhvm',
  1532. 'imagick': 'php-imagick',
  1533. 'imap': 'php-imap',
  1534. 'intl': 'php-intl',
  1535. 'json': 'php-json',
  1536. 'ldap': 'php-ldap',
  1537. 'local_bin': '/usr/local/bin',
  1538. 'auth-sasl': 'php-auth-sasl',
  1539. 'mail': 'php-mail',
  1540. 'mbstring': 'php-mbstring',
  1541. 'mcrypt': 'php-mcrypt',
  1542. 'memcache': 'php-memcache',
  1543. 'memcached': 'php-memcached',
  1544. 'mongodb': 'php-mongodb',
  1545. 'mysql': 'php-mysql',
  1546. 'mysqlnd': 'php',
  1547. 'net-smtp': 'php-net-smtp',
  1548. 'net4': 'php-net-ipv4',
  1549. 'net6': 'php-net-ipv6',
  1550. 'oauth': 'php-oauth',
  1551. 'opcache': 'php7.0-opcache',
  1552. 'pear': 'php-pear',
  1553. 'pgsql': 'php-pgsql',
  1554. 'php': 'php',
  1555. 'phpenmod_command': 'phpenmod',
  1556. 'pspell': 'php-pspell',
  1557. 'redis': 'php-redis',
  1558. 'seclib': ['php-phpseclib', 'php-seclib'],
  1559. 'snmp': 'php-snmp',
  1560. 'soap': 'php-soap',
  1561. 'sqlite': 'php-sqlite3',
  1562. 'ssh2': 'php-ssh2',
  1563. 'suhosin': 'php',
  1564. 'sybase': 'php-sybase',
  1565. 'tcpdf': 'php-tcpdf',
  1566. 'temp_dir': '/tmp',
  1567. 'tidy': 'php7.0-tidy',
  1568. 'xcache': 'php',
  1569. 'xdebug': 'php-xdebug',
  1570. 'xml': ['php-xml', 'php-xmlrpc'],
  1571. 'xsl': 'php7.0-xsl',
  1572. 'zip': 'php-zip',
  1573. },
  1574. 'fpm': {
  1575. 'conf': '/etc/php/7.0/fpm/php-fpm.conf',
  1576. 'ini': '/etc/php/7.0/fpm/php.ini',
  1577. 'pools': '/etc/php/7.0/fpm/pool.d',
  1578. 'service': 'php7.0-fpm',
  1579. 'user': 'root',
  1580. 'group': 'root',
  1581. 'defaults': odict([
  1582. ('global', odict([
  1583. ('pid', '/var/run/php7.0-fpm.pid'),
  1584. ('error_log', '/var/log/php7.0-fpm.log'),
  1585. ])),
  1586. ('include', '/etc/php/7.0/fpm/pool.d/*.conf'),
  1587. ]),
  1588. },
  1589. 'hhvm': {
  1590. 'conf': '/etc/hhvm/server.ini',
  1591. 'ini': '/etc/hhvm/php.ini',
  1592. 'service': 'hhvm',
  1593. 'defaults': {},
  1594. 'server': odict([
  1595. ('pid', '/var/run/hhvm/pid'),
  1596. ('hhvm.server.port', '9000'),
  1597. ('hhvm.server.type', 'fastcgi'),
  1598. ('hhvm.server.default_document', 'index.php'),
  1599. ('hhvm.log.use_log_file', 'true'),
  1600. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  1601. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  1602. ]),
  1603. 'php': odict([
  1604. ('session.save_handler', 'files'),
  1605. ('session.save_path', '/var/lib/hhvm/sessions'),
  1606. ('session.gc_maxlifetime', '1440'),
  1607. ('hhvm.log.level', 'Warning'),
  1608. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  1609. ('hhvm.log.runtime_error_reporting_level', '8191'),
  1610. ('hhvm.mysql.typed_results', 'false'),
  1611. ]),
  1612. },
  1613. 'cli': {
  1614. 'ini': '/etc/php/7.0/cli/php.ini',
  1615. },
  1616. 'apache2': {
  1617. 'ini': '/etc/php/7.0/apache2/php.ini',
  1618. },
  1619. 'xcache': {
  1620. 'ini': '/etc/php/7.0/mods-available/xcache.ini',
  1621. 'defaults': {},
  1622. },
  1623. },
  1624. }, grain="os"),
  1625. 'fpm': {
  1626. 'service': {
  1627. 'enabled': True,
  1628. 'opts': {},
  1629. },
  1630. 'config': {
  1631. 'ini': {
  1632. 'opts': {},
  1633. 'settings': {},
  1634. },
  1635. 'conf': {
  1636. 'opts': {},
  1637. 'settings': {},
  1638. },
  1639. },
  1640. 'pools': {
  1641. 'default.conf': {
  1642. 'enabled': False,
  1643. 'opts': {},
  1644. },
  1645. },
  1646. },
  1647. 'hhvm': {
  1648. 'service': {
  1649. 'enabled': True,
  1650. 'opts': {},
  1651. },
  1652. 'config': {
  1653. 'server': {
  1654. 'opts': {},
  1655. 'settings': {},
  1656. },
  1657. 'php': {
  1658. 'opts': {},
  1659. 'settings': {},
  1660. },
  1661. },
  1662. },
  1663. 'cli': {
  1664. 'ini': {
  1665. 'opts': {},
  1666. 'settings': {},
  1667. }
  1668. },
  1669. 'apache2': {
  1670. 'ini': {
  1671. 'opts': {},
  1672. 'settings': {},
  1673. }
  1674. },
  1675. 'xcache': {
  1676. 'ini': {
  1677. 'defaults': {
  1678. 'xcache-common': {
  1679. 'extension': 'xcache.so',
  1680. },
  1681. 'xcache.admin': {
  1682. 'xcache.admin.enable_auth': 'On',
  1683. },
  1684. 'xcache': {
  1685. 'xcache.shm_scheme': '"mmap"',
  1686. 'xcache.size': '60M',
  1687. 'xcache.count': '1',
  1688. 'xcache.slots': '8K',
  1689. 'xcache.ttl': '0',
  1690. 'xcache.gc_interval': '0',
  1691. 'xcache.var_size': '4M',
  1692. 'xcache.var_count': '1',
  1693. 'xcache.var_slots': '8K',
  1694. 'xcache.var_ttl': '0',
  1695. 'xcache.var_maxttl': '0',
  1696. 'xcache.var_gc_interval': '300',
  1697. 'xcache.var_namespace_mode': '0',
  1698. 'xcache.var_namespace': '""',
  1699. 'xcache.readonly_protection': 'Off',
  1700. 'xcache.mmap_path': '"/dev/zero"',
  1701. 'xcache.coredump_directory': '""',
  1702. 'xcache.coredump_type': '0',
  1703. 'xcache.disable_on_crash': 'Off',
  1704. 'xcache.experimental': 'Off',
  1705. 'xcache.cacher': 'On',
  1706. 'xcache.stat': 'On',
  1707. 'xcache.optimizer': 'Off',
  1708. },
  1709. 'xcache.coverager': {
  1710. 'xcache.coverager': 'Off',
  1711. 'xcache.coverager_autostart': 'On',
  1712. 'xcache.coveragedump_directory': '""',
  1713. },
  1714. },
  1715. 'opts': {},
  1716. 'settings': {},
  1717. }
  1718. },
  1719. 'ini': {
  1720. 'defaults': {
  1721. 'PHP': {
  1722. 'allow_url_fopen': 'On',
  1723. 'allow_url_include': 'Off',
  1724. 'asp_tags': 'Off',
  1725. 'auto_globals_jit': 'On',
  1726. 'default_mimetype': '"text/html"',
  1727. 'default_socket_timeout': 60,
  1728. 'disable_functions': [
  1729. 'pcntl_alarm',
  1730. 'pcntl_fork',
  1731. 'pcntl_waitpid',
  1732. 'pcntl_wait',
  1733. 'pcntl_wifexited',
  1734. 'pcntl_wifstopped',
  1735. 'pcntl_wifsignaled',
  1736. 'pcntl_wexitstatus',
  1737. 'pcntl_wtermsig',
  1738. 'pcntl_wstopsig',
  1739. 'pcntl_signal',
  1740. 'pcntl_signal_dispatch',
  1741. 'pcntl_get_last_error',
  1742. 'pcntl_strerror',
  1743. 'pcntl_sigprocmask',
  1744. 'pcntl_sigwaitinfo',
  1745. 'pcntl_sigtimedwait',
  1746. 'pcntl_exec',
  1747. 'pcntl_getpriority',
  1748. 'pcntl_setpriority',
  1749. ],
  1750. 'display_errors': 'Off',
  1751. 'display_startup_errors': 'Off',
  1752. 'enable_dl': 'Off',
  1753. 'engine': 'On',
  1754. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  1755. 'expose_php': 'On',
  1756. 'file_uploads': 'On',
  1757. 'html_errors': 'On',
  1758. 'ignore_repeated_errors': 'Off',
  1759. 'ignore_repeated_source': 'Off',
  1760. 'implicit_flush': 'Off',
  1761. 'log_errors': 'On',
  1762. 'log_errors_max_len': 1024,
  1763. 'max_execution_time': 30,
  1764. 'max_file_uploads': 20,
  1765. 'max_input_nesting_level': 64,
  1766. 'max_input_time': 60,
  1767. 'max_input_vars': 1000,
  1768. 'memory_limit': '128M',
  1769. 'output_buffering': 4096,
  1770. 'post_max_size': '8M',
  1771. 'precision': 14,
  1772. 'register_argc_argv': 'Off',
  1773. 'report_memleaks': 'On',
  1774. 'request_order': 'GP',
  1775. 'serialize_precision': 17,
  1776. 'short_open_tag': 'Off',
  1777. 'track_errors': 'Off',
  1778. 'upload_max_filesize': '2M',
  1779. 'variables_order': 'GPCS',
  1780. 'zend.enable_gc': 'On',
  1781. 'zlib.output_compression': 'Off',
  1782. },
  1783. 'CLI Server': {
  1784. 'cli_server.color': 'On'
  1785. },
  1786. 'Date': {
  1787. 'date.timezone': 'America/New_York'
  1788. },
  1789. 'Pdo_mysql': {
  1790. 'pdo_mysql.cache_size': 2000
  1791. },
  1792. 'mail function': {
  1793. 'SMTP': 'localhost',
  1794. 'mail.add_x_header': 'On'
  1795. },
  1796. 'SQL': {
  1797. 'sql.safe_mode': 'Off'
  1798. },
  1799. 'ODBC': {
  1800. 'odbc.allow_persistent': 'On',
  1801. 'odbc.check_persistent': 'On',
  1802. 'odbc.max_persistent': '-1',
  1803. 'odbc.max_links': '-1',
  1804. 'odbc.defaultlrl': 4096,
  1805. 'odbc.defaultbinmode': 1
  1806. },
  1807. 'Interbase': {
  1808. 'ibase.allow_persistent': 1,
  1809. 'ibase.max_persistent': -1,
  1810. 'ibase.max_links': -1,
  1811. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  1812. 'ibase.dateformat': '"%Y-%m-%d"',
  1813. 'ibase.timeformat': '"%H:%M:%S"'
  1814. },
  1815. 'MySQL': {
  1816. 'mysql.allow_local_infile': 'On',
  1817. 'mysql.allow_persistent': 'On',
  1818. 'mysql.cache_size': '2000',
  1819. 'mysql.max_persistent': -1,
  1820. 'mysql.max_links': -1,
  1821. 'mysql.connect_timeout': 60,
  1822. 'mysql.trace_mode': 'Off'
  1823. },
  1824. 'MySQLi': {
  1825. 'mysqli.max_persistent': -1,
  1826. 'mysqli.allow_persistent': 'On',
  1827. 'mysqli.max_links': -1,
  1828. 'mysqli.cache_size': 2000,
  1829. 'mysqli.default_port': 3306,
  1830. 'mysqli.reconnect': 'Off'
  1831. },
  1832. 'mysqlnd': {
  1833. 'mysqlnd.collect_statistics': 'On',
  1834. 'mysqlnd.collect_memory_statistics': 'Off'
  1835. },
  1836. 'PostgreSQL': {
  1837. 'pgsql.allow_persistent': 'On',
  1838. 'pgsql.auto_reset_persistent': 'Off',
  1839. 'pgsql.max_persistent': -1,
  1840. 'pgsql.max_links': -1,
  1841. 'pgsql.ignore_notice': 0,
  1842. 'pgsql.log_notice': 0
  1843. },
  1844. 'Sybase-CT': {
  1845. 'sybct.allow_persistent': 'On',
  1846. 'sybct.max_persistent': -1,
  1847. 'sybct.max_links': -1,
  1848. 'sybct.min_server_severity': 10,
  1849. 'sybct.min_client_severity': 10
  1850. },
  1851. 'bcmath': {
  1852. 'bcmath.scale': 0
  1853. },
  1854. 'Session': {
  1855. 'session.save_handler': 'files',
  1856. 'session.use_strict_mode': 0,
  1857. 'session.use_cookies': 1,
  1858. 'session.use_only_cookies': 1,
  1859. 'session.name': 'PHPSESSID',
  1860. 'session.auto_start': 0,
  1861. 'session.cookie_lifetime': 0,
  1862. 'session.cookie_path': '/',
  1863. 'session.serialize_handler': 'php',
  1864. 'session.gc_probability': 0,
  1865. 'session.gc_divisor': 1000,
  1866. 'session.gc_maxlifetime': 1440,
  1867. 'session.bug_compat_42': 'Off',
  1868. 'session.bug_compat_warn': 'Off',
  1869. 'session.cache_limiter': 'nocache',
  1870. 'session.cache_expire': '180',
  1871. 'session.use_trans_sid': 0,
  1872. 'session.hash_function': 0,
  1873. 'session.hash_bits_per_character': 5,
  1874. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  1875. },
  1876. 'MSSQL': {
  1877. 'mssql.allow_persistent': 'On',
  1878. 'mssql.max_persistent': -1,
  1879. 'mssql.max_links': -1,
  1880. 'mssql.min_error_severity': 10,
  1881. 'mssql.min_message_severity': 10,
  1882. 'mssql.compatibility_mode': 'Off',
  1883. 'mssql.secure_connection': 'Off'
  1884. },
  1885. 'Tidy': {
  1886. 'tidy.clean_output': 'Off'
  1887. },
  1888. 'soap': {
  1889. 'soap.wsdl_cache_enabled': 1,
  1890. 'soap.wsdl_cache_dir': '"/tmp"',
  1891. 'soap.wsdl_cache_ttl': 86400,
  1892. 'soap.wsdl_cache_limit': 5
  1893. },
  1894. 'ldap': {
  1895. 'ldap.max_links': -1
  1896. },
  1897. },
  1898. },
  1899. }, merge=True) %}
  1900. {%- else %}
  1901. {%- set php = salt['pillar.get']('php', {
  1902. 'lookup': salt['grains.filter_by']({
  1903. 'Ubuntu': {
  1904. 'pkgs': {
  1905. 'adodb': 'php5-adodb',
  1906. 'apache2': 'libapache2-mod-php5',
  1907. 'apc': 'php-apc',
  1908. 'apcu': 'php5-apcu',
  1909. 'bcmath': 'php5',
  1910. 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev'],
  1911. 'cache-lite': 'php-cache-lite',
  1912. 'cgi': 'php5-cgi',
  1913. 'cli': 'php5-cli',
  1914. 'composer_bin': 'composer',
  1915. 'console-table': 'php-console-table',
  1916. 'curl': 'php5-curl',
  1917. 'dev': ['php5-dev','build-essential'],
  1918. 'ext_conf_path': salt['grains.filter_by']({
  1919. 'precise': '/etc/php5/conf.d',
  1920. 'default': '/etc/php5/mods-available',
  1921. }, grain='oscodename'),
  1922. 'fpm': 'php5-fpm',
  1923. 'gd': 'php5-gd',
  1924. 'gearman': 'php5-gearman',
  1925. 'geoip': 'php5-geoip',
  1926. 'geshi': 'php-geshi',
  1927. 'gettext': 'php-gettext',
  1928. 'gmp': 'php5-gmp',
  1929. 'hhvm': 'hhvm',
  1930. 'imagick': 'php5-imagick',
  1931. 'imap': 'php5-imap',
  1932. 'intl': 'php5-intl',
  1933. 'json': 'php5-json',
  1934. 'ldap': 'php5-ldap',
  1935. 'local_bin': '/usr/local/bin',
  1936. 'auth-sasl': 'php-auth-sasl',
  1937. 'mail': 'php-mail',
  1938. 'mbstring': 'php5',
  1939. 'mcrypt': 'php5-mcrypt',
  1940. 'mdb2': 'php-mdb2',
  1941. 'mdb2-driver-mysql': 'php-mdb2-driver-mysql',
  1942. 'mdb2-driver-pgsql': 'php-mdb2-driver-pgsql',
  1943. 'memcache': 'php5-memcache',
  1944. 'memcached': 'php5-memcached',
  1945. 'mongodb': salt['grains.filter_by']({
  1946. 'trusty': 'php5-mongo',
  1947. 'default': '',
  1948. }, grain='oscodename'),
  1949. 'mysql': 'php5-mysql',
  1950. 'mysqlnd': 'php5-mysqlnd',
  1951. 'net-smtp': 'php-net-smtp',
  1952. 'net4': 'php-net-ipv4',
  1953. 'net6': 'php-net-ipv6',
  1954. 'oauth': 'php5-oauth',
  1955. 'opcache': 'php5',
  1956. 'pear': 'php-pear',
  1957. 'pgsql': 'php5-pgsql',
  1958. 'php': 'php5',
  1959. 'phpenmod_command': salt['grains.filter_by']({
  1960. 'precise': 'true',
  1961. 'default': 'php5enmod',
  1962. }, grain='oscodename'),
  1963. 'pspell': 'php5-pspell',
  1964. 'redis': 'php5-redis',
  1965. 'seclib': 'php-seclib',
  1966. 'snmp': 'php5-snmp',
  1967. 'soap': 'php-soap',
  1968. 'sqlite': 'php5-sqlite',
  1969. 'ssh2': 'libssh2-php',
  1970. 'suhosin5_ext': 'suhosin.so',
  1971. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  1972. 'suhosin7_ext': 'suhosin7.so',
  1973. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  1974. 'svn': 'php5-svn',
  1975. 'tcpdf': 'php-tcpdf',
  1976. 'tidy': 'php5-tidy',
  1977. 'temp_dir': '/tmp',
  1978. 'xcache': 'php5-xcache',
  1979. 'xdebug': 'php5-xdebug',
  1980. 'xml': 'php5',
  1981. 'xsl': 'php5-xsl',
  1982. 'zip': 'php5',
  1983. },
  1984. 'fpm': {
  1985. 'conf': '/etc/php5/fpm/php-fpm.conf',
  1986. 'ini': '/etc/php5/fpm/php.ini',
  1987. 'pools': '/etc/php5/fpm/pool.d',
  1988. 'service': 'php5-fpm',
  1989. 'user': 'root',
  1990. 'group': 'root',
  1991. 'defaults': odict([
  1992. ('global', odict([
  1993. ('pid', '/var/run/php5-fpm.pid'),
  1994. ('error_log', '/var/log/php5-fpm.log'),
  1995. ])),
  1996. ('include', '/etc/php5/fpm/pool.d/*.conf'),
  1997. ]),
  1998. },
  1999. 'hhvm': {
  2000. 'conf': '/etc/hhvm/server.ini',
  2001. 'ini': '/etc/hhvm/php.ini',
  2002. 'service': 'hhvm',
  2003. 'defaults': {},
  2004. 'server': odict([
  2005. ('pid', '/var/run/hhvm/pid'),
  2006. ('hhvm.server.port', '9000'),
  2007. ('hhvm.server.type', 'fastcgi'),
  2008. ('hhvm.server.default_document', 'index.php'),
  2009. ('hhvm.log.use_log_file', 'true'),
  2010. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  2011. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  2012. ]),
  2013. 'php': odict([
  2014. ('session.save_handler', 'files'),
  2015. ('session.save_path', '/var/lib/hhvm/sessions'),
  2016. ('session.gc_maxlifetime', '1440'),
  2017. ('hhvm.log.level', 'Warning'),
  2018. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  2019. ('hhvm.log.runtime_error_reporting_level', '8191'),
  2020. ('hhvm.mysql.typed_results', 'false'),
  2021. ]),
  2022. },
  2023. 'cli': {
  2024. 'ini': '/etc/php5/cli/php.ini',
  2025. },
  2026. 'apache2': {
  2027. 'ini': '/etc/php5/apache2/php.ini',
  2028. },
  2029. 'xcache': {
  2030. 'ini': '/etc/php5/mods-available/xcache.ini',
  2031. 'defaults': {},
  2032. },
  2033. },
  2034. }, grain="os"),
  2035. 'fpm': {
  2036. 'service': {
  2037. 'enabled': True,
  2038. 'opts': {},
  2039. },
  2040. 'config': {
  2041. 'ini': {
  2042. 'opts': {},
  2043. 'settings': {},
  2044. },
  2045. 'conf': {
  2046. 'opts': {},
  2047. 'settings': {},
  2048. },
  2049. },
  2050. 'pools': {
  2051. 'default.conf': {
  2052. 'enabled': False,
  2053. 'opts': {},
  2054. },
  2055. },
  2056. },
  2057. 'hhvm': {
  2058. 'service': {
  2059. 'enabled': True,
  2060. 'opts': {},
  2061. },
  2062. 'config': {
  2063. 'server': {
  2064. 'opts': {},
  2065. 'settings': {},
  2066. },
  2067. 'php': {
  2068. 'opts': {},
  2069. 'settings': {},
  2070. },
  2071. },
  2072. },
  2073. 'cli': {
  2074. 'ini': {
  2075. 'opts': {},
  2076. 'settings': {},
  2077. }
  2078. },
  2079. 'apache2': {
  2080. 'ini': {
  2081. 'opts': {},
  2082. 'settings': {},
  2083. }
  2084. },
  2085. 'xcache': {
  2086. 'ini': {
  2087. 'defaults': {
  2088. 'xcache-common': {
  2089. 'extension': 'xcache.so',
  2090. },
  2091. 'xcache.admin': {
  2092. 'xcache.admin.enable_auth': 'On',
  2093. },
  2094. 'xcache': {
  2095. 'xcache.shm_scheme': '"mmap"',
  2096. 'xcache.size': '60M',
  2097. 'xcache.count': '1',
  2098. 'xcache.slots': '8K',
  2099. 'xcache.ttl': '0',
  2100. 'xcache.gc_interval': '0',
  2101. 'xcache.var_size': '4M',
  2102. 'xcache.var_count': '1',
  2103. 'xcache.var_slots': '8K',
  2104. 'xcache.var_ttl': '0',
  2105. 'xcache.var_maxttl': '0',
  2106. 'xcache.var_gc_interval': '300',
  2107. 'xcache.var_namespace_mode': '0',
  2108. 'xcache.var_namespace': '""',
  2109. 'xcache.readonly_protection': 'Off',
  2110. 'xcache.mmap_path': '"/dev/zero"',
  2111. 'xcache.coredump_directory': '""',
  2112. 'xcache.coredump_type': '0',
  2113. 'xcache.disable_on_crash': 'Off',
  2114. 'xcache.experimental': 'Off',
  2115. 'xcache.cacher': 'On',
  2116. 'xcache.stat': 'On',
  2117. 'xcache.optimizer': 'Off',
  2118. },
  2119. 'xcache.coverager': {
  2120. 'xcache.coverager': 'Off',
  2121. 'xcache.coverager_autostart': 'On',
  2122. 'xcache.coveragedump_directory': '""',
  2123. },
  2124. },
  2125. 'opts': {},
  2126. 'settings': {},
  2127. }
  2128. },
  2129. 'ini': {
  2130. 'defaults': {
  2131. 'PHP': {
  2132. 'allow_url_fopen': 'On',
  2133. 'allow_url_include': 'Off',
  2134. 'asp_tags': 'Off',
  2135. 'auto_globals_jit': 'On',
  2136. 'default_mimetype': '"text/html"',
  2137. 'default_socket_timeout': 60,
  2138. 'disable_functions': [
  2139. 'pcntl_alarm',
  2140. 'pcntl_fork',
  2141. 'pcntl_waitpid',
  2142. 'pcntl_wait',
  2143. 'pcntl_wifexited',
  2144. 'pcntl_wifstopped',
  2145. 'pcntl_wifsignaled',
  2146. 'pcntl_wexitstatus',
  2147. 'pcntl_wtermsig',
  2148. 'pcntl_wstopsig',
  2149. 'pcntl_signal',
  2150. 'pcntl_signal_dispatch',
  2151. 'pcntl_get_last_error',
  2152. 'pcntl_strerror',
  2153. 'pcntl_sigprocmask',
  2154. 'pcntl_sigwaitinfo',
  2155. 'pcntl_sigtimedwait',
  2156. 'pcntl_exec',
  2157. 'pcntl_getpriority',
  2158. 'pcntl_setpriority',
  2159. ],
  2160. 'display_errors': 'Off',
  2161. 'display_startup_errors': 'Off',
  2162. 'enable_dl': 'Off',
  2163. 'engine': 'On',
  2164. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  2165. 'expose_php': 'On',
  2166. 'file_uploads': 'On',
  2167. 'html_errors': 'On',
  2168. 'ignore_repeated_errors': 'Off',
  2169. 'ignore_repeated_source': 'Off',
  2170. 'implicit_flush': 'Off',
  2171. 'log_errors': 'On',
  2172. 'log_errors_max_len': 1024,
  2173. 'max_execution_time': 30,
  2174. 'max_file_uploads': 20,
  2175. 'max_input_nesting_level': 64,
  2176. 'max_input_time': 60,
  2177. 'max_input_vars': 1000,
  2178. 'memory_limit': '128M',
  2179. 'output_buffering': 4096,
  2180. 'post_max_size': '8M',
  2181. 'precision': 14,
  2182. 'register_argc_argv': 'Off',
  2183. 'report_memleaks': 'On',
  2184. 'request_order': 'GP',
  2185. 'serialize_precision': 17,
  2186. 'short_open_tag': 'Off',
  2187. 'track_errors': 'Off',
  2188. 'upload_max_filesize': '2M',
  2189. 'variables_order': 'GPCS',
  2190. 'zend.enable_gc': 'On',
  2191. 'zlib.output_compression': 'Off',
  2192. },
  2193. 'CLI Server': {
  2194. 'cli_server.color': 'On'
  2195. },
  2196. 'Date': {
  2197. 'date.timezone': 'America/New_York'
  2198. },
  2199. 'Pdo_mysql': {
  2200. 'pdo_mysql.cache_size': 2000
  2201. },
  2202. 'mail function': {
  2203. 'SMTP': 'localhost',
  2204. 'mail.add_x_header': 'On'
  2205. },
  2206. 'SQL': {
  2207. 'sql.safe_mode': 'Off'
  2208. },
  2209. 'ODBC': {
  2210. 'odbc.allow_persistent': 'On',
  2211. 'odbc.check_persistent': 'On',
  2212. 'odbc.max_persistent': '-1',
  2213. 'odbc.max_links': '-1',
  2214. 'odbc.defaultlrl': 4096,
  2215. 'odbc.defaultbinmode': 1
  2216. },
  2217. 'Interbase': {
  2218. 'ibase.allow_persistent': 1,
  2219. 'ibase.max_persistent': -1,
  2220. 'ibase.max_links': -1,
  2221. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  2222. 'ibase.dateformat': '"%Y-%m-%d"',
  2223. 'ibase.timeformat': '"%H:%M:%S"'
  2224. },
  2225. 'MySQL': {
  2226. 'mysql.allow_local_infile': 'On',
  2227. 'mysql.allow_persistent': 'On',
  2228. 'mysql.cache_size': '2000',
  2229. 'mysql.max_persistent': -1,
  2230. 'mysql.max_links': -1,
  2231. 'mysql.connect_timeout': 60,
  2232. 'mysql.trace_mode': 'Off'
  2233. },
  2234. 'MySQLi': {
  2235. 'mysqli.max_persistent': -1,
  2236. 'mysqli.allow_persistent': 'On',
  2237. 'mysqli.max_links': -1,
  2238. 'mysqli.cache_size': 2000,
  2239. 'mysqli.default_port': 3306,
  2240. 'mysqli.reconnect': 'Off'
  2241. },
  2242. 'mysqlnd': {
  2243. 'mysqlnd.collect_statistics': 'On',
  2244. 'mysqlnd.collect_memory_statistics': 'Off'
  2245. },
  2246. 'PostgreSQL': {
  2247. 'pgsql.allow_persistent': 'On',
  2248. 'pgsql.auto_reset_persistent': 'Off',
  2249. 'pgsql.max_persistent': -1,
  2250. 'pgsql.max_links': -1,
  2251. 'pgsql.ignore_notice': 0,
  2252. 'pgsql.log_notice': 0
  2253. },
  2254. 'Sybase-CT': {
  2255. 'sybct.allow_persistent': 'On',
  2256. 'sybct.max_persistent': -1,
  2257. 'sybct.max_links': -1,
  2258. 'sybct.min_server_severity': 10,
  2259. 'sybct.min_client_severity': 10
  2260. },
  2261. 'bcmath': {
  2262. 'bcmath.scale': 0
  2263. },
  2264. 'Session': {
  2265. 'session.save_handler': 'files',
  2266. 'session.use_strict_mode': 0,
  2267. 'session.use_cookies': 1,
  2268. 'session.use_only_cookies': 1,
  2269. 'session.name': 'PHPSESSID',
  2270. 'session.auto_start': 0,
  2271. 'session.cookie_lifetime': 0,
  2272. 'session.cookie_path': '/',
  2273. 'session.serialize_handler': 'php',
  2274. 'session.gc_probability': 0,
  2275. 'session.gc_divisor': 1000,
  2276. 'session.gc_maxlifetime': 1440,
  2277. 'session.bug_compat_42': 'Off',
  2278. 'session.bug_compat_warn': 'Off',
  2279. 'session.cache_limiter': 'nocache',
  2280. 'session.cache_expire': '180',
  2281. 'session.use_trans_sid': 0,
  2282. 'session.hash_function': 0,
  2283. 'session.hash_bits_per_character': 5,
  2284. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  2285. },
  2286. 'MSSQL': {
  2287. 'mssql.allow_persistent': 'On',
  2288. 'mssql.max_persistent': -1,
  2289. 'mssql.max_links': -1,
  2290. 'mssql.min_error_severity': 10,
  2291. 'mssql.min_message_severity': 10,
  2292. 'mssql.compatibility_mode': 'Off',
  2293. 'mssql.secure_connection': 'Off'
  2294. },
  2295. 'Tidy': {
  2296. 'tidy.clean_output': 'Off'
  2297. },
  2298. 'soap': {
  2299. 'soap.wsdl_cache_enabled': 1,
  2300. 'soap.wsdl_cache_dir': '"/tmp"',
  2301. 'soap.wsdl_cache_ttl': 86400,
  2302. 'soap.wsdl_cache_limit': 5
  2303. },
  2304. 'ldap': {
  2305. 'ldap.max_links': -1
  2306. },
  2307. },
  2308. },
  2309. }, merge=True) %}
  2310. {%- endif %}
  2311. {%- endif %}
  2312. {%- elif salt['grains.get']('os') == "Debian" %}
  2313. {%- if php_version|string == '5' %}
  2314. {%- set confdir = '/etc/php5' %}
  2315. {%- else %}
  2316. {%- set confdir = '/etc/php/' + php_version %}
  2317. {%- endif %}
  2318. {%- set php = salt['pillar.get']('php', {
  2319. 'lookup': salt['grains.filter_by']({
  2320. 'Debian': {
  2321. 'pkgs': {
  2322. 'adodb': 'libphp-adodb',
  2323. 'apache2': 'libapache2-mod-php' + php_version,
  2324. 'apc': 'php-apcu',
  2325. 'apcu': 'php-apcu-bc',
  2326. 'bcmath': 'php' + php_version + '-bcmath',
  2327. 'bz2': 'php' + php_version + '-bz2',
  2328. 'build_pkgs': [
  2329. 'libssl-dev',
  2330. 'libcurl4-openssl-dev',
  2331. 'pkg-config',
  2332. 'libsslcommon2-dev',
  2333. 'gcc',
  2334. 'make',
  2335. 'autoconf',
  2336. 'libc-dev',
  2337. 'pkg-config',
  2338. ],
  2339. 'cache-lite': 'php-cache-lite',
  2340. 'cgi': 'php' + php_version + '-cgi',
  2341. 'cli': 'php' + php_version + '-cli',
  2342. 'composer_bin': 'composer',
  2343. 'console-table': 'php-console-table',
  2344. 'curl': 'php' + php_version + '-curl',
  2345. 'dba': 'php' + php_version + '-dba',
  2346. 'dev': 'php' + php_version + '-dev',
  2347. 'ext_conf_path': '/etc/php/' + php_version + '/mods-available',
  2348. 'fpm': 'php' + php_version + '-fpm',
  2349. 'gd': 'php' + php_version + '-gd',
  2350. 'gearman': 'php-gearman',
  2351. 'geoip': 'php-geoip',
  2352. 'geshi': 'php-geshi',
  2353. 'gettext': 'php' + php_version,
  2354. 'gmp': 'php' + php_version + '-gmp',
  2355. 'hhvm': 'hhvm',
  2356. 'igbinary': 'php-igbinary',
  2357. 'imagick': 'php-imagick',
  2358. 'imap': 'php' + php_version + '-imap',
  2359. 'intl': 'php' + php_version + '-intl',
  2360. 'json': 'php' + php_version + '-json',
  2361. 'ldap': 'php' + php_version + '-ldap',
  2362. 'local_bin': '/usr/local/bin',
  2363. 'auth-sasl': 'php-auth-sasl',
  2364. 'mail': 'php-mail',
  2365. 'mbstring': 'php' + php_version + '-mbstring',
  2366. 'mcrypt': 'php' + php_version + '-mcrypt',
  2367. 'memcache': 'php-memcache',
  2368. 'memcached': 'php-memcached',
  2369. 'mongo': 'php-mongo',
  2370. 'mongodb': 'php-mongodb',
  2371. 'msgpack': 'php-msgpack',
  2372. 'mysql': 'php' + php_version + '-mysql',
  2373. 'mysqlnd': 'php' + php_version + '-mysql',
  2374. 'net-smtp': 'php-net-smtp',
  2375. 'net4': 'php-net-ipv4',
  2376. 'net6': 'php-net-ipv6',
  2377. 'oauth': 'php-oauth',
  2378. 'opcache': 'php' + php_version + '-opcache',
  2379. 'pear': 'php-pear',
  2380. 'pgsql': 'php' + php_version + '-pgsql',
  2381. 'php': 'php' + php_version,
  2382. 'phpenmod_command': 'phpenmod -v' + php_version,
  2383. 'pspell': 'php' + php_version + '-pspell',
  2384. 'readline': 'php' + php_version + '-readline',
  2385. 'redis': 'php-redis',
  2386. 'seclib': ['php-phpseclib', 'php-seclib'],
  2387. 'snmp': 'php' + php_version + '-snmp',
  2388. 'soap': 'php' + php_version + '-soap',
  2389. 'ssh2': 'php-ssh2',
  2390. 'sqlite': 'php' + php_version + '-sqlite3',
  2391. 'suhosin5_ext': 'suhosin.so',
  2392. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  2393. 'suhosin7_ext': 'suhosin7.so',
  2394. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  2395. 'sybase': 'php' + php_version + '-sybase',
  2396. 'tcpdf': 'php-tcpdf',
  2397. 'temp_dir': '/tmp',
  2398. 'tidy': 'php' + php_version + '-tidy',
  2399. 'xdebug': 'php-xdebug',
  2400. 'xml': ['php' + php_version + '-xml', 'php' + php_version + '-xmlrpc'],
  2401. 'xsl': 'php' + php_version + '-xsl',
  2402. 'zip': 'php' + php_version + '-zip',
  2403. },
  2404. 'fpm': {
  2405. 'conf': confdir + '/fpm/php-fpm.conf',
  2406. 'ini': confdir + '/fpm/php.ini',
  2407. 'pools': confdir + '/fpm/pool.d',
  2408. 'user': 'root',
  2409. 'group': 'root',
  2410. 'service': 'php' + php_version + '-fpm',
  2411. 'user': 'root',
  2412. 'group': 'root',
  2413. 'defaults': odict([
  2414. ('global', odict([
  2415. ('pid', '/var/run/php' + php_version + '-fpm.pid'),
  2416. ('error_log', '/var/log/php' + php_version + '-fpm.log'),
  2417. ])),
  2418. ('include', confdir + '/fpm/pool.d/*.conf'),
  2419. ]),
  2420. },
  2421. 'hhvm': {
  2422. 'conf': '/etc/hhvm/server.ini',
  2423. 'ini': '/etc/hhvm/php.ini',
  2424. 'service': 'hhvm',
  2425. 'defaults': {},
  2426. 'server': odict([
  2427. ('pid', '/var/run/hhvm/pid'),
  2428. ('hhvm.server.port', '9000'),
  2429. ('hhvm.server.type', 'fastcgi'),
  2430. ('hhvm.server.default_document', 'index.php'),
  2431. ('hhvm.log.use_log_file', 'true'),
  2432. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  2433. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  2434. ]),
  2435. 'php': odict([
  2436. ('session.save_handler', 'files'),
  2437. ('session.save_path', '/var/lib/hhvm/sessions'),
  2438. ('session.gc_maxlifetime', '1440'),
  2439. ('hhvm.log.level', 'Warning'),
  2440. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  2441. ('hhvm.log.runtime_error_reporting_level', '8191'),
  2442. ('hhvm.mysql.typed_results', 'false'),
  2443. ]),
  2444. },
  2445. 'cli': {
  2446. 'ini': confdir + '/cli/php.ini',
  2447. },
  2448. 'apache2': {
  2449. 'ini': confdir + '/apache2/php.ini',
  2450. },
  2451. },
  2452. }),
  2453. 'fpm': {
  2454. 'service': {
  2455. 'enabled': True,
  2456. 'opts': {},
  2457. },
  2458. 'config': {
  2459. 'ini': {
  2460. 'opts': {},
  2461. 'settings': {},
  2462. },
  2463. 'conf': {
  2464. 'opts': {},
  2465. 'settings': {},
  2466. },
  2467. },
  2468. 'pools': {},
  2469. },
  2470. 'hhvm': {
  2471. 'service': {
  2472. 'enabled': True,
  2473. 'opts': {},
  2474. },
  2475. 'config': {
  2476. 'server': {
  2477. 'opts': {},
  2478. 'settings': {},
  2479. },
  2480. 'php': {
  2481. 'opts': {},
  2482. 'settings': {},
  2483. },
  2484. },
  2485. },
  2486. 'cli': {
  2487. 'ini': {
  2488. 'opts': {},
  2489. 'settings': {},
  2490. }
  2491. },
  2492. 'apache2': {
  2493. 'ini': {
  2494. 'opts': {},
  2495. 'settings': {},
  2496. }
  2497. },
  2498. 'ini': {
  2499. 'defaults': {
  2500. 'PHP': {
  2501. 'allow_url_fopen': 'On',
  2502. 'allow_url_include': 'Off',
  2503. 'asp_tags': 'Off',
  2504. 'auto_globals_jit': 'On',
  2505. 'default_mimetype': '"text/html"',
  2506. 'default_socket_timeout': 60,
  2507. 'disable_functions': [
  2508. 'pcntl_alarm',
  2509. 'pcntl_fork',
  2510. 'pcntl_waitpid',
  2511. 'pcntl_wait',
  2512. 'pcntl_wifexited',
  2513. 'pcntl_wifstopped',
  2514. 'pcntl_wifsignaled',
  2515. 'pcntl_wexitstatus',
  2516. 'pcntl_wtermsig',
  2517. 'pcntl_wstopsig',
  2518. 'pcntl_signal',
  2519. 'pcntl_signal_dispatch',
  2520. 'pcntl_get_last_error',
  2521. 'pcntl_strerror',
  2522. 'pcntl_sigprocmask',
  2523. 'pcntl_sigwaitinfo',
  2524. 'pcntl_sigtimedwait',
  2525. 'pcntl_exec',
  2526. 'pcntl_getpriority',
  2527. 'pcntl_setpriority',
  2528. ],
  2529. 'display_errors': 'Off',
  2530. 'display_startup_errors': 'Off',
  2531. 'enable_dl': 'Off',
  2532. 'engine': 'On',
  2533. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  2534. 'expose_php': 'On',
  2535. 'file_uploads': 'On',
  2536. 'html_errors': 'On',
  2537. 'ignore_repeated_errors': 'Off',
  2538. 'ignore_repeated_source': 'Off',
  2539. 'implicit_flush': 'Off',
  2540. 'log_errors': 'On',
  2541. 'log_errors_max_len': 1024,
  2542. 'max_execution_time': 30,
  2543. 'max_file_uploads': 20,
  2544. 'max_input_nesting_level': 64,
  2545. 'max_input_time': 60,
  2546. 'max_input_vars': 1000,
  2547. 'memory_limit': '128M',
  2548. 'output_buffering': 4096,
  2549. 'post_max_size': '8M',
  2550. 'precision': 14,
  2551. 'register_argc_argv': 'Off',
  2552. 'report_memleaks': 'On',
  2553. 'request_order': 'GP',
  2554. 'serialize_precision': 17,
  2555. 'short_open_tag': 'Off',
  2556. 'track_errors': 'Off',
  2557. 'upload_max_filesize': '2M',
  2558. 'variables_order': 'GPCS',
  2559. 'zend.enable_gc': 'On',
  2560. 'zlib.output_compression': 'Off',
  2561. },
  2562. 'CLI Server': {
  2563. 'cli_server.color': 'On'
  2564. },
  2565. 'Date': {
  2566. 'date.timezone': 'America/New_York'
  2567. },
  2568. 'Pdo_mysql': {
  2569. 'pdo_mysql.cache_size': 2000
  2570. },
  2571. 'mail function': {
  2572. 'SMTP': 'localhost',
  2573. 'mail.add_x_header': 'On'
  2574. },
  2575. 'SQL': {
  2576. 'sql.safe_mode': 'Off'
  2577. },
  2578. 'ODBC': {
  2579. 'odbc.allow_persistent': 'On',
  2580. 'odbc.check_persistent': 'On',
  2581. 'odbc.max_persistent': '-1',
  2582. 'odbc.max_links': '-1',
  2583. 'odbc.defaultlrl': 4096,
  2584. 'odbc.defaultbinmode': 1
  2585. },
  2586. 'Interbase': {
  2587. 'ibase.allow_persistent': 1,
  2588. 'ibase.max_persistent': -1,
  2589. 'ibase.max_links': -1,
  2590. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  2591. 'ibase.dateformat': '"%Y-%m-%d"',
  2592. 'ibase.timeformat': '"%H:%M:%S"'
  2593. },
  2594. 'MySQL': {
  2595. 'mysql.allow_local_infile': 'On',
  2596. 'mysql.allow_persistent': 'On',
  2597. 'mysql.cache_size': '2000',
  2598. 'mysql.max_persistent': -1,
  2599. 'mysql.max_links': -1,
  2600. 'mysql.connect_timeout': 60,
  2601. 'mysql.trace_mode': 'Off'
  2602. },
  2603. 'MySQLi': {
  2604. 'mysqli.max_persistent': -1,
  2605. 'mysqli.allow_persistent': 'On',
  2606. 'mysqli.max_links': -1,
  2607. 'mysqli.cache_size': 2000,
  2608. 'mysqli.default_port': 3306,
  2609. 'mysqli.reconnect': 'Off'
  2610. },
  2611. 'mysqlnd': {
  2612. 'mysqlnd.collect_statistics': 'On',
  2613. 'mysqlnd.collect_memory_statistics': 'Off'
  2614. },
  2615. 'PostgreSQL': {
  2616. 'pgsql.allow_persistent': 'On',
  2617. 'pgsql.auto_reset_persistent': 'Off',
  2618. 'pgsql.max_persistent': -1,
  2619. 'pgsql.max_links': -1,
  2620. 'pgsql.ignore_notice': 0,
  2621. 'pgsql.log_notice': 0
  2622. },
  2623. 'Sybase-CT': {
  2624. 'sybct.allow_persistent': 'On',
  2625. 'sybct.max_persistent': -1,
  2626. 'sybct.max_links': -1,
  2627. 'sybct.min_server_severity': 10,
  2628. 'sybct.min_client_severity': 10
  2629. },
  2630. 'bcmath': {
  2631. 'bcmath.scale': 0
  2632. },
  2633. 'Session': {
  2634. 'session.save_handler': 'files',
  2635. 'session.use_strict_mode': 0,
  2636. 'session.use_cookies': 1,
  2637. 'session.use_only_cookies': 1,
  2638. 'session.name': 'PHPSESSID',
  2639. 'session.auto_start': 0,
  2640. 'session.cookie_lifetime': 0,
  2641. 'session.cookie_path': '/',
  2642. 'session.serialize_handler': 'php',
  2643. 'session.gc_probability': 0,
  2644. 'session.gc_divisor': 1000,
  2645. 'session.gc_maxlifetime': 1440,
  2646. 'session.bug_compat_42': 'Off',
  2647. 'session.bug_compat_warn': 'Off',
  2648. 'session.cache_limiter': 'nocache',
  2649. 'session.cache_expire': '180',
  2650. 'session.use_trans_sid': 0,
  2651. 'session.hash_function': 0,
  2652. 'session.hash_bits_per_character': 5,
  2653. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  2654. },
  2655. 'MSSQL': {
  2656. 'mssql.allow_persistent': 'On',
  2657. 'mssql.max_persistent': -1,
  2658. 'mssql.max_links': -1,
  2659. 'mssql.min_error_severity': 10,
  2660. 'mssql.min_message_severity': 10,
  2661. 'mssql.compatibility_mode': 'Off',
  2662. 'mssql.secure_connection': 'Off'
  2663. },
  2664. 'Tidy': {
  2665. 'tidy.clean_output': 'Off'
  2666. },
  2667. 'soap': {
  2668. 'soap.wsdl_cache_enabled': 1,
  2669. 'soap.wsdl_cache_dir': '"/tmp"',
  2670. 'soap.wsdl_cache_ttl': 86400,
  2671. 'soap.wsdl_cache_limit': 5
  2672. },
  2673. 'ldap': {
  2674. 'ldap.max_links': -1
  2675. },
  2676. },
  2677. },
  2678. }, merge=True) %}
  2679. {%- else %}
  2680. {%- set useversion = php_version | replace(".", "-") -%}
  2681. {#- Red Hat Softwarecollection prefix lookup belongs to the Red Hat part
  2682. further down but has to go here due to Jinja parsing rules. -#}
  2683. {%- if salt['pillar.get']('php:use_scl_repo', False) -%}
  2684. {%- set rh_prefix = 'rh-php{}-'.format(salt['pillar.get']('php:scl_php_version', '')) -%}
  2685. {%- set sclo_prefix = 'sclo-php{}-'.format(salt['pillar.get']('php:scl_php_version', '')) -%}
  2686. {%- set path_suffix = 'opt/rh/rh-php{}/'.format(salt['pillar.get']('php:scl_php_version', '')) -%}
  2687. {%- else -%}
  2688. {%- set rh_prefix = '' -%}
  2689. {%- set sclo_prefix = '' -%}
  2690. {%- set path_suffix = '' -%}
  2691. {%- endif -%}
  2692. {%- set php = salt['pillar.get']('php', {
  2693. 'lookup': salt['grains.filter_by']({
  2694. 'Debian': {
  2695. 'pkgs': {
  2696. 'adodb': 'php5-adodb',
  2697. 'apache2': 'libapache2-mod-php5',
  2698. 'apc': 'php-apc',
  2699. 'apcu': 'php5-apcu',
  2700. 'bcmath': 'php5',
  2701. 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev'],
  2702. 'bz2': 'php5-bz2',
  2703. 'cache-lite': 'php-cache-lite',
  2704. 'cgi': 'php5-cgi',
  2705. 'cli': 'php5-cli',
  2706. 'console-table': 'php-console-table',
  2707. 'composer_bin': 'composer',
  2708. 'curl': 'php5-curl',
  2709. 'dba': 'php5-dba',
  2710. 'dev': ['php5-dev','build-essential'],
  2711. 'ext_conf_path': '/etc/php5/mods-available',
  2712. 'fpm': 'php5-fpm',
  2713. 'gd': 'php5-gd',
  2714. 'gearman': 'php5-gearman',
  2715. 'geoip': 'php5-geoip',
  2716. 'geshi': 'php-geshi',
  2717. 'gettext': 'php-gettext',
  2718. 'gmp': 'php5-gmp',
  2719. 'hhvm': 'hhvm',
  2720. 'imagick': 'php5-imagick',
  2721. 'imap': 'php5-imap',
  2722. 'intl': 'php5-intl',
  2723. 'json': 'php5-json',
  2724. 'ldap': 'php5-ldap',
  2725. 'local_bin': '/usr/local/bin',
  2726. 'auth-sasl': 'php-auth-sasl',
  2727. 'mail': 'php-mail',
  2728. 'mbstring': 'php5',
  2729. 'mcrypt': 'php5-mcrypt',
  2730. 'mdb2': 'php-mdb2',
  2731. 'mdb2-driver-mysql': 'php-mdb2-driver-mysql',
  2732. 'mdb2-driver-pgsql': 'php-mdb2-driver-pgsql',
  2733. 'memcache': 'php5-memcache',
  2734. 'memcached': 'php5-memcached',
  2735. 'mysql': 'php5-mysql',
  2736. 'mysqlnd': 'php5-mysqlnd',
  2737. 'net-smtp': 'php-net-smtp',
  2738. 'net4': 'php-net-ipv4',
  2739. 'net6': 'php-net-ipv6',
  2740. 'oauth': 'php5-oauth',
  2741. 'opcache': 'php5',
  2742. 'pear': 'php-pear',
  2743. 'pgsql': 'php5-pgsql',
  2744. 'php': 'php5',
  2745. 'phpenmod_command': 'php5enmod',
  2746. 'pspell': 'php5-pspell',
  2747. 'redis': 'php5-redis',
  2748. 'seclib': 'php-seclib',
  2749. 'snmp': 'php5-snmp',
  2750. 'soap': 'php-soap',
  2751. 'sqlite': 'php5-sqlite',
  2752. 'ssh2': 'php5-ssh2',
  2753. 'suhosin5_ext': 'suhosin.so',
  2754. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  2755. 'suhosin7_ext': 'suhosin7.so',
  2756. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  2757. 'svn': 'php5-svn',
  2758. 'sybase': 'php5-sybase',
  2759. 'tcpdf': 'php-tcpdf',
  2760. 'temp_dir': '/tmp',
  2761. 'tidy': 'php5-tidy',
  2762. 'uuid': 'php-uuid',
  2763. 'xcache': 'php5-xcache',
  2764. 'xdebug': 'php5-xdebug',
  2765. 'xml': 'php5',
  2766. 'xsl': 'php5-xsl',
  2767. 'zip': 'php5',
  2768. },
  2769. 'fpm': {
  2770. 'conf': '/etc/php5/fpm/php-fpm.conf',
  2771. 'ini': '/etc/php5/fpm/php.ini',
  2772. 'pools': '/etc/php5/fpm/pool.d',
  2773. 'service': 'php5-fpm',
  2774. 'user': 'root',
  2775. 'group': 'root',
  2776. 'defaults': odict([
  2777. ('global', odict([
  2778. ('pid', '/var/run/php5-fpm.pid'),
  2779. ('error_log', '/var/log/php5-fpm.log'),
  2780. ])),
  2781. ('include', '/etc/php5/fpm/pool.d/*.conf'),
  2782. ]),
  2783. },
  2784. 'hhvm': {
  2785. 'conf': '/etc/hhvm/server.ini',
  2786. 'ini': '/etc/hhvm/php.ini',
  2787. 'service': 'hhvm',
  2788. 'defaults': {},
  2789. 'server': odict([
  2790. ('pid', '/var/run/hhvm/pid'),
  2791. ('hhvm.server.port', '9000'),
  2792. ('hhvm.server.type', 'fastcgi'),
  2793. ('hhvm.server.default_document', 'index.php'),
  2794. ('hhvm.log.use_log_file', 'true'),
  2795. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  2796. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  2797. ]),
  2798. 'php': odict([
  2799. ('session.save_handler', 'files'),
  2800. ('session.save_path', '/var/lib/hhvm/sessions'),
  2801. ('session.gc_maxlifetime', '1440'),
  2802. ('hhvm.log.level', 'Warning'),
  2803. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  2804. ('hhvm.log.runtime_error_reporting_level', '8191'),
  2805. ('hhvm.mysql.typed_results', 'false'),
  2806. ]),
  2807. },
  2808. 'cli': {
  2809. 'ini': '/etc/php5/cli/php.ini',
  2810. },
  2811. 'apache2': {
  2812. 'ini': '/etc/php5/apache2/php.ini',
  2813. },
  2814. 'xcache': {
  2815. 'ini': '/etc/php5/mods-available/xcache.ini',
  2816. 'defaults': {},
  2817. },
  2818. },
  2819. 'Gentoo' : {
  2820. 'pkgs': {
  2821. 'apache2': [{'name': 'dev-lang/php','version': ':' + php_version + '[apache2]'}],
  2822. 'apc': [{'name': 'dev-php/pecl-apcu_bc','version': '[php_targets_php' + useversion + ']'}],
  2823. 'apcu': [{'name': 'dev-php/pecl-apcu','version': '[php_targets_php' + useversion + ']'}],
  2824. 'bcmath': [{'name': 'dev-lang/php','version': ':' + php_version + '[bcmath]'}],
  2825. 'bz2': [{'name': 'dev-lang/php','version': ':' + php_version + '[bzip2]'}],
  2826. 'cache-lite': 'dev-php/PEAR-Cache_Lite',
  2827. 'cgi': [{'name': 'dev-lang/php','version': ':' + php_version + '[cgi]'}],
  2828. 'cli': [{'name': 'dev-lang/php','version': ':' + php_version + '[cli]'}],
  2829. 'composer_bin': 'composer',
  2830. 'console-table': 'dev-php/PEAR-Console_Table',
  2831. 'curl': [{'name': 'dev-lang/php','version': ':' + php_version + '[curl]'}],
  2832. 'ext_conf_path': '/etc/php/fpm-php' + php_version + '/ext',
  2833. 'fpm': [{'name': 'dev-lang/php','version': ':' + php_version + '[fpm]'}],
  2834. 'gd': [{'name': 'dev-lang/php','version': ':' + php_version + '[gd]'}],
  2835. 'geoip': [{'name': 'dev-php/pecl-geoip','version': '[php_targets_php' + useversion + ']'}],
  2836. 'gettext': 'dev-php/PEAR-File_Gettext',
  2837. 'gmp': [{'name': 'dev-lang/php','version': ':' + php_version + '[gmp]'}],
  2838. 'imagick': [{'name': 'dev-php/pecl-imagick','version': '[php_targets_php' + useversion + ']'}],
  2839. 'imap': [{'name': 'dev-lang/php','version': ':' + php_version + '[imap]'}],
  2840. 'intl': [{'name': 'dev-lang/php','version': ':' + php_version + '[intl]'}],
  2841. 'json': [{'name': 'dev-lang/php','version': ':' + php_version + '[json]'}],
  2842. 'ldap': [{'name': 'dev-lang/php','version': ':' + php_version + '[ldap]'}],
  2843. 'local_bin': '/usr/local/bin',
  2844. 'auth-sasl': 'dev-php/PEAR-Auth_SASL',
  2845. 'mail': 'dev-php/PHPMailer',
  2846. 'memcache': [{'name': 'dev-php/pecl-memcache','version': '[php_targets_php' + useversion + ']'}],
  2847. 'memcached': [{'name': 'dev-php/pecl-memcached','version': '[php_targets_php' + useversion + ']'}],
  2848. 'mongo': [{'name': 'dev-php/pecl-mongo','version': '[php_targets_php' + useversion + ']'}],
  2849. 'mongodb': [{'name': 'dev-php/pecl-mongodb','version': '[php_targets_php' + useversion + ']'}],
  2850. 'mysqlnd': [{'name': 'dev-lang/php','version': ':' + php_version + '[mysql]'}],
  2851. 'mysql': [{'name': 'dev-lang/php','version': ':' + php_version + '[mysqli]'}],
  2852. 'net-smtp': 'dev-php/PEAR-Net_SMTP',
  2853. 'net4': 'dev-php/PEAR-Net_IPv4',
  2854. 'net6': 'dev-php/PEAR-Net_IPv6',
  2855. 'oauth': [{'name': 'dev-php/pecl-oauth','version': '[php_targets_php' + useversion + ']'}],
  2856. 'opcache': [{'name': 'dev-lang/php','version': ':' + php_version + '[opcache]'}],
  2857. 'pear': 'dev-php/pear',
  2858. 'pgsql': [{'name': 'dev-lang/php','version': ':' + php_version + '[postgres]'}],
  2859. 'php': [{'name': 'dev-lang/php','version': ':' + php_version}],
  2860. 'pspell': [{'name': 'dev-lang/php','version': ':' + php_version + '[spell]'}],
  2861. 'redis': [{'name': 'dev-php/pecl-redis','version': '[php_targets_php' + useversion + ']'}],
  2862. 'snmp': [{'name': 'dev-lang/php','version': ':' + php_version + '[snmp]'}],
  2863. 'soap': [{'name': 'dev-lang/php','version': ':' + php_version + '[soap]'}],
  2864. 'ssh2': [{'name': 'dev-php/pecl-ssh2','version': '[php_targets_php' + useversion + ']'}],
  2865. 'sqlite': [{'name': 'dev-lang/php','version': ':' + php_version + '[sqlite]'}],
  2866. 'sybase': [{'name': 'dev-lang/php','version': ':' + php_version + '[sybase-ct]'}],
  2867. 'tcpdf': 'dev-php/tcpdf',
  2868. 'temp_dir': '/tmp',
  2869. 'tidy': [{'name': 'dev-lang/php','version': ':' + php_version + '[tidy]'}],
  2870. 'xdebug': [{'name': 'dev-lang/php','version': ':' + php_version + '[debug]'}],
  2871. 'xml': [{'name': 'dev-lang/php','version': ':' + php_version + '[xml]'}],
  2872. 'xsl': [{'name': 'dev-lang/php','version': ':' + php_version + '[xslt]'}],
  2873. 'zip': [{'name': 'dev-lang/php','version': ':' + php_version + '[zip]'}],
  2874. },
  2875. 'fpm': {
  2876. 'conf': '/etc/php/fpm-php' + php_version + '/php-fpm.conf',
  2877. 'ini': '/etc/php/fpm-php' + php_version + '/php.ini',
  2878. 'pools': '/etc/php/fpm-php' + php_version + '/fpm.d',
  2879. 'service': 'php-fpm',
  2880. 'user': 'root',
  2881. 'group': 'root',
  2882. 'defaults': odict([
  2883. ('global', odict([
  2884. ('pid', '/var/run/php-fpm-php' + php_version + '.pid'),
  2885. ('error_log', '/var/log/php' + php_version + '-fpm.log'),
  2886. ])),
  2887. ('include', '/etc/php/fpm-php' + php_version + '/fpm.d/*.conf'),
  2888. ]),
  2889. },
  2890. 'cli': {
  2891. 'ini': '/etc/php/cli-php' + php_version + '/php.ini',
  2892. },
  2893. 'apache2': {
  2894. 'ini': '/etc/php/apache2-php' + php_version + '/php.ini',
  2895. },
  2896. },
  2897. 'RedHat': {
  2898. 'pkgs': {
  2899. 'adodb': 'php-adodb',
  2900. 'apc': 'php-pecl-apc',
  2901. 'apcu': rh_prefix + 'php-pecl-apcu',
  2902. 'bcmath': rh_prefix + 'php-bcmath',
  2903. 'build_pkgs': ['openssl-devel', 'gcc'],
  2904. 'cache-lite': 'php-pear-Cache-Lite',
  2905. 'cgi': rh_prefix + 'php-cgi',
  2906. 'cli': rh_prefix + 'php-cli',
  2907. 'composer': 'composer',
  2908. 'composer_bin': 'composer',
  2909. 'console-table': 'php-pear-Console-Table',
  2910. 'curl': [rh_prefix + 'php-common', 'curl'],
  2911. 'dba': [rh_prefix + 'php-dba', 'dba'],
  2912. 'dev': rh_prefix + 'php-devel',
  2913. 'ext_conf_path': '/etc/' + path_suffix + 'php.d',
  2914. 'fpm': rh_prefix + 'php-fpm',
  2915. 'gd': rh_prefix + 'php-gd',
  2916. 'geoip': sclo_prefix + 'php-pecl-geoip',
  2917. 'geshi': 'php-geshi',
  2918. 'gettext': 'php-php-gettext',
  2919. 'http': sclo_prefix + 'php-pecl-http',
  2920. 'imagick': sclo_prefix + 'php-pecl-imagick',
  2921. 'imap': sclo_prefix + 'php-imap',
  2922. 'intl': rh_prefix + 'php-intl',
  2923. 'json': rh_prefix + 'php-common',
  2924. 'ldap': rh_prefix + 'php-ldap',
  2925. 'local_bin': '/usr/local/bin',
  2926. 'auth-sasl': 'php-pear-Auth-SASL',
  2927. 'mail': 'php-pear-Mail',
  2928. 'mbstring': rh_prefix + 'php-mbstring',
  2929. 'mcrypt': sclo_prefix + 'php-mcrypt',
  2930. 'memcache': 'php-pecl-memcache',
  2931. 'memcached': sclo_prefix + 'php-pecl-memcached',
  2932. 'mysql': 'php-mysql',
  2933. 'mysqlnd': rh_prefix + 'php-mysqlnd',
  2934. 'net-smtp': 'php-pear-Net-SMTP',
  2935. 'net4': 'php-pear-Net-IPv4',
  2936. 'oauth': 'php-pecl-oauth',
  2937. 'opcache': rh_prefix + 'php-opcache' if salt['pillar.get']('php:use_scl_repo', False) else 'php-pecl-zendopcache',
  2938. 'pear': rh_prefix + 'php-pear',
  2939. 'pgsql': rh_prefix + 'php-pgsql',
  2940. 'php': rh_prefix + 'php',
  2941. 'pspell': rh_prefix + 'php-pspell',
  2942. 'redis': sclo_prefix + 'php-pecl-redis',
  2943. 'seclib': 'php-phpseclib',
  2944. 'snmp': rh_prefix + 'php-snmp',
  2945. 'soap': rh_prefix + 'php-soap',
  2946. 'sqlite': rh_prefix + 'php-pdo',
  2947. 'ssh2': sclo_prefix + 'php-pecl-ssh2',
  2948. 'suhosin5_ext': 'suhosin.so',
  2949. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  2950. 'suhosin7_ext': 'suhosin7.so',
  2951. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  2952. 'tcpdf': 'php-tcpdf',
  2953. 'temp_dir': '/tmp',
  2954. 'tidy': sclo_prefix + 'php-tidy',
  2955. 'uuid': sclo_prefix + 'php-pecl-uuid',
  2956. 'xcache': 'php-xcache',
  2957. 'xdebug': sclo_prefix + 'php-pecl-xdebug',
  2958. 'xml': [rh_prefix + 'php-xml', rh_prefix + 'php-xmlrpc'],
  2959. 'xsl': rh_prefix + 'php-xml',
  2960. 'zip': rh_prefix + 'php',
  2961. },
  2962. 'fpm': {
  2963. 'conf': '/etc/' + path_suffix + 'php-fpm.conf',
  2964. 'ini': '/etc/' + path_suffix + 'php.ini',
  2965. 'pools': '/etc/' + path_suffix + 'php-fpm.d',
  2966. 'service': rh_prefix + 'php-fpm',
  2967. 'user': 'root',
  2968. 'group': 'root',
  2969. 'defaults': {
  2970. 'global': {
  2971. 'pid': '/var/' + path_suffix + 'run/php-fpm/php-fpm.pid',
  2972. 'error_log': '/var/' + path_suffix + 'log/php-fpm/error.log',
  2973. },
  2974. 'include': '/etc/' + path_suffix + 'php-fpm.d/*.conf',
  2975. },
  2976. },
  2977. 'cli': {
  2978. 'ini': '/etc/' + path_suffix + 'php.ini',
  2979. },
  2980. 'xcache': {
  2981. 'ini': '/etc/' + path_suffix + 'php.d/xcache.ini',
  2982. },
  2983. },
  2984. 'Suse': {
  2985. 'pkgs': {
  2986. 'adodb': 'php5-dba',
  2987. 'apache2': 'apache2-mod_php5',
  2988. 'cli': 'php5',
  2989. 'curl': 'php5-curl',
  2990. 'fpm': 'php5-fpm',
  2991. 'gd': 'php5-gd',
  2992. 'imap': 'php5-imap',
  2993. 'intl': 'php5-intl',
  2994. 'json': 'php5-json',
  2995. 'ldap': 'php5-ldap',
  2996. 'mbstring': 'php5-mbstring',
  2997. 'mcrypt': 'php5-mcrypt',
  2998. 'mysql': 'php5-mysql',
  2999. 'oauth': 'php5-oauth',
  3000. 'pear': 'php5-pear',
  3001. 'pgsql': 'php5-pgsql',
  3002. 'php': 'php5',
  3003. 'snmp': 'php5-snmp',
  3004. 'soap': 'php5-soap',
  3005. 'sqlite': 'php5-sqlite',
  3006. 'suhosin': 'php5-suhosin',
  3007. 'xml': ['php5-xmlreader','php5-xmlwriter','php5-xmlrpc'],
  3008. 'zip': 'php5-zip',
  3009. },
  3010. 'fpm': {
  3011. 'conf': '/etc/php-fpm.conf',
  3012. 'ini': '/etc/php.ini',
  3013. 'pools': '/etc/php-fpm.d',
  3014. 'service': 'php-fpm',
  3015. 'user': 'root',
  3016. 'group': 'root',
  3017. 'defaults': {
  3018. 'global': {
  3019. 'pid': '/var/run/php-fpm/php-fpm.pid',
  3020. 'error_log': '/var/log/php-fpm/error.log',
  3021. },
  3022. 'include': '/etc/php-fpm.d/*.conf',
  3023. },
  3024. },
  3025. 'cli': {
  3026. 'ini': '/etc/php.ini',
  3027. },
  3028. },
  3029. 'Arch': {
  3030. 'pkgs': {
  3031. 'apc': 'php-apcu',
  3032. 'apcu': 'php-apcu-bc',
  3033. 'cgi': 'php-cgi',
  3034. 'cli': 'php',
  3035. 'composer_bin': 'composer',
  3036. 'curl': 'curl',
  3037. 'fpm': 'php-fpm',
  3038. 'gd': 'php-gd',
  3039. 'geoip': 'php-geoip',
  3040. 'imap': 'php-imap',
  3041. 'intl': 'php-intl',
  3042. 'local_bin': '/usr/local/bin',
  3043. 'mcrypt': 'php-mcrypt',
  3044. 'memcache': 'php-memcache',
  3045. 'memcached': 'php-memcached',
  3046. 'pgsql': 'php-pgsql',
  3047. 'php': 'php',
  3048. 'pspell': 'php-pspell',
  3049. 'snmp': 'php-snmp',
  3050. 'sqlite': 'php-sqlite',
  3051. 'temp_dir': '/tmp',
  3052. 'tidy': 'php-tidy',
  3053. 'xcache': 'php-xcache',
  3054. 'xdebug': 'xdebug',
  3055. 'xsl': 'php-xsl',
  3056. },
  3057. 'fpm': {
  3058. 'conf': '/etc/php/php-fpm.conf',
  3059. 'ini': '/etc/php/php.ini',
  3060. 'pools': '/etc/php/fpm.d',
  3061. 'service': 'php-fpm',
  3062. 'user': 'root',
  3063. 'group': 'root',
  3064. 'defaults': {
  3065. 'global': {
  3066. 'pid': '/run/php-fpm/php-fpm.pid',
  3067. 'error_log': 'log/php-fpm.log',
  3068. },
  3069. 'include': '/etc/php/fpm.d/*.conf',
  3070. },
  3071. },
  3072. 'cli': {
  3073. 'ini': '/etc/php/php-cli.ini',
  3074. },
  3075. 'xcache': {
  3076. 'ini': '/etc/php/conf.d/xcache.ini',
  3077. },
  3078. },
  3079. 'FreeBSD': {
  3080. 'apache2': {
  3081. 'ini': '/usr/local/etc/php.ini',
  3082. 'module_config': '/usr/local/etc/apache24/modules.d/050_mod_php.conf',
  3083. 'name': 'apache24',
  3084. },
  3085. 'cli': {
  3086. 'ini': '/usr/local/etc/php.ini'
  3087. },
  3088. 'pkgs': {
  3089. 'apache2': 'mod_php' + freebsd_php_version,
  3090. 'composer_bin': 'composer',
  3091. 'cli': 'php' + freebsd_php_version,
  3092. 'ctype': 'php' + freebsd_php_version + '-ctype',
  3093. 'curl': 'php' + freebsd_php_version + '-curl',
  3094. 'dom': 'php' + freebsd_php_version + '-dom',
  3095. 'filter': 'php' + freebsd_php_version + '-filter',
  3096. 'fileinfo': 'php' + freebsd_php_version + '-fileinfo',
  3097. 'fpm': 'php' + freebsd_php_version,
  3098. 'gd': 'php' + freebsd_php_version + '-gd',
  3099. 'hash': 'php' + freebsd_php_version + '-hash',
  3100. 'iconv': 'php' + freebsd_php_version + '-iconv',
  3101. 'intl': 'php' + freebsd_php_version + '-intl',
  3102. 'json': 'php' + freebsd_php_version + '-json',
  3103. 'local_bin': '/usr/local/bin',
  3104. 'memcached': 'php' + freebsd_php_version + '-pecl-memcached',
  3105. 'mbstring': 'php' + freebsd_php_version + '-mbstring',
  3106. 'mcrypt': 'php' + freebsd_php_version + '-mcrypt',
  3107. 'mysql': 'php' + freebsd_php_version + '-mysqli',
  3108. 'opcache': 'php' + freebsd_php_version + '-opcache',
  3109. 'openssl': 'php' + freebsd_php_version + '-openssl',
  3110. 'pdo': 'php' + freebsd_php_version + '-pdo',
  3111. 'pdo_mysql': 'php' + freebsd_php_version + '-pdo_mysql',
  3112. 'pear': 'php' + freebsd_php_version + '-pear',
  3113. 'php': 'php' + freebsd_php_version,
  3114. 'phar': 'php' + freebsd_php_version + '-phar',
  3115. 'posix': 'php' + freebsd_php_version + '-posix',
  3116. 'session': 'php' + freebsd_php_version + '-session',
  3117. 'simplexml': 'php' + freebsd_php_version + '-simplexml',
  3118. 'snmp': 'php' + freebsd_php_version + '-snmp',
  3119. 'temp_dir': '/tmp',
  3120. 'tokenizer': 'php' + freebsd_php_version + '-tokenizer',
  3121. 'xdebug': 'php' + freebsd_php_version + '-pecl-xdebug',
  3122. 'xml': 'php' + freebsd_php_version + '-xml',
  3123. 'xmlwriter': 'php' + freebsd_php_version + '-xmlwriter',
  3124. 'zip': 'php' + freebsd_php_version + '-zip',
  3125. },
  3126. 'fpm': {
  3127. 'conf': '/usr/local/etc/php-fpm.conf',
  3128. 'ini': '/usr/local/etc/php.ini',
  3129. 'pools': '/usr/local/etc/php-fpm.d',
  3130. 'service': 'php-fpm',
  3131. 'user': 'root',
  3132. 'group': 'wheel',
  3133. 'defaults': {
  3134. 'global': {
  3135. 'pid': 'run/php-fpm.pid',
  3136. 'error_log': 'log/php-fpm.log',
  3137. },
  3138. 'include': '/usr/local/etc/php-fpm.d/*.conf',
  3139. },
  3140. },
  3141. },
  3142. }),
  3143. 'fpm': {
  3144. 'service': {
  3145. 'enabled': True,
  3146. 'opts': {},
  3147. },
  3148. 'config': {
  3149. 'ini': {
  3150. 'opts': {},
  3151. 'settings': {},
  3152. },
  3153. 'conf': {
  3154. 'opts': {},
  3155. 'settings': {},
  3156. },
  3157. },
  3158. 'pools': {
  3159. 'default.conf': {
  3160. 'enabled': False,
  3161. 'opts': {},
  3162. },
  3163. },
  3164. },
  3165. 'hhvm': {
  3166. 'service': {
  3167. 'enabled': True,
  3168. 'opts': {},
  3169. },
  3170. 'config': {
  3171. 'server': {
  3172. 'opts': {},
  3173. 'settings': {},
  3174. },
  3175. 'php': {
  3176. 'opts': {},
  3177. 'settings': {},
  3178. },
  3179. },
  3180. },
  3181. 'cli': {
  3182. 'ini': {
  3183. 'opts': {},
  3184. 'settings': {},
  3185. }
  3186. },
  3187. 'apache2': {
  3188. 'ini': {
  3189. 'opts': {},
  3190. 'settings': {},
  3191. }
  3192. },
  3193. 'xcache': {
  3194. 'ini': {
  3195. 'defaults': {
  3196. 'xcache-common': {
  3197. 'extension': 'xcache.so',
  3198. },
  3199. 'xcache.admin': {
  3200. 'xcache.admin.enable_auth': 'On',
  3201. },
  3202. 'xcache': {
  3203. 'xcache.shm_scheme': '"mmap"',
  3204. 'xcache.size': '60M',
  3205. 'xcache.count': '1',
  3206. 'xcache.slots': '8K',
  3207. 'xcache.ttl': '0',
  3208. 'xcache.gc_interval': '0',
  3209. 'xcache.var_size': '4M',
  3210. 'xcache.var_count': '1',
  3211. 'xcache.var_slots': '8K',
  3212. 'xcache.var_ttl': '0',
  3213. 'xcache.var_maxttl': '0',
  3214. 'xcache.var_gc_interval': '300',
  3215. 'xcache.var_namespace_mode': '0',
  3216. 'xcache.var_namespace': '""',
  3217. 'xcache.readonly_protection': 'Off',
  3218. 'xcache.mmap_path': '"/dev/zero"',
  3219. 'xcache.coredump_directory': '""',
  3220. 'xcache.coredump_type': '0',
  3221. 'xcache.disable_on_crash': 'Off',
  3222. 'xcache.experimental': 'Off',
  3223. 'xcache.cacher': 'On',
  3224. 'xcache.stat': 'On',
  3225. 'xcache.optimizer': 'Off',
  3226. },
  3227. 'xcache.coverager': {
  3228. 'xcache.coverager': 'Off',
  3229. 'xcache.coverager_autostart': 'On',
  3230. 'xcache.coveragedump_directory': '""',
  3231. },
  3232. },
  3233. 'opts': {},
  3234. 'settings': {},
  3235. }
  3236. },
  3237. 'ini': {
  3238. 'defaults': {
  3239. 'PHP': {
  3240. 'engine': 'On',
  3241. 'allow_url_fopen': 'On',
  3242. 'allow_url_include': 'Off',
  3243. 'asp_tags': 'Off',
  3244. 'auto_globals_jit': 'On',
  3245. 'default_mimetype': '"text/html"',
  3246. 'default_socket_timeout': 60,
  3247. 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',
  3248. 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
  3249. 'pcntl_sigprocmask','pcntl_sigwaitinfo','pcntl_sigtimedwait','pcntl_exec','pcntl_getpriority','pcntl_setpriority'],
  3250. 'display_errors': 'Off',
  3251. 'display_startup_errors': 'Off',
  3252. 'enable_dl': 'Off',
  3253. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  3254. 'expose_php': 'On',
  3255. 'file_uploads': 'On',
  3256. 'html_errors': 'On',
  3257. 'ignore_repeated_errors': 'Off',
  3258. 'ignore_repeated_source': 'Off',
  3259. 'implicit_flush': 'Off',
  3260. 'log_errors': 'On',
  3261. 'log_errors_max_len': 1024,
  3262. 'max_execution_time': 30,
  3263. 'max_file_uploads': 20,
  3264. 'max_input_nesting_level': 64,
  3265. 'max_input_time': 60,
  3266. 'max_input_vars': 1000,
  3267. 'memory_limit': '128M',
  3268. 'output_buffering': 4096,
  3269. 'post_max_size': '8M',
  3270. 'precision': 14,
  3271. 'register_argc_argv': 'Off',
  3272. 'report_memleaks': 'On',
  3273. 'request_order': 'GP',
  3274. 'serialize_precision': 17,
  3275. 'short_open_tag': 'Off',
  3276. 'track_errors': 'Off',
  3277. 'upload_max_filesize': '2M',
  3278. 'variables_order': 'GPCS',
  3279. 'zend.enable_gc': 'On',
  3280. 'zlib.output_compression': 'Off',
  3281. },
  3282. 'CLI Server': {
  3283. 'cli_server.color': 'On'
  3284. },
  3285. 'Date': {
  3286. 'date.timezone': 'America/New_York'
  3287. },
  3288. 'Pdo_mysql': {
  3289. 'pdo_mysql.cache_size': 2000
  3290. },
  3291. 'mail function': {
  3292. 'SMTP': 'localhost',
  3293. 'mail.add_x_header': 'On'
  3294. },
  3295. 'SQL': {
  3296. 'sql.safe_mode': 'Off'
  3297. },
  3298. 'ODBC': {
  3299. 'odbc.allow_persistent': 'On',
  3300. 'odbc.check_persistent': 'On',
  3301. 'odbc.max_persistent': '-1',
  3302. 'odbc.max_links': '-1',
  3303. 'odbc.defaultlrl': 4096,
  3304. 'odbc.defaultbinmode': 1
  3305. },
  3306. 'Interbase': {
  3307. 'ibase.allow_persistent': 1,
  3308. 'ibase.max_persistent': -1,
  3309. 'ibase.max_links': -1,
  3310. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  3311. 'ibase.dateformat': '"%Y-%m-%d"',
  3312. 'ibase.timeformat': '"%H:%M:%S"'
  3313. },
  3314. 'MySQL': {
  3315. 'mysql.allow_local_infile': 'On',
  3316. 'mysql.allow_persistent': 'On',
  3317. 'mysql.cache_size': '2000',
  3318. 'mysql.max_persistent': -1,
  3319. 'mysql.max_links': -1,
  3320. 'mysql.connect_timeout': 60,
  3321. 'mysql.trace_mode': 'Off'
  3322. },
  3323. 'MySQLi': {
  3324. 'mysqli.max_persistent': -1,
  3325. 'mysqli.allow_persistent': 'On',
  3326. 'mysqli.max_links': -1,
  3327. 'mysqli.cache_size': 2000,
  3328. 'mysqli.default_port': 3306,
  3329. 'mysqli.reconnect': 'Off'
  3330. },
  3331. 'mysqlnd': {
  3332. 'mysqlnd.collect_statistics': 'On',
  3333. 'mysqlnd.collect_memory_statistics': 'Off'
  3334. },
  3335. 'PostgreSQL': {
  3336. 'pgsql.allow_persistent': 'On',
  3337. 'pgsql.auto_reset_persistent': 'Off',
  3338. 'pgsql.max_persistent': -1,
  3339. 'pgsql.max_links': -1,
  3340. 'pgsql.ignore_notice': 0,
  3341. 'pgsql.log_notice': 0
  3342. },
  3343. 'Sybase-CT': {
  3344. 'sybct.allow_persistent': 'On',
  3345. 'sybct.max_persistent': -1,
  3346. 'sybct.max_links': -1,
  3347. 'sybct.min_server_severity': 10,
  3348. 'sybct.min_client_severity': 10
  3349. },
  3350. 'bcmath': {
  3351. 'bcmath.scale': 0
  3352. },
  3353. 'Session': {
  3354. 'session.save_handler': 'files',
  3355. 'session.use_strict_mode': 0,
  3356. 'session.use_cookies': 1,
  3357. 'session.use_only_cookies': 1,
  3358. 'session.name': 'PHPSESSID',
  3359. 'session.auto_start': 0,
  3360. 'session.cookie_lifetime': 0,
  3361. 'session.cookie_path': '/',
  3362. 'session.serialize_handler': 'php',
  3363. 'session.gc_probability': 0,
  3364. 'session.gc_divisor': 1000,
  3365. 'session.gc_maxlifetime': 1440,
  3366. 'session.bug_compat_42': 'Off',
  3367. 'session.bug_compat_warn': 'Off',
  3368. 'session.cache_limiter': 'nocache',
  3369. 'session.cache_expire': '180',
  3370. 'session.use_trans_sid': 0,
  3371. 'session.hash_function': 0,
  3372. 'session.hash_bits_per_character': 5,
  3373. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  3374. },
  3375. 'MSSQL': {
  3376. 'mssql.allow_persistent': 'On',
  3377. 'mssql.max_persistent': -1,
  3378. 'mssql.max_links': -1,
  3379. 'mssql.min_error_severity': 10,
  3380. 'mssql.min_message_severity': 10,
  3381. 'mssql.compatibility_mode': 'Off',
  3382. 'mssql.secure_connection': 'Off'
  3383. },
  3384. 'Tidy': {
  3385. 'tidy.clean_output': 'Off'
  3386. },
  3387. 'soap': {
  3388. 'soap.wsdl_cache_enabled': 1,
  3389. 'soap.wsdl_cache_dir': '"/tmp"',
  3390. 'soap.wsdl_cache_ttl': 86400,
  3391. 'soap.wsdl_cache_limit': 5
  3392. },
  3393. 'ldap': {
  3394. 'ldap.max_links': -1
  3395. },
  3396. },
  3397. },
  3398. }, merge=True) %}
  3399. {%- endif %}