[Puppet Users] Re: sshkeys from puppetdb failing after migration to puppet 6

2019-08-03 Thread Andy Hall
OK it seems all is well and that error is shown if the sshpubkey_username fact is not yet available in the puppetdb. Once available it all works fine. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop recei

[Puppet Users] Re: Roles and profiles dissent

2019-08-03 Thread Luke Bigum
On Saturday, 3 August 2019 02:03:29 UTC+1, Chris Southall wrote: > > Hi Luke. Thanks for a thoughtful and detailed response. > > You are most welcome. > I'd like to think I grasp the roles/profiles concept, but am just not > convinced it's a better approach. Abstracting away configuration d

[Puppet Users] Re: Roles and profiles dissent

2019-08-03 Thread Chris Southall
> > 1) create_resources() is a bit of a kludge left over from puppet 3. > Starting in puppet 4 (and 3’s future parser), iteration was added. Instead > of create_resources($some_hash), you would say $some_hash.each |$title, > $options| {} and create each resource inside the block. You can still

[Puppet Users] Re: Roles and profiles dissent

2019-08-03 Thread Rob Nelson
> Good points and a nice example. In the case of my basic module I'm currently > using a separate create_resources line for each class parameter. Is there a > way to iterate over all class parameters using each() so I can use a single > nested loop to create everything? You can - add an extra