Following the example at http://docs.puppetlabs.com/hiera/1/complete_example.html
-
How to print all elements in a Hiera array, per https://ask.puppetlabs.com/question/11181/why-doesnt-hiera-append-the-vmware-classs-to-my-classes-array/
-
Printing Hiera arrays within Puppet
[root@puppet3 puppet]# puppet apply -e '$message = hiera_array(classes) notify { $message: }'
Notice: Compiled catalog for puppet3.example.org in environment production in 0.03 seconds
Notice: vmwaretoolsnn