Skip to content

Commit

Permalink
fixed merge bug, added bc compat. layer
Browse files Browse the repository at this point in the history
  • Loading branch information
c33s committed May 8, 2018
1 parent 0a69781 commit b188888
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -149,17 +149,10 @@

$real_fpm_package = pick($fpm_package, "${package_prefix}${::php::params::fpm_package_suffix}")

# Deep merge global php settings
$real_settings = deep_merge($settings, lookup('php::settings', {value_type => Hash, merge => 'deep', default_value => {}}))

# Deep merge global php extensions
$real_extensions = deep_merge($extensions, lookup('php::extensions', {value_type => Hash, merge => 'deep', default_value => {}}))

# Deep merge fpm_pools
$real_fpm_pools = deep_merge($fpm_pools, lookup('php::fpm_pools', {value_type => Hash, merge => 'deep', default_value => {}}))

# Deep merge fpm_global_pool_settings
$real_fpm_global_pool_settings = deep_merge($fpm_global_pool_settings, lookup('php::fpm_global_pool_settings', {value_type => Hash, merge => 'deep', default_value => {}}))
$real_settings = $settings
$real_extensions = $extensions
$real_fpm_pools = $fpm_pools
$real_fpm_global_pool_settings = $fpm_global_pool_settings

if $manage_repos {
class { 'php::repo': }
Expand Down

0 comments on commit b188888

Please sign in to comment.