Like I said, it was purely for cosmetic/aesthetic purposes; I wanted to
write the YAML file in the same order as things were defined in our design
document so that it was easier to review that the implementation matched
the design.  Section 1 of that doc might cover something like NTP
configuraiton, which requires a package, config file and service; Section 2
might cover sshd, again with another package, config file and service.  As
it doesn't look like having multiple keys with the same name in the same
file is supported, I'll get over my obsession with trying to lay the file
out to match the order things appear in the design :-)

Perhaps I need to look at this another way; I could lay my tests out (I'm
sure I have some somewhere!) in the same order as the design doc, then I
get the implementation review for free by executing the tests!

Thanks for your help,

Matt.


On 1 April 2014 17:59, Felix Frank <felix.fr...@alumni.tu-berlin.de> wrote:

> Hmm, so you have the same key multiple times in one yaml file? Why?
>
> On 04/01/2014 06:51 PM, Matthew Burgess wrote:
> > Apologies for that last email; hiera_hash() is obviously doing *nearly*
> > the right thing, as it *does* merge hashes across different levels of
> > the hierarchy.  It *doesn't* seem to be merging hashes within the same
> > level of the hierarchy.
> >
> > 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/533AF084.9030509%40alumni.tu-berlin.de
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAKUTv3K9mgAMWKS13XwqGzid3CDVQoKxUdY3Ugyp0FvHS%2BJW-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to