[Puppet Users] map/reduce local variables

2019-06-05 Thread Albert Shih
Hi I try to write a code to delete some key inside a hash. So I got this $_dataset = reduce($dataset.map |$key, $value| { {$key => delete($value,['remove_key1','remove_key2','remove_key3'])} }) | $result, $value | { deep_merge($result, $value)} so if $dataset = { name1 => { at

Re: [Puppet Users] Re: [ACTION] Changes to release package links

2019-06-05 Thread Michael Watters
Hello, I see the puppetlabs-release-pc1 package is available on yum.puppetlabs.com however it doesn't actually show as an available update when running "yum update". For example, here's the output on one of our servers. ``` [root@server1 yum.repos.d]# yum update puppetlabs-release-pc1 Loaded p

Re: [Puppet Users] Re: [ACTION] Changes to release package links

2019-06-05 Thread Molly Waggett
Hi Michael, The puppetlabs-release-pc1 packages on yum.puppetlabs.com are the ones we plan to re-archive. You will need to install new release packages from http://release-archives.puppet.com/yum/ if you want to continue using the PC1 repository. Neither of these repos will receive future updates.

Re: [Puppet Users] map/reduce local variables

2019-06-05 Thread chengkai liang
I believed you made thing overly complicated. You only have one hash table, and try to remove the entries that has remove_ of it. Not sure why you need to use reduce and map. You can use `each` to go through first key of the hash table, then use filter to filter out unwanted keys like, # this clas