A small helper library that makes it easier to fetch values from Hiera
Add this line to your application's Gemfile:
gem 'hiera_loader'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hiera_loader
defaults = {
"key" => "value"
}
conf = HieraLoader.new(defaults, "path/to/hiera.yaml")
conf.get_config('key')
hiera_loader is released under the terms of the Apache 2.0 license. See LICENSE.txt
- Fork it ( https://github.com/adaptavist/hiera_loader/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request