Last active
December 23, 2015 23:19
-
-
Save antaflos/6709690 to your computer and use it in GitHub Desktop.
Shouldn't a deep merge by Hiera (1.2.1, :merge_behaviour: deeper) produce a users hash for user "ant" with four groups?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# common.yaml: | |
users: | |
ant: | |
uid: 1001 | |
realname: Andreas | |
pwhash: '$6$thesalt$thehash' | |
groups: | |
- sudo | |
- adm | |
- admin | |
# virt01.example.com.yaml: | |
users: | |
ant: | |
groups: | |
- libvirtd | |
# Shouldn't this produce the following, when merged deeply, for host virt01.example.com? | |
users: | |
ant: | |
uid: 1001 | |
realname: Andreas | |
pwhash: '$6$thesalt$thehash' | |
groups: | |
- sudo | |
- adm | |
- admin | |
- libvirtd | |
# Instead I get this, when running "hiera -h users fqdn=virt01.example.com" | |
{ | |
"ant" => { | |
"groups"=>[ "libvirtd" ] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment