Skip to content

Instantly share code, notes, and snippets.

@antaflos
Last active December 23, 2015 23:19
Show Gist options
  • Save antaflos/6709690 to your computer and use it in GitHub Desktop.
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?
# 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