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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAKUTv3%2BDODmoGaO2rW%3D5DKUFFedZ-R8RgeXkAZFGZNqWGsXWWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to