Puppet Class: puppetmaster::hiera

Defined in:
modules/puppetmaster/manifests/hiera.pp

Overview

Class: puppetmaster::hiera

Configures the HIERArchical configuration system for puppet

Parameters

config

The configuration file source (must be contained in the puppetmaster module). If undef, the file will just be created empty.

Parameters:

  • ensure (Any) (defaults to: 'present')
  • source (Any) (defaults to: 'puppet:///modules/puppetmaster/prod.hiera.yaml')


11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'modules/puppetmaster/manifests/hiera.pp', line 11

class puppetmaster::hiera (
    $ensure = 'present',
    $source = 'puppet:///modules/puppetmaster/prod.hiera.yaml',
    ) {

    file { '/etc/puppet/hiera.yaml':
        ensure => $ensure,
        owner  => 'root',
        group  => 'root',
        mode   => '0444',
        source => $source,
        notify => Service['apache2'],
    }
}