Skip to content

Instantly share code, notes, and snippets.

@robinbowes
Created July 4, 2012 11:40
Show Gist options
  • Save robinbowes/3046921 to your computer and use it in GitHub Desktop.
Save robinbowes/3046921 to your computer and use it in GitHub Desktop.
Assume a two-level hiera config (common and nodename).
I have this in common.yaml:
sysctl:
hugepages:
buffer: 4194304
pagesize: 2048
I want to override buffer for a specific node foo, so I have this in foo.yaml:
sysctl:
hugepages:
buffer: 8388608
I use this in a puppet manifest:
$sysctl = hiera_hash('sysctl')
But, I find that on node foo, the pagesize value is not found.
I can see why that is (hiera_hash) is only merging the top-level hash, ie. sysctl. It does not also merge the hugepages hash contained within the sysctl hash.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment