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

2020-08-26 Thread Raghu Ram Baisani
Thanks for the reply. I didn't understand what you are trying to say. The code is something like this: $array_inputs = [] $vm_data.each |$region| { $hash_region = { location => $region['location'], vm_list => $region['vmlist'], customer_id => "customer-${$region['location']}", api_key => "api-

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

2020-08-26 Thread Benjamin Ridley
Hi Raghu, Yes this is possible. Your example looks workable, but don't forget to add commas after the values of the hash. Check out Puppet's 'reduce' function, it iterates over data and allows you to return a new structure after all the iteration which could be your new hash. Alternatively it mig

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

2020-08-26 Thread Mattias Giese
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 for the value and the "puppetserver ca" command worked. > > I didn't know that certs

[Puppet Users] Bolt 2.25.0 is now available

2020-08-26 Thread Puppet Product Updates
VERSION 2.25.0 *in this release* ✨ *new features* - The bundled puppet_agent module has a new puppet_agent::run plan which can be used to run the Puppet agent on a list of targets. This plan returns a set of results indicating whether the agent run was successful. If the Puppet agen

Re: [Puppet Users] need help for slack join

2020-08-26 Thread Tej Singh Rana
Slack url is available in the puppet community page. Which is shared above. Regards, On Wed, 26 Aug 2020 12:41 am Asis Sethi, wrote: > I would like to join the puppet slack channel too please let know > > On Sat., Aug. 22, 2020, 7:10 p.m. Tej Singh Rana, < > iamtejsinghr...@gmail.com> wrote: > >

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

2020-08-26 Thread Damien Ellul
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 for the value and the "puppetserver ca" command worked. I didn't know that certs could be managed via the Foreman web interface, do you kno

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

2020-08-26 Thread Raghu Ram Baisani
Hi Guys Some one help me solving this issue. *Example:* [ { name => raghuram, age => 22 }, { name => vinay age => 25 } ] the idea is to iterate through an existing hash and create new hash with some modifications and add it to array. Thanks in adv