This module is a wrapper of puppetlabs-php module. Based on parameters stored on hiera it:
- add ppa repository for php5.4 on ubuntu lucid and precise
- pin all php packages to a specified version (if a specific php version is installed)
- pin all php mackages to a major version (if php version is set to latest)
- manage configuration for php packages
Define in hiera following parameters:
- php_manage_repo: true|false
- php_ppa: (ignored id php_manage_repo is false)
- php_ppa_key: (ignored id php_manage_repo is false)
Define in hiera following parameters:
- php_version: latest|specific_version
if php_version is set to a specific version you can pin that specific version through:
- php_pin: true
If php_version is set to latest you can specify php_major_version and all php packages will be pinned on this major version. Example
- php_major_version: '3.4'
If php modules uses the same version of php5-common package. It will follows the same sules specified above. If the module uses a different version it will has its specific hiera variables. Some module have also an hiera hash that can be used to manage configuration.
include softec_php::apache
Specific configs can be set only for apache use through and hiera hash. Example:
php_apache_settings:
'set PHP/disable_functions': '"phpinfo"'
'set PHP/error_reporting': '"E_ALL & ~ (E_STRICT | E_NOTICE)"'
'set PHP/expose_php': 'Off'
include softec_php::cli
Like apache, you can configure specific parameter only for cli through hiera hash
- php_cli_settings:
include softec_php::apc
Like php you can specify version and pinning to a specific or major version. You can also manage conf ever by hiera. Examples:
php_apc_version: "3.1.13-1~%{::lsbdistcodename}+1"
php_apc_major_version: '3'
php_apc_stat_password: 'xxxxxxx'
php_apc_settings:
'set .anon/apc.enabled': '1'
'set .anon/apc.mmap_file_mask': '/tmp/apc.XXXXXX'
include softec_php::memcache
Like apc but with the following parameters:
php_memcache_version: "3.0.6-5~%{::lsbdistcodename}+1"
php_memcache_major_version: '3'
php_memcache_settings:
'set memcache/memcache.dbpath': '/var/lib/memcache'
'set memcache/memcache.maxreclevel': '0'
include softec_php::opcache
This module is installed throuh pecl. Only version to install can be specified without pinning
php_opcache_version: '0.7.2'
php_opcache_settings:
'set .anon/opcache.memory_consumption': '128'
'set .anon/opcache.interned_strings_buffer': '8'
All this modules have different version from php5-common. Version of this module can be specified like this examples:
include softec_php::imagick
- php_imagick_version: "3.1.0
rc2-1%{::lsbdistcodename}+1" - php_imagick_major_version: '3'
include softec_php::xdebug
- php_xdebug_version: "2.2.1-1~%{::lsbdistcodename}+1"
- php_xdebug_major_version: '2'
include softec_php::ming
- php_ming_version: "1:0.4.4-1.1~%{::lsbdistcodename}+1"
- php_ming_major_version: '1'
include softec_php::uploadprogress (through pecl)
- php_uploadprogress_version: '1.0.3.1'
You can use others customized-install modules by use the following includes:
- include softec_php::ioncube
- include softec_php::pear
- include softec_php::xhprof
softec_php::modules define is used to install other php extension. It will be used if module is managed by appropriate class in puppetlabs-php module. Please refer to http://puppet-php.readthedocs.org/en/latest/extensions.html.
Examples:
- softec_php::module{'ldap':} (http://puppet-php.readthedocs.org/en/latest/extensions.html#ldap)
If module is not managed by puppetlabs-php module you can use this define.
Examples:
- softec_php::extension{'recode':}