hiera array vs hiera hash
What are some examples of where you would use a hiera array vs when you would use a hiera hash?
Same as in JSON or YAML. You use an array when you don't need a key (e.g. list of server IP addreses). When you need key-value pairs you would use a hash.
partitions: sda1: uuid: dda37e09-3176-4787-92bc-b93af42268f7 size: "583680" mount: /boot filesystem: ext4
servers: - 192.168.1.1 - 192.168.1.2
Asked: 2014-08-31 17:36:07 -0500
Seen: 521 times
Last updated: Sep 02 '14