Skip to content

Commit 62cf708

Browse files
author
Gavin Williams
authored
Merge pull request voxpupuli#1106 from shamil/patch-1
2 parents 5eb4821 + a902899 commit 62cf708

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

manifests/plugin.pp

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
proxy => $_proxy,
130130
plugin_dir => $elasticsearch::real_plugindir,
131131
plugin_path => $module_dir,
132+
before => Service['elasticsearch'],
132133
}
133134
-> file { "${elasticsearch::real_plugindir}/${_module_dir}":
134135
ensure => $_file_ensure,

spec/defines/004_elasticsearch_plugin_spec.rb

+7-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,13 @@ class { 'elasticsearch': }
294294
'Class[elasticsearch::config]'
295295
)}
296296

297-
include_examples('class')
297+
it { should contain_elasticsearch_plugin(
298+
'head'
299+
).that_comes_before(
300+
'Service[elasticsearch]'
301+
)}
302+
303+
include_examples 'class'
298304
end
299305
end
300306
end

0 commit comments

Comments
 (0)