blob: a08d88599643cc9763f31dacbed8ddaf50426430 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
class trocla::config($ruby='system') {
if $trocla::config::ruby == 'system' or $trocla::config::ruby == 'both' {
require trocla::master
}
if $trocla::config::ruby == 'ree' or $trocla::config::ruby == 'both' {
require trocla::master::ree
}
# deploy default config file and link it for trocla cli lookup
file{
"${settings::confdir}/troclarc.yaml":
content => "---\nadapter_options:\n :file: ${settings::confdir}/trocla_data.yaml\n",
owner => root, group => puppet, mode => 0640;
'/etc/troclarc.yaml':
ensure => link,
target => "${settings::confdir}/troclarc.yaml";
"${settings::confdir}/trocla_data.yaml":
ensure => present,
owner => puppet, group => 0, mode => 0600;
}
}
|