view modules/php/manifests/config.pp @ 466:202aeef575a1

Correct HTTP log paths in LogWatch It wasn't generating logs because we're not using the normal pattern - our site name comes _after_ the "access" part, not before
author IBBoard <dev@ibboard.co.uk>
date Sun, 25 Feb 2024 10:10:32 +0000
parents 3fce34f642f1
children adf6fe9bbc17
line wrap: on
line source

# Configure php.ini settings for a PHP SAPI
#
# === Parameters
#
# [*file*]
#   The path to ini file
#
# [*config*]
#   Nested hash of key => value to apply to php.ini
#
# === Examples
#
#   php::config { '$unique-name':
#     file  => '$full_path_to_ini_file'
#     config => {
#       {'Date/date.timezone' => 'Europe/Berlin'}
#     }
#   }
#
define php::config (
  Stdlib::Absolutepath $file,
  Hash $config
) {
  if $caller_module_name != $module_name {
    warning('php::config is private')
  }

  create_resources(::php::config::setting, to_hash_settings($config, $file),{ file => $file })
}