File tree Expand file tree Collapse file tree 2 files changed +28
-9
lines changed Expand file tree Collapse file tree 2 files changed +28
-9
lines changed Original file line number Diff line number Diff line change 3
3
class puppetdb::master::routes (
4
4
$puppet_confdir = $puppetdb::params::puppet_confdir,
5
5
$masterless = $puppetdb::params::masterless,
6
- $routes = {
7
- ' master' => {
8
- ' facts' => {
9
- ' terminus' => ' puppetdb' ,
10
- ' cache' => ' yaml' ,
11
- }
12
- }
13
- }
6
+ $routes = undef ,
14
7
) inherits puppetdb::params {
15
8
16
9
if $masterless {
26
19
}
27
20
}
28
21
}
29
- } else {
22
+ } elsif $routes {
30
23
$routes_real = $routes
24
+ } else {
25
+ if (defined (' $serverversion' )) and (versioncmp($serverversion , ' 7.0' ) >= 0) {
26
+ $default_fact_cache = ' json'
27
+ } else {
28
+ $default_fact_cache = ' yaml'
29
+ }
30
+ $routes_real = {
31
+ ' master' => {
32
+ ' facts' => {
33
+ ' terminus' => ' puppetdb' ,
34
+ ' cache' => $default_fact_cache ,
35
+ }
36
+ }
37
+ }
31
38
}
32
39
33
40
# TODO: this will overwrite any existing routes.yaml;
Original file line number Diff line number Diff line change 86
86
operatingsystemrelease : '7.0' ,
87
87
kernel : 'Linux' ,
88
88
selinux : true ,
89
+ os : {
90
+ family : 'RedHat' ,
91
+ name : 'RedHat' ,
92
+ release : { 'full' => '7.0' } ,
93
+ selinux : { 'enabled' => true } ,
94
+ } ,
89
95
}
90
96
end
91
97
let ( :pre_condition ) { 'class { "puppetdb::globals": version => "3.1.1-1.el7", }' }
102
108
operatingsystemrelease : '7.0' ,
103
109
kernel : 'Linux' ,
104
110
selinux : true ,
111
+ os : {
112
+ family : 'RedHat' ,
113
+ name : 'RedHat' ,
114
+ release : { 'full' => '7.0' } ,
115
+ selinux : { 'enabled' => true } ,
116
+ } ,
105
117
}
106
118
end
107
119
You can’t perform that action at this time.
0 commit comments