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 => '/usr/lib/ruby/gems/1.8/gems/hiera-puppet-0.3.0/', |
7 |
require => Package['ruby-hiera-puppet'], |
8 |
} |
9 |
|
10 |
# ease the use fo the command line tool |
11 |
# who use a different location for the config file |
12 |
file { '/etc/hiera.yaml': |
13 |
ensure => '/etc/puppet/hiera.yaml', |
14 |
} |
15 |
|
16 |
file { '/etc/puppet/hiera.yaml': |
17 |
content => template('puppet/hiera.yaml'), |
18 |
} |
19 |
} |