Hello,
I have data in machine.yaml :
sitedefinition:
- website: "
site.one.com"
ipadress: "192.168.0.2"
protocol: "http"
port : "80"
- website : "
site.two.com"
ipadress : "192.168.0.2"
protocol : "http"
port : "80"
Well if I try get the data in a module in puppet I can in this way:
$ipadress = $general[0]['ipadress'] -> this way I can get specify IP
$siteswebs = $general = hiera_array("sitedefinition") ->
here get all the data, the result would be:
port80ipadress192.168.0.1websitesite.one.comprotocolhttpport80ipadress192.168.0.2websitesite.two.comprotocolhttp
well my question is, how can I get or how can go all the array??, because it is possible not know how many websites exist.
Thanks alot!!