>> I want to get the value of datadir in my puppet module. Please let me know 
>> what is the syntax I need to use to fetch this value. I tried something as 
>> follows but it doesn't work.
>>
>>
>> $datadir = hiera('mysqlconfig::custom_mysql_options[datadir]’)
>
> With hiera you can only specify keys, not elements of a hash.

That's not the case with Hiera 2.0+ which supports drilling down into
hashes and arrays... so you should also be able to do....

$datadir = hiera('mysqlconfig::custom_mysql_options.datadir')

If you're still on Hiera 1.0 though, what Martin said.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CACxdKhEjxb1sLXugQD5dTHBYbxLcvrATC1jjZhwcXKWvvXAMSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to