[Puppet Users] stdlib keys() and values()

2017-09-28 Thread Robert
Hello List, I can't think of a more basic question, but... $hash = {'a'=>1, 'b'=>2, 'c'=>3} notify { "sdf": message => values($hash), } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emai

Re: [Puppet Users] stdlib keys()

2014-10-06 Thread Felix Frank
On 10/06/2014 08:29 PM, Juan Andres Ramirez wrote: > host_key: > - server1: > alias: webserver > ipadress: "192.168.0.4" > port : "80" > - server2: > alias: dbserver > ipadress: "192.168.0.5" > port : "80" The keys function works on hashes only. Rather than [ { server1

[Puppet Users] stdlib keys()

2014-10-06 Thread Juan Andres Ramirez
Hello guys, I have the next problem to get value of keys from hieradata(common.yaml) 1- I have common.yaml : host_key: - server1: alias: webserver ipadress: "192.168.0.4" port : "80" - server2: alias: dbserver ipadress: "192.168.0.5" port : "80" 2) init.