Fix for server spec debian 8
This commit is contained in:
parent
6c4289b2df
commit
1034995899
4 changed files with 9 additions and 19 deletions
|
|
@ -1,6 +1,13 @@
|
|||
# ansible-elasticsearch
|
||||
|
||||
Ansible playbook / roles / tasks for Elasticsearch. Currently it will work on Debian and RedHat based linux systems.
|
||||
Ansible playbook / roles / tasks for Elasticsearch. Currently it will work on Debian and RedHat based linux systems. Tested platforms are:
|
||||
|
||||
* Ubuntu 1404
|
||||
* Debian 7
|
||||
* Debian 8
|
||||
* Centos 7
|
||||
* Centos 8
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,7 @@
|
|||
#This relies on elasticsearch installing a serviced script to determine whether one should be copied.
|
||||
- stat: path={{sysd_script}}
|
||||
register: systemd_service
|
||||
|
||||
- set_fact: use_system_d={{systemd_service.stat.exists and (ansible_os_family == 'RedHat' or ansible_distribution_version | version_compare('8', '<'))}}
|
||||
- set_fact: use_system_d={{systemd_service.stat.exists and (not ansible_distribution == 'Debian' or ansible_distribution_version | version_compare('8', '<'))}}
|
||||
|
||||
- set_fact: instance_sysd_script={{sysd_script | dirname }}/{{es_instance_name}}_{{sysd_script | basename}}
|
||||
when: use_system_d
|
||||
|
|
|
|||
|
|
@ -73,10 +73,5 @@ context "basic tests" do
|
|||
its(:exit_status) { should eq 0 }
|
||||
end
|
||||
|
||||
describe file('/usr/lib/systemd/system/node1_elasticsearch.service') do
|
||||
it { should be_file }
|
||||
it { should contain 'LimitMEMLOCK=infinity' }
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -156,16 +156,5 @@ context "basic tests" do
|
|||
end
|
||||
|
||||
|
||||
#Test server spec file has been created and modified
|
||||
describe file('/usr/lib/systemd/system/master_elasticsearch.service') do
|
||||
it { should be_file }
|
||||
it { should contain 'LimitMEMLOCK=infinity' }
|
||||
end
|
||||
|
||||
describe file('/usr/lib/systemd/system/node1_elasticsearch.service') do
|
||||
it { should be_file }
|
||||
it { should_not contain 'LimitMEMLOCK=infinity' }
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue