Skip to content

Instantly share code, notes, and snippets.

@jvelasquez
Created June 3, 2016 17:35
Show Gist options
  • Save jvelasquez/2d3399599cc06d136d5f9e972b1f8021 to your computer and use it in GitHub Desktop.
Save jvelasquez/2d3399599cc06d136d5f9e972b1f8021 to your computer and use it in GitHub Desktop.
$hiera_yaml = "${::settings::confdir}/hiera.yaml"
class { 'hiera':
hierarchy => [
'virtual/%{::virtual}',
'nodes/%{::trusted.certname}',
'common',
],
hiera_yaml => $hiera_yaml,
datadir => '/etc/puppetlabs/code/environments/%{environment}/hieradata',
owner => 'pe-puppet',
group => 'pe-puppet',
notify => Service['pe-puppetserver'],
## Configure eyaml
eyaml => true,
# eyaml_version => 'latest',
create_keys => true,
# keysdir => "${::settings::confdir}/keys",
# provider => 'puppetserver_gem', #PE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment