merge 2 or more files

asked 2015-09-07 07:13:17 -0500

pgh2011 gravatar image

updated 2015-09-07 07:13:48 -0500

Hi,

In /etc/puppet/hieradata/users/ I have 2 yaml files. For a node I want to merge these files and on the other node only one file.

In the /etc/puppet/enc/nodes/server1.yaml I have:

---
classes:
  - ssh
parameters:
  usergroups: 
    - group1
    - group2

And on the other node only -group2.

The problem is that the first node is not merging the 2 files.

What am I doing wrong here?

regards, Patrick.

edit retag flag offensive close merge delete

Comments

Please send a link to a pastebin of your hiera.yaml and the Puppet code that calls Hiera. That will help with troubleshooting this problem.

GregLarkin gravatar imageGregLarkin ( 2015-09-08 15:06:24 -0500 )edit