I know I did this once before but can't find docs on how to do it again.

I have this in a yaml file:

pvdisks:
    ec2_pvdisks_m1.small:
        disks: /dev/xvdb1
        enabled: yes

Loading it with hiera.

Manifest has:

    $testkey = hiera('pvdisks')
    notice ("TESTKEY=$testkey[ec2_pvdisks_m1.small]")

This is printing
TESTKEY=ec2_pvdisks_m1.smalldisks/dev/xvdb1enabledtrue['ec2_pvdisks_m1.small']

which obviously is the data picked into a string.

Doug.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to