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 55
66#### Fixes
77* 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.
89
910## 6.3.4 (August 7, 2019)
1011
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ elasticsearch::package_provider: package
4040elasticsearch::package_url : ~
4141elasticsearch::pid_dir : /var/run/elasticsearch
4242elasticsearch::pipelines : {}
43- elasticsearch::plugindir : " %{hiera('elasticsearch::homedir')}/plugins "
43+ elasticsearch::plugindir : ~
4444elasticsearch::plugins : {}
4545elasticsearch::proxy_url : ~
4646elasticsearch::purge_configdir : false
Original file line number Diff line number Diff line change 3636 group => $elasticsearch::elasticsearch_group ,
3737 owner => $elasticsearch::elasticsearch_user ,
3838 mode => ' 0750' ;
39- $elasticsearch::plugindir :
39+ $elasticsearch::_plugindir :
4040 ensure => ' directory' ,
4141 group => $elasticsearch::elasticsearch_group ,
4242 owner => $elasticsearch::elasticsearch_user ,
160160
161161 } elsif ( $elasticsearch::ensure == ' absent' ) {
162162
163- file { $elasticsearch::plugindir :
163+ file { $elasticsearch::_plugindir :
164164 ensure => ' absent' ,
165165 force => true ,
166166 backup => false ,
Original file line number Diff line number Diff line change 346346 Optional[String] $package_url,
347347 Optional[Stdlib::Absolutepath] $pid_dir,
348348 Hash $pipelines,
349- Stdlib::Absolutepath $plugindir,
349+ Optional[ Stdlib::Absolutepath] $plugindir,
350350 Hash $plugins,
351351 Optional[Stdlib::HTTPUrl] $proxy_url,
352352 Boolean $purge_configdir,
412412 default => $package_name ,
413413 }
414414
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+
415422 # ### Manage actions
416423
417424 contain elasticsearch::package
Original file line number Diff line number Diff line change 182182
183183 exec { 'remove_plugin_dir' :
184184 refreshonly => true ,
185- command => " rm -rf ${elasticsearch::plugindir } " ,
185+ command => " rm -rf ${elasticsearch::_plugindir } " ,
186186 }
187187
188188
Original file line number Diff line number Diff line change 8585 }
8686 ' absent' : {
8787 $_file_ensure = $ensure
88- $_file_before = File [$elasticsearch::plugindir ]
88+ $_file_before = File [$elasticsearch::_plugindir ]
8989 }
9090 default: { }
9191 }
134134 source => $file_source ,
135135 url => $url ,
136136 proxy => $_proxy,
137- plugin_dir => $::elasticsearch::plugindir ,
137+ plugin_dir => $::elasticsearch::_plugindir ,
138138 plugin_path => $module_dir ,
139139 }
140- -> file { " ${elasticsearch::plugindir } /${_module_dir}" :
140+ -> file { " ${elasticsearch::_plugindir } /${_module_dir}" :
141141 ensure => $_file_ensure,
142142 mode => ' o+Xr' ,
143143 recurse => true ,
You can’t perform that action at this time.
0 commit comments