Is there any way to access values of collected resources for use in other resources?

asked 2015-08-26 15:04:02 -0500

JohnsonEarls gravatar image

I have a number of resources, for example:

myres { 'foo':
    value => 1
}
myres { 'bar':
    value => 2
}
myres ( 'baz':
    value => 4
}
myres { 'quux':
    value => 8
}

Is there any way I can obtain a list of the value setting for each myres resource? so I could do something like...

$values = (whatever syntax using Myres <| |> to get the list of `value` settings)
otherres { 'zeb':
    values => $values
}
edit retag flag offensive close merge delete