aboutsummaryrefslogtreecommitdiffstats
path: root/modules/puppet/manifests/hiera.pp
blob: 8b6923168363c66541758cdddace20772af32511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class puppet::hiera {
    package { ['ruby-hiera','ruby-hiera-puppet']: }

    # ugly, remove once hiera is either fixed or integrated to puppet
    file { '/etc/puppet/external/hiera':
        ensure  => link,
        target  => '/usr/lib/ruby/gems/1.8/gems/hiera-puppet-0.3.0/',
        require => Package['ruby-hiera-puppet'],
    }

    # ease the use fo the command line tool
    # who use a different location for the config file
    file { '/etc/hiera.yaml':
        ensure => link,
        target => '/etc/puppet/hiera.yaml',
    }

    file { '/etc/puppet/hiera.yaml':
        content => template('puppet/hiera.yaml'),
    }
}