Thank you =)
Le mer. 26 août 2020 à 22:46, Mattias Giese a écrit :
> Heya,
>
> On 26/08/20 09:40:33, Damien Ellul wrote:
> > Actually, I was missing the "ca_server" parameter in the "main" section
> of
> > the machine that hosts Foreman and the PuppetCA. I used the hostname of
> the
> > server
Hi Raghuram,
yes you can! Simply call the function in the plan, just like you would if
calling the function from a standard Puppet manifest.
For example, say you have a function module1::myfunction()
in
/etc/puppetlabs/code/environment/production/modules/module1/lib/puppet/functions/module1/myf
Hi All,
If we have a function inside
/etc/puppetlabs/code/environment/production/modules//lib/puppet/functions//
Is it possible to call the func.rb in a plan residing inside
/etc/puppetlabs/code/environment/production/modules//
plans/?
In the mentioned case above both .pp file and .rb file a
Hi Raghu,
It sounds like you want to use the map function:
https://puppet.com/docs/puppet/6.17/function.html#map
Here's an example of how to use it with your data structure:
$array_inputs = $vm_data.map |$region| {
$hash_region = {
location=> $region['location'],
vm_list => $re