summaryrefslogtreecommitdiff
path: root/lib/hiera
AgeCommit message (Collapse)AuthorFilesLines
2013-05-28(Maint) Remove unused variablesErik Dalén1-1/+1
2013-04-05(#14985) Alias module_name as calling_moduleAndrew Parker1-1/+2
The new implementation of calling_module turned out to be the same as puppet's own module_name. This makes it simply and alias so that we keep that as the definition of calling_module.
2013-03-21(Maint) Extract constant strings as constantsAndrew Parker1-10/+15
2013-02-25(#14985) Preserve casing on looked up valuesAndrew Parker1-3/+3
The initial fix for looked up values downcased everything that was being returned. This causes problems when the data is not a string that the previous behavior was to only do this for the calling_class and calling_module. This commit us returns to that behavior.
2013-02-25(#14985) Ensure hostclass finder is privateAndrew Parker1-10/+12
The nested definition of the recurse_for_hostclass method caused that method to be created lazily and as a public method. By pulling it out to be declared outside the calling method it can be made private and created only once. It has also been renamed to show the intention instead of the mechanism (recursion).
2013-02-25(#14985) Fix exception when nil is returned from inner scopeAvishai Ish-Shalom1-1/+1
2013-02-25(#14985) Fix test, return downcase values and check for nil scope.sourceAvishai Ish-Shalom1-2/+2
2013-02-25(#14985) Fix hiera lookup for calling_module and calling_classAvishai Ish-Shalom1-2/+12
2012-11-16(#16178) Stop checking for :undefinedAndrew Parker1-2/+0
Puppet no longer returns :undefined as a special value from variable lookups. This commit removes this extra check from the Hiera puppet backend.
2012-11-15(Maint) Require Hiera::Backend where it is usedAndrew Parker1-0/+2
Previously the Hiera::Backend::Puppet_backend code assumed that Hiera::Backend had already been included. This was not true, at least in the tests. This commit has the backend require the files that it expects to already be loaded for it to work correctly.
2012-11-15(#16178) Handle the case where temp_answer is false but defined.Matt Callaway1-3/+4
Consider: ```` class foomodule::params { $myitem = false ... ```` The current code won't handle this because `if temp_answer` is the same as `if false`. This commit changes it to use `temp_anser.nil?` instead.
2012-09-11(#15756) Call include function correctlyAndrew Parker1-2/+2
The hiera puppet backend called the include function without passing the argument as an array. This changes it to call the function correctly.
2012-06-10(maint) Follow Puppet Labs style guide + code cleanupKelsey Hightower2-118/+127
The hiera-puppet code base now uses two space indentation. This patch also removes unnecessary calls to `Hiera::Scope`, which is no longer required because core Puppet's scope object allows variable lookup via the `[]` method. This commit includes updated specs.
2012-06-06(#12122) Use nil as default answer in lookupPatrick Carlisle1-1/+3
Synchronize with the way backends work in Hiera 1.0 by starting with nil instead of Backend.empty_answer
2012-01-19(#12037) hiera-puppet should support hash values.Nan Liu1-0/+2
Puppet support hashes, so hiera-puppet backend should also support hash values.
2011-10-05added volcanes patch to allow calling_module and calling_class to be ↵Craig Dunn1-3/+11
evaluated in scope
2011-06-11Add a hiera_include() function and update exampleR.I.Pienaar2-1/+10
2011-06-11Add array search supportR.I.Pienaar3-23/+42
2011-06-06Add a example setupR.I.Pienaar1-1/+3
Fix some unfriendly behavior wrt class names that don't resolve using scope
2011-06-04Add more tests, fix more bugsR.I.Pienaar1-1/+1
2011-06-04Add tests and fix bugs found with testsR.I.Pienaar1-4/+4
2011-06-04Add a debug statementR.I.Pienaar1-0/+1
2011-06-04Add a puppet backend that impliments Nigels designR.I.Pienaar2-4/+73
2011-06-04Add a hash like wrapper around puppet scopeR.I.Pienaar1-0/+15
2011-06-04First working hiera() function and a logger that logs using puppet notice/debugR.I.Pienaar1-0/+8