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 @@ -11,6 +11,7 @@ Puppet 4.10.0 is the new minimum required version of Puppet.
1111* Package management on apt-based systems no longer encounters dependency errors when ` manage_repo => false ` .
1212* An error related to elasticsearch_roles and ` yield ` errors has been fixed
1313* Correctly permit instances to be set to ` absent ` without errors.
14+ * Resolved an issue arising from the use of ` hiera() ` in Hiera yaml data files.
1415
1516#### Features
1617
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ elasticsearch::package_provider: package
3939elasticsearch::package_url : ~
4040elasticsearch::pid_dir : /var/run/elasticsearch
4141elasticsearch::pipelines : {}
42- elasticsearch::plugindir : " %{hiera('elasticsearch::homedir')}/plugins "
42+ elasticsearch::plugindir : ~
4343elasticsearch::plugins : {}
4444elasticsearch::proxy_url : ~
4545elasticsearch::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 341341 Optional[String] $package_url,
342342 Optional[Stdlib::Absolutepath] $pid_dir,
343343 Hash $pipelines,
344- Stdlib::Absolutepath $plugindir,
344+ Optional[ Stdlib::Absolutepath] $plugindir,
345345 Hash $plugins,
346346 Optional[Stdlib::HTTPUrl] $proxy_url,
347347 Boolean $purge_configdir,
407407 default => $package_name ,
408408 }
409409
410+ # Set the plugin path variable for use later in the module.
411+ if $plugindir == undef {
412+ $_plugindir = " ${homedir} /plugins"
413+ } else {
414+ $_plugindir = $plugindir
415+ }
416+
410417 # ### Manage actions
411418
412419 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