Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.
/ puppet-hiera Public archive
forked from voxpupuli/puppet-hiera

Hiera hierarchy module for templating `hiera.yaml`

Notifications You must be signed in to change notification settings

Jimdo/puppet-hiera

 
 

Repository files navigation

Hiera Puppet

Description

This module configures Hiera for Puppet.

Usage

This class will write out a hiera.yaml file in either /etc/puppetlabs/puppet/hiera.yaml or /etc/puppet/hiera.yaml (depending on if the node is running Puppet Enterprise or not).

class { 'hiera':
  backends => [
    { 'yaml' => { 'datadir' => '/etc/puppet/hieradata' } },
  ],
  hierarchy => [
    '%{environment}/%{calling_class}',
    '%{environment}',
    'common',
  ],
}

The resulting output in /etc/puppet/hiera.yaml:

---
:backends:
  - yaml

:logger: console

:hierarchy:
  - "%{environment}/%{calling_class}"
  - "%{environment}"
  - common

:yaml:
  :datadir: /etc/puppet/hieradata

Testing

Everything you need to know about testing this module is explained in TESTING.md.

Build Status

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Hiera hierarchy module for templating `hiera.yaml`

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 74.5%
  • Puppet 25.5%