Split string into multiple variables
I currently use the following in my manifests:
$items = 'item1,item2,item3' $curitem = split($items, ',') # Insert loop here...
But, now I want to add some more functionality... so each item can have an associated value: Something like:
$items = 'item1:one,item2:two,item3:three' $curitem = split($items, ',') # Insert loop here... $itemname, $itemvalue = split($curitem, ':')
Does anyone know if this is possible in a puppet manifest? And if so, how it can be done...?
Guys / Gals, I would really really appreciate you're help / input on this one :D