Puppet Class: php

Inherits:
php::params show all
Defined in:
manifests/init.pp

Overview

Base class with global configuration parameters that pulls in all enabled components.

Parameters

ensure

Specify which version of PHP packages to install, defaults to 'present'. Please note that 'absent' to remove packages is not supported!

manage_repos

Include repository (dotdeb, ppa, etc.) to install recent PHP from

fpm

Install and configure php-fpm

fpm_service_enable

Enable/disable FPM service

fpm_service_ensure

Ensure FPM service is either 'running' or 'stopped'

fpm_service_name

This is the name of the php-fpm service. It defaults to reasonable OS defaults but can be different in case of using php7.0/other OS/custom fpm service

fpm_service_provider

This is the name of the service provider, in case there is a non OS default service provider used to start FPM. Defaults to 'undef', pick system defaults.

dev

Install php header files, needed to install pecl modules

composer

Install and auto-update composer

pear

Install PEAR

phpunit

Install phpunit

extensions

Install PHP extensions, this is overwritten by hiera hash `php::extensions`

package_prefix

This is the prefix for constructing names of php packages. This defaults to a sensible default depending on your operating system, like 'php-' or 'php5-'.

config_root_ini

This is the path to the config .ini files of the extensions. This defaults to a sensible default depending on your operating system, like '/etc/php5/mods-available' or '/etc/php5/conf.d'.

ext_tool_enable

Absolute path to php tool for enabling extensions in debian/ubuntu systems. This defaults to '/usr/sbin/php5enmod'.

ext_tool_query

Absolute path to php tool for querying information about extensions in debian/ubuntu systems. This defaults to '/usr/sbin/php5query'.

ext_tool_enabled

Enable or disable the use of php tools on debian based systems debian/ubuntu systems. This defaults to 'true'.

log_owner

The php-fpm log owner

log_group

The group owning php-fpm logs

embedded

Enable embedded SAPI

pear_ensure

The package ensure of PHP pear to install and run pear auto_discover

settings

Parameter Summary

  • ensure (Any) => $::php::params::ensure
  • manage_repos (Any) => $::php::params::manage_repos
  • fpm (Any) => true
  • fpm_service_enable (Any) => $::php::params::fpm_service_enable
  • fpm_service_ensure (Any) => $::php::params::fpm_service_ensure
  • fpm_service_name (Any) => $::php::params::fpm_service_name
  • fpm_service_provider (Any) => undef
  • embedded (Any) => false
  • dev (Any) => true
  • composer (Any) => true
  • pear (Any) => true
  • pear_ensure (Any) => $::php::params::pear_ensure
  • phpunit (Any) => false
  • extensions (Any) => {}
  • settings (Any) => {}
  • package_prefix (Any) => $::php::params::package_prefix
  • config_root_ini (Any) => $::php::params::config_root_ini
  • ext_tool_enable (Any) => $::php::params::ext_tool_enable
  • ext_tool_query (Any) => $::php::params::ext_tool_query
  • ext_tool_enabled (Any) => $::php::params::ext_tool_enabled
  • log_owner (Any) => $::php::params::fpm_user
  • log_group (Any) => $::php::params::fpm_group