6.x should not have path.conf present
This commit is contained in:
parent
94b059080b
commit
043c1bff69
4 changed files with 25 additions and 5 deletions
|
|
@ -36,7 +36,11 @@ shared_examples 'config::init' do |vars|
|
||||||
it { should contain 'node.name: node1' }
|
it { should contain 'node.name: node1' }
|
||||||
it { should contain 'bootstrap.memory_lock: true' }
|
it { should contain 'bootstrap.memory_lock: true' }
|
||||||
it { should contain 'discovery.zen.ping.unicast.hosts: localhost:9501' }
|
it { should contain 'discovery.zen.ping.unicast.hosts: localhost:9501' }
|
||||||
|
if vars['es_major_version'] == '6.x'
|
||||||
|
it { should_not contain 'path.conf: /etc/elasticsearch/node1' }
|
||||||
|
else
|
||||||
it { should contain 'path.conf: /etc/elasticsearch/node1' }
|
it { should contain 'path.conf: /etc/elasticsearch/node1' }
|
||||||
|
end
|
||||||
it { should contain 'path.data: /opt/elasticsearch/data-1/localhost-node1,/opt/elasticsearch/data-2/localhost-node1' }
|
it { should contain 'path.data: /opt/elasticsearch/data-1/localhost-node1,/opt/elasticsearch/data-2/localhost-node1' }
|
||||||
it { should contain 'path.logs: /opt/elasticsearch/logs/localhost-node1' }
|
it { should contain 'path.logs: /opt/elasticsearch/logs/localhost-node1' }
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,11 @@ shared_examples 'multi::init' do |vars|
|
||||||
it { should contain 'node.master: false' }
|
it { should contain 'node.master: false' }
|
||||||
it { should contain 'node.name: localhost-node1' }
|
it { should contain 'node.name: localhost-node1' }
|
||||||
it { should_not contain 'bootstrap.memory_lock: true' }
|
it { should_not contain 'bootstrap.memory_lock: true' }
|
||||||
|
if vars['es_major_version'] == '6.x'
|
||||||
|
it { should_not contain 'path.conf: /etc/elasticsearch/node1' }
|
||||||
|
else
|
||||||
it { should contain 'path.conf: /etc/elasticsearch/node1' }
|
it { should contain 'path.conf: /etc/elasticsearch/node1' }
|
||||||
|
end
|
||||||
it { should contain 'path.data: /opt/elasticsearch/data-1/localhost-node1,/opt/elasticsearch/data-2/localhost-node1' }
|
it { should contain 'path.data: /opt/elasticsearch/data-1/localhost-node1,/opt/elasticsearch/data-2/localhost-node1' }
|
||||||
it { should contain 'path.logs: /var/log/elasticsearch/localhost-node1' }
|
it { should contain 'path.logs: /var/log/elasticsearch/localhost-node1' }
|
||||||
end
|
end
|
||||||
|
|
@ -44,7 +48,11 @@ shared_examples 'multi::init' do |vars|
|
||||||
it { should contain 'node.master: true' }
|
it { should contain 'node.master: true' }
|
||||||
it { should contain 'node.name: localhost-master' }
|
it { should contain 'node.name: localhost-master' }
|
||||||
it { should contain 'bootstrap.memory_lock: true' }
|
it { should contain 'bootstrap.memory_lock: true' }
|
||||||
it { should contain 'path.conf: /etc/elasticsearch/master' }
|
if vars['es_major_version'] == '6.x'
|
||||||
|
it { should_not contain 'path.conf: /etc/elasticsearch/node1' }
|
||||||
|
else
|
||||||
|
it { should contain 'path.conf: /etc/elasticsearch/node1' }
|
||||||
|
end
|
||||||
it { should contain 'path.data: /opt/elasticsearch/master/localhost-master' }
|
it { should contain 'path.data: /opt/elasticsearch/master/localhost-master' }
|
||||||
it { should contain 'path.logs: /var/log/elasticsearch/localhost-master' }
|
it { should contain 'path.logs: /var/log/elasticsearch/localhost-master' }
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,11 @@ shared_examples 'xpack::init' do |vars|
|
||||||
describe file('/etc/elasticsearch/security_node/elasticsearch.yml') do
|
describe file('/etc/elasticsearch/security_node/elasticsearch.yml') do
|
||||||
it { should contain 'node.name: localhost-security_node' }
|
it { should contain 'node.name: localhost-security_node' }
|
||||||
it { should contain 'cluster.name: elasticsearch' }
|
it { should contain 'cluster.name: elasticsearch' }
|
||||||
it { should contain 'path.conf: /etc/elasticsearch/security_node' }
|
if vars['es_major_version'] == '6.x'
|
||||||
|
it { should_not contain 'path.conf: /etc/elasticsearch/node1' }
|
||||||
|
else
|
||||||
|
it { should contain 'path.conf: /etc/elasticsearch/node1' }
|
||||||
|
end
|
||||||
it { should contain 'path.data: /var/lib/elasticsearch/localhost-security_node' }
|
it { should contain 'path.data: /var/lib/elasticsearch/localhost-security_node' }
|
||||||
it { should contain 'path.logs: /var/log/elasticsearch/localhost-security_node' }
|
it { should contain 'path.logs: /var/log/elasticsearch/localhost-security_node' }
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,11 @@ shared_examples 'xpack_standard::init' do |vars|
|
||||||
describe file('/etc/elasticsearch/security_node/elasticsearch.yml') do
|
describe file('/etc/elasticsearch/security_node/elasticsearch.yml') do
|
||||||
it { should contain 'node.name: localhost-security_node' }
|
it { should contain 'node.name: localhost-security_node' }
|
||||||
it { should contain 'cluster.name: elasticsearch' }
|
it { should contain 'cluster.name: elasticsearch' }
|
||||||
it { should contain 'path.conf: /etc/elasticsearch/security_node' }
|
if vars['es_major_version'] == '6.x'
|
||||||
|
it { should_not contain 'path.conf: /etc/elasticsearch/node1' }
|
||||||
|
else
|
||||||
|
it { should contain 'path.conf: /etc/elasticsearch/node1' }
|
||||||
|
end
|
||||||
it { should contain 'path.data: /var/lib/elasticsearch/localhost-security_node' }
|
it { should contain 'path.data: /var/lib/elasticsearch/localhost-security_node' }
|
||||||
it { should contain 'path.logs: /var/log/elasticsearch/localhost-security_node' }
|
it { should contain 'path.logs: /var/log/elasticsearch/localhost-security_node' }
|
||||||
it { should contain 'xpack.security.enabled: false' }
|
it { should contain 'xpack.security.enabled: false' }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue