Hi,

long story short: This is what the hiera_hash() function is for (as
opposed to hiera()).

HTH,
Felix

On 04/01/2014 06:15 PM, Matthew Burgess wrote:
> Hi folks,
> 
> In my common.yaml file I have the following hiera hashes:
> 
> system::packages:
>     sshd:
>         ensure: 'present'
>     ...
> ...
> more stuff here
> ...
> system::packages:
>     ntpd:
>         ensure: 'present'
> 
> I naively assumed that Hiera would merge those 2 hashes together, just
> as it does if they were present in different layers of the hierarchy. 
> It appears, though, that the latter simply overrides the former;  I have
> an sshd service with a dependency on the sshd  package, but with the
> above hiera data, the catalog fails to compile as the sshd package isn't
> in the catalog.
> 
> Am I just missing some YAML syntax to stop the hash from being
> overwritten, or am I perhaps misunderstanding the behaviour I'm seeing
> here? I did test manually merging the hashes in the YAML file and that
> did indeed 'fix' the problem.
> 
> If that behaviour is simply a fact of life, that's fine too; I'll fix
> the data up, although there was an aesthetic/organisational reason for
> having it structured as it is currently.
> 
> Thanks,
> 
> Matt.

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/533AE688.3070702%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to