Helmut Schneider wrote:
> 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:~$
hiera.conf:
:hierarchy:
- nodes/%{::fqdn}
- "%{::operatingsystem}"
- apps/apache
- common
Ubuntu.yaml:
profiles:
webserver:
apache:
server:
configfiles:
enable:
03-chroot.conf:
LoadFile:
- '/lib/x86_64-linux-gnu/libgcc_s.so.1'
- '/lib/x86_64-linux-gnu/libnss_dns.so.2'
host.yaml:
profiles:
webserver:
apache:
server:
configfiles:
enable:
03-chroot.conf:
LoadFile:
- '--/lib/x86_64-linux-gnu/libgcc_s.so.1'
- '--/lib/x86_64-linux-gnu/libnss_dns.so.2'
- '/lib/i386-linux-gnu/libgcc_s.so.1'
- '/lib/i386-linux-gnu/libnss_dns.so.2'
Works fine. Hmmm....
--
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/xn0lpxyyayq18t002%40news.gmane.org.
For more options, visit https://groups.google.com/d/optout.