File tree Expand file tree Collapse file tree 6 files changed +16
-8
lines changed Expand file tree Collapse file tree 6 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 5
5
6
6
#### Fixes
7
7
* Fix "Could not autoload" errors in some custom types/providers.
8
+ * Resolved an issue arising from the use of ` hiera() ` in Hiera yaml data files.
8
9
9
10
## 6.3.4 (August 7, 2019)
10
11
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ elasticsearch::package_provider: package
40
40
elasticsearch::package_url : ~
41
41
elasticsearch::pid_dir : /var/run/elasticsearch
42
42
elasticsearch::pipelines : {}
43
- elasticsearch::plugindir : " %{hiera('elasticsearch::homedir')}/plugins "
43
+ elasticsearch::plugindir : ~
44
44
elasticsearch::plugins : {}
45
45
elasticsearch::proxy_url : ~
46
46
elasticsearch::purge_configdir : false
Original file line number Diff line number Diff line change 36
36
group => $elasticsearch::elasticsearch_group ,
37
37
owner => $elasticsearch::elasticsearch_user ,
38
38
mode => ' 0750' ;
39
- $elasticsearch::plugindir :
39
+ $elasticsearch::_plugindir :
40
40
ensure => ' directory' ,
41
41
group => $elasticsearch::elasticsearch_group ,
42
42
owner => $elasticsearch::elasticsearch_user ,
160
160
161
161
} elsif ( $elasticsearch::ensure == ' absent' ) {
162
162
163
- file { $elasticsearch::plugindir :
163
+ file { $elasticsearch::_plugindir :
164
164
ensure => ' absent' ,
165
165
force => true ,
166
166
backup => false ,
Original file line number Diff line number Diff line change 346
346
Optional[String] $package_url,
347
347
Optional[Stdlib::Absolutepath] $pid_dir,
348
348
Hash $pipelines,
349
- Stdlib::Absolutepath $plugindir,
349
+ Optional[ Stdlib::Absolutepath] $plugindir,
350
350
Hash $plugins,
351
351
Optional[Stdlib::HTTPUrl] $proxy_url,
352
352
Boolean $purge_configdir,
412
412
default => $package_name ,
413
413
}
414
414
415
+ # Set the plugin path variable for use later in the module.
416
+ if $plugindir == undef {
417
+ $_plugindir = " ${homedir} /plugins"
418
+ } else {
419
+ $_plugindir = $plugindir
420
+ }
421
+
415
422
# ### Manage actions
416
423
417
424
contain elasticsearch::package
Original file line number Diff line number Diff line change 182
182
183
183
exec { 'remove_plugin_dir' :
184
184
refreshonly => true ,
185
- command => " rm -rf ${elasticsearch::plugindir } " ,
185
+ command => " rm -rf ${elasticsearch::_plugindir } " ,
186
186
}
187
187
188
188
Original file line number Diff line number Diff line change 85
85
}
86
86
' absent' : {
87
87
$_file_ensure = $ensure
88
- $_file_before = File [$elasticsearch::plugindir ]
88
+ $_file_before = File [$elasticsearch::_plugindir ]
89
89
}
90
90
default: { }
91
91
}
134
134
source => $file_source ,
135
135
url => $url ,
136
136
proxy => $_proxy,
137
- plugin_dir => $::elasticsearch::plugindir ,
137
+ plugin_dir => $::elasticsearch::_plugindir ,
138
138
plugin_path => $module_dir ,
139
139
}
140
- -> file { " ${elasticsearch::plugindir } /${_module_dir}" :
140
+ -> file { " ${elasticsearch::_plugindir } /${_module_dir}" :
141
141
ensure => $_file_ensure,
142
142
mode => ' o+Xr' ,
143
143
recurse => true ,
You can’t perform that action at this time.
0 commit comments