Skip to content

Instantly share code, notes, and snippets.

@supercow
Created August 8, 2013 19:52
Show Gist options
  • Save supercow/6188083 to your computer and use it in GitHub Desktop.
Save supercow/6188083 to your computer and use it in GitHub Desktop.
---
parent::params:
- example1
- example2
---
:backends:
- yaml
:hierarchy:
- %{fqdn}
- common
:yaml:
:datadir: '/etc/puppet/hieradata'
# in /etc/puppet/modules/parent/manifests
class parent{
$params = hiera_array('parent::params', ['example1','example2'])
}
---
parent::params:
- example2
- example3
node node1 {
include parent
}
node node2 {
include parent
}
node node3 {
include parent
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment