Hi,

hiera.conf:
:hierarchy:
  - nodes/%{::fqdn}
  - apps/apache
  - common

apache.yaml:
---
lookup_options:
  variables:
    merge:
      strategy:        "deep"
      knockout_prefix: "--"
[...]
profiles:
  webserver:
    apache:
      server:
        configfiles:
          enable:
            02-listen.conf:
              Listen:
                - abc
                - 'localhost:80'
                - 'localhost:443'

host.yaml:
profiles:
  webserver:
    apache:
      server:
        configfiles:
          enable:
            02-listen.conf:
              Listen:
                - --abc
                - '--localhost:80'
                - '--localhost:443'
                - "80"
                - "443"

init.pp:
[...]
  $profiles = lookup({
    "name" => "profiles",
    "merge" => {
      "strategy" => "deep",
      "knockout_prefix" => "--",
#      "sort_merged_arrays" => true,
    },
    "default_value" => [],
  })
[...]

Result:

"02-listen.conf"=>{"Listen"=>["abc", "localhost:80", "localhost:443",
"443"]}

So I expected 'abc', "localhost:80" "localhost:443" to be removed while
'80' was.

helmut@puppet:~$ sudo /opt/puppetlabs/bin/puppetserver -v
puppetserver version: 2.8.1
helmut@puppet:~$

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/xn0lpxxl8ww6go001%40news.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to