Ask Your Question

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:

in your manifest

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

in your yaml

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