Displaying 1 result from an estimated 1 matches for "java_repository".
2012 Apr 26
2
Optional values from Hiera (no default value)
Hello Puppet List,
I''m writing a module that should take an optional value and I want to
get it (amongst other places) from Hiera.
$repository = $::java_repository ? {
undef => hiera(''java_repository'')
default => $::java_repository,
}
But this fails because Hiera raises an error if it can''t find a value.
I later want to do something like this:
if $repository {
Class[$repository] -> Class[''java::install...