Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Using Hiera for subnet based decisions in puppet 3.0.x
# in /etc/puppet/hieradata/
someclass::setting1: 'blah'
someclass::another_setting: 1234
- 'oneval'
- 'twoval'
- 'redval'
- 'blueval'
- %{network_eth0}
- common
- yaml
:datadir: '/etc/puppet/hieradata'
class someclass(
$setting1 = 'sane_default',
$another_setting = 'also sane default',
$array_setting = [],
) {
#puppet code using those variables...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.