remove file script feature
File scripts have been removed since elasticsearch 6.0 (https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking_60_scripting_changes.html#_file_scripts_removed)
This commit is contained in:
parent
86c8e3c59b
commit
1585ec2c1c
8 changed files with 22 additions and 86 deletions
|
|
@ -64,17 +64,6 @@ shared_examples 'multi::init' do |vars|
|
|||
end
|
||||
end
|
||||
|
||||
#Confirm scripts are on both nodes
|
||||
describe file('/etc/elasticsearch/master/scripts') do
|
||||
it { should be_directory }
|
||||
it { should be_owned_by 'elasticsearch' }
|
||||
end
|
||||
|
||||
describe file('/etc/elasticsearch/master/scripts/calculate-score.groovy') do
|
||||
it { should be_file }
|
||||
it { should be_owned_by 'elasticsearch' }
|
||||
end
|
||||
|
||||
#Confirm that the data directory has only been set for the first node
|
||||
describe file('/opt/elasticsearch/master/localhost-master') do
|
||||
it { should be_directory }
|
||||
|
|
|
|||
|
|
@ -90,16 +90,6 @@ shared_examples 'shared::init' do |vars|
|
|||
end
|
||||
end
|
||||
end
|
||||
if vars['es_scripts']
|
||||
describe file("/etc/elasticsearch/#{vars['es_instance_name']}/scripts") do
|
||||
it { should be_directory }
|
||||
it { should be_owned_by 'elasticsearch' }
|
||||
end
|
||||
describe file("/etc/elasticsearch/#{vars['es_instance_name']}/scripts/calculate-score.groovy") do
|
||||
it { should be_file }
|
||||
it { should be_owned_by 'elasticsearch' }
|
||||
end
|
||||
end
|
||||
describe file('/etc/init.d/elasticsearch') do
|
||||
it { should_not exist }
|
||||
end
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
bootstrap.memory_lock: true
|
||||
es_config: "{{ es_config_7x if es_major_version == '7.x' else es_config_6x }}"
|
||||
es_enable_xpack: false
|
||||
es_scripts: true
|
||||
es_templates: true
|
||||
es_heap_size: "1g"
|
||||
es_api_port: 9200
|
||||
|
|
@ -40,7 +39,6 @@
|
|||
- elasticsearch
|
||||
vars:
|
||||
es_enable_xpack: false
|
||||
es_scripts: true
|
||||
es_templates: true
|
||||
es_heap_size: "1g"
|
||||
es_api_port: 9201
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue