Re: [Puppet Users] [Puppet] Can't manage Puppet Certificates on the PuppetCA (404 error)

2020-08-27 Thread Damien Ellul
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

[Puppet Users] Re: Can we call a ruby function inside puppet plan (Inside same module)

2020-08-27 Thread KevinR
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

[Puppet Users] Can we call a ruby function inside puppet plan (Inside same module)

2020-08-27 Thread Raghu Ram Baisani
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

Re: [Puppet Users] Is it possible to create an array of hashes

2020-08-27 Thread Jesse Reynolds
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