Created
          July 4, 2012 11:40 
        
      - 
      
- 
        Save robinbowes/3046921 to your computer and use it in GitHub Desktop. 
  
    
      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
    
  
  
    
  | 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