Puppet Class: php::apache_config

Inherits:
::php::params
Defined in:
manifests/apache_config.pp

Overview

Install and configure php apache settings

=== Parameters

[inifile] The path to the ini php-apache ini file

[settings] Hash with nested hash of key => value to set in inifile

Parameters:

  • inifile (Stdlib::Absolutepath) (defaults to: $::php::params::apache_inifile)
  • settings (Hash) (defaults to: {})


11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/apache_config.pp', line 11

class php::apache_config(
  Stdlib::Absolutepath $inifile = $::php::params::apache_inifile,
  Hash $settings                = {}
) inherits ::php::params {

  if $caller_module_name != $module_name {
    warning('php::apache_config is private')
  }

  $real_settings = deep_merge($settings, hiera_hash('php::apache::settings', {}))

  ::php::config { 'apache':
    file   => $inifile,
    config => $real_settings,
  }
}