Skip to content

@supercow /192.168.1.0.yaml
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Using Hiera for subnet based decisions in puppet 3.0.x
# in /etc/puppet/hieradata/
---
someclass::setting1: 'blah'
someclass::another_setting: 1234
someclass::array_setting:
- 'oneval'
- 'twoval'
- 'redval'
- 'blueval'
---
:hierarchy:
- %{network_eth0}
- common
:backends:
- yaml
: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.