Corey Osman
unread,Jan 27, 2016, 1:07:42 PM1/27/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Puppet Dev
I have the following code which uses the auto binding feature to lookup a hiera value. This is nothing new though. The problem I see is that there is no way to tell puppet to use hiera_hash() for the install_options.
class sql2014(
Hash $install_options = {},
String $instance_name = 'MSSQLSERVER',
Hash $ssdt_install_options = {}
)
Now I could alternatively specify hiera_hash but then I create a race condition unless I change the key name:
class sql2014(
Hash $install_options = hiera_hash(’sql2014::install_options’, {}),
String $instance_name = 'MSSQLSERVER',
Hash $ssdt_install_options = {}
)
Please tell me that when using puppet 4 data types, puppet will automatically switch hiera methods based on type to use the hiera hash / array binding method instead of the normal hiera method.
If not, is this even possible?
Corey