--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
--
----- Original Message -----
> Argh, just realized I left something out of those paths, should be:
This all works exactly as extlookup also worked, nothing new there.
The general behavior is well documented even in the Puppet core docs
Example Config:
---
:parser: YAML
:precedence:
- %{environment}/nodes/%{fqdn}
- %{environment}/nodes/cluster_%{cluster}
- %{environment}/nodes/site_%{site}
- %{environment}/nodes/default
:yaml:
:datadir: /usr/share/puppet/environments
Example call:
$default_packages = extlookup('linux_default_packages')
Given an environment called 'testing', cluster called 'cluster1', site called 'site1' and a node called localhost.localdomain it will look for variable 'linux_default_packages' in:
/usr/share/puppet/environments/testing/localhost.localdomain.yaml
/usr/share/puppet/environments/testing/cluster_cluster1.yaml
/usr/share/puppet/environments/testing/site_site1.yaml
/usr/share/puppet/environments/testing/default.yaml
In that order, which means you can set this at the default level, then override at any lower level you like. Make sense?
----- Original Message -----
> Ok, so am I getting 'DougBobBill' when I use $test_var =
> extlookup('testkey', '---', 'settings') on this file?
how are you examining this value?