Skip to content

softecspa/puppet-softec_php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-softec_php

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

Manage php installation and version

Use a PPA

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)

Specify php version

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'

PHP modules

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.

libapache2-mod-php5

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'

php5-cli

include softec_php::cli

Like apache, you can configure specific parameter only for cli through hiera hash

  • php_cli_settings:

apc

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'

memcache

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'

opcache

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'

imagick - xdebug - ming - uploadprogress

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.0rc2-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'

Other modules

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::module

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::extension

If module is not managed by puppetlabs-php module you can use this define.

Examples:

  • softec_php::extension{'recode':}

About

wrapper of puppetlabs-php

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages