1 |
class puppet::hiera { |
2 |
package { ['ruby-hiera','ruby-hiera-puppet']: } |
3 |
|
4 |
# ugly, remove once hiera is either fixed or integrated to puppet |
5 |
file { '/etc/puppet/external/hiera': |
6 |
ensure => link, |
7 |
target => '/usr/lib/ruby/gems/1.8/gems/hiera-puppet-0.3.0/', |
8 |
require => Package['ruby-hiera-puppet'], |
9 |
} |
10 |
|
11 |
# ease the use fo the command line tool |
12 |
# who use a different location for the config file |
13 |
file { '/etc/hiera.yaml': |
14 |
ensure => link, |
15 |
target => '/etc/puppet/hiera.yaml', |
16 |
} |
17 |
|
18 |
file { '/etc/puppet/hiera.yaml': |
19 |
content => template('puppet/hiera.yaml'), |
20 |
} |
21 |
} |