# Revision history [back]

there are many ways to do this. You can also iterate through defines. or use hiera to lookup values that are just keynames for other values.

I might do this:

$apppools = hiera('apppools', []) create_resources('iis_apppool',$apppools)


apppools:
pool1:
managedpipelinemode:   'Classic'
managedruntimeversion:  'v2.0'
pool2:
managedpipelinemode:   'Classic'
managedruntimeversion:  'v2.0'