blob: 2c00684c396e0c185b79241c8dc22757fa0cbcd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# deploy a trocla config
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';
}
}
|