Created
June 6, 2016 14:58
-
-
Save cdenneen/bb9c952fef7576f6bdb53d41ea1dd61c to your computer and use it in GitHub Desktop.
Hiera Hash Lookup
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
| --- | |
| publicbucket: 'myBucket' | |
| profile::searchinfra::idx::esindexer: | |
| app_source_bucket_dirkey: 'ESIndexer' | |
| app_source_bucket: "http://s3.amazonaws.com/%{::publicbucket}/%{hiera('profile::searchinfra::idx::esindexer[app_source_bucket_dirkey]')}" |
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
| --- | |
| :backends: | |
| - yaml | |
| :hierarchy: | |
| - common | |
| :yaml: | |
| :datadir: '/tmp/hieradata' |
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
| $> hiera -c hiera.yaml -h profile::searchinfra::idx::esindexer | |
| {"app_source_bucket_dirkey"=>"ESIndexer", | |
| "app_source_bucket"=>"http://s3.amazonaws.com//"} | |
| $> hiera -c hiera.yaml profile::searchinfra::idx::esindexer.app_source_bucket | |
| http://s3.amazonaws.com// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment