Skip to content

Instantly share code, notes, and snippets.

@rdark
Created October 24, 2014 13:37
Show Gist options
  • Save rdark/9a6ac449c3e72c494602 to your computer and use it in GitHub Desktop.
Save rdark/9a6ac449c3e72c494602 to your computer and use it in GitHub Desktop.
hiera() lookup function
pakrat::ldap_exclude_hosts: "%{hiera('trusted_hosts')}"
trusted_hosts:
- '127.0.0.1/8'
- '192.168.1.1/32'
Error: "127.0.0.1/8192.168.1.1/32" is not an Array. It looks to be a String at /tmp/vagrant-puppet-1/modules-0/pakrat/manifests/init.pp:109 on node puppet.vm
Error: "127.0.0.1/8192.168.1.1/32" is not an Array. It looks to be a String at /tmp/vagrant-puppet-1/modules-0/pakrat/manifests/init.pp:109 on node puppet.vm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment