Well you will have to devise a defined type that takes the variable name
as the resource title, and the value as an argument. Data structure has
to be
my_variables:
my_project1:
var1:
value: value1
var2:
value: value2
Then the my_project1 hash is eligible for use with create_resources.
With Puppet 4 you can use iteration over the hash instead, so that no
data restructuring is necessary. If you are on a recent version of
Puppet 3, you can do the same thing using the parser=future setting.
HTH,
Felix