Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

multiple environment variable in "exec" command

$
0
0
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?

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>