Hallo Everyone,
my previous "exec" command configuration added one environment variable, but only in case the variable is declared in hiera.
exec { "my_command":
command => "cat /do/something",
environment => $foo ? {
'' => [],
default => "foo=${bar}",
},
I would like to extend this configuration and declare multiple environment variables. I would like to also check if each of them is declared in hiera. Could you please give me a hint how the syntax looks in this case?
↧