Finalmente, descobri que este era um problema de escopo variável, o init.pp
correto deveria ser:
class install(
$common_instances = hiera_array('common_instances'),
$common_instanceconfig = hiera_array('common_instanceconfigs'),
)
{
define instances (
$common_instanceconfig
) {
common { $common_instances[0]:
name => $title,
path => $common_instanceconfig[0],
version => $common_instanceconfig[1],
files => $common_instanceconfig[2],
pre => $common_instanceconfig[3],
after => $common_instanceconfig[4],
properties => $common_instanceconfig[5],
require => $common_instanceconfig[$title]['require'] ,
}
}
instances {$common_instances:
common_instanceconfig => $common_instanceconfig
}
}