Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php module is not using hiera deep merge anymore. #500

Closed
schlitzered opened this issue Dec 19, 2018 · 3 comments
Closed

php module is not using hiera deep merge anymore. #500

schlitzered opened this issue Dec 19, 2018 · 3 comments

Comments

@schlitzered
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5
  • Ruby: ???
  • Distribution:???
  • Module version: 6.0.2

How to reproduce (e.g Puppet code you use)

use hiera to configure php::extensions

What are you seeing

hiera is not deep merging anymore

What behaviour did you expect instead

hiera should deep merge php:extensions, as well as for all other lookups

Output log

Any additional information you'd like to impart

the relevant pull request is this one: commit

this basically makes merging using hiera impossible, please revert this as soon as possible or explain

@c33s
Copy link
Member

c33s commented Dec 19, 2018

this works as intended. with the PR i made the "double lookup" was fixed. puppet looks-up class parameter per default. so having the parameter looked up by puppet and then do a manual lookup overwrites the merge behavior which you can define in your common.yaml (or another hiera yaml file).

having the module work like this you can define the lookup variant you want. simply add:

lookup_options:
    php::extensions: { merge: {strategy: deep, merge_hash_arrays: true, knockout_prefix: "--", sort_merged_arrays: true}}

but you can also choose to use a different merge behavior. this was not possible before

have a look at #434

@schlitzered
Copy link
Author

it is a little bit unfortunate that this change has not made it into the changelog :-/

i will adjust my hiera yaml to include the lookup_options you suggested.

@arkadicolson
Copy link

I'm still having the issue that php::settings is not merged into php::fpm::settings
Any idea why? In 4.0.0 this was working...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants