Re: [Puppet Users] Array shuffle

2020-06-11 Thread Henrik Lindberg
There are a couple of ways to achieve this. You can write a shuffle function in Ruby, take a copy of the input array and return a shuffled copy using Fischer-Yate algorithm. Or write in Puppet using random numbers and sorting. Create an array of equal length of the original, containing

Re: [Puppet Users] hiera with environments

2020-06-11 Thread solarflow 99
dohh! I can't believe I didn't even notice that darn typo, thats all it was too, its working fine now. Thanks a lot for pointing that out! Hopefully this example might help someone else out at least. I should have seen that... On Thursday, June 11, 2020 at 11:06:22 AM UTC-7, Nick

Re: [Puppet Users] hiera with environments

2020-06-11 Thread Nick Bertrand
Hi, Perhaps it was just a typo in the email, but it looks like there might be a typo in one of your filenames: lrwxrwxrwx 1 root root 29 Jun 8 21:44 hierdata -> > gitclone/production/hieradata/ > Should this have been 'hieradata' instead of 'hierdata'? Nick -- You received this message

RE: [Puppet Users] Re: [Roles/Profiles] when a technology module doesn't already exist - seeking opinions

2020-06-11 Thread Kurt Werner
>From my understanding the contains ensures that all work in that class (and >sub classes) is completed before moving on to the next contains class. With >include I believe puppet could move on to the next class. The contains works >nice with the install > config > service model. -Kurt

Re: [Puppet Users] hiera with environments

2020-06-11 Thread solarflow 99
hi, thanks for the reply. This is all for PE, but i'm using puppet 6 OSS.. It used to work this way in 5.5 too, so I don't understand why its not seeing hiera in the preprod environment. I could always do this: - make changed in preprod, and git commit there - cd to prod, then: - git remote

[Puppet Users] Facter 4.0.26

2020-06-11 Thread Sebastian Miclea
Hi everyone, We are happy to announce that Facter 4.0.26 is released. [https://media3.giphy.com/media/hZj44bR9FVI3K/giphy.gif?cid=4ac7172f7ad43394f3f6fc072eb3e62d3b3cf1a810744e45=giphy.gif] Here’s what’s new: Added * (FACT-2608) Add is_virtual fact

Re: [Puppet Users] hiera with environments

2020-06-11 Thread Martin Alfke
Hi, You should change to using a control-repo and adopt your codebase. https://puppet.com/docs/pe/2018.1/control_repo.html https://github.com/puppetlabs/best-practices/blob/master/puppet-modules-and-the-control-repo.md