use default permissions from official package for plugin directory
This commit is contained in:
parent
79470cb344
commit
6a1b886753
3 changed files with 1 additions and 11 deletions
|
|
@ -79,8 +79,3 @@
|
||||||
until: plugin_installed.rc == 0
|
until: plugin_installed.rc == 0
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 5
|
delay: 5
|
||||||
|
|
||||||
#Set permissions on plugins directory
|
|
||||||
- name: Set Plugin Directory Permissions
|
|
||||||
become: yes
|
|
||||||
file: state=directory path={{ es_home }}/plugins owner={{ es_user }} group={{ es_group }} recurse=yes
|
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,6 @@
|
||||||
include: security/elasticsearch-security.yml
|
include: security/elasticsearch-security.yml
|
||||||
when: es_enable_xpack
|
when: es_enable_xpack
|
||||||
|
|
||||||
#Add any feature specific configuration here
|
|
||||||
- name: Set Plugin Directory Permissions
|
|
||||||
become: yes
|
|
||||||
file: state=directory path={{ es_home }}/plugins owner={{ es_user }} group={{ es_group }} recurse=yes
|
|
||||||
|
|
||||||
#Make sure elasticsearch.keystore has correct Permissions
|
#Make sure elasticsearch.keystore has correct Permissions
|
||||||
- name: Set elasticsearch.keystore Permissions
|
- name: Set elasticsearch.keystore Permissions
|
||||||
become: yes
|
become: yes
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ shared_examples 'shared::init' do |vars|
|
||||||
name = plugin['plugin']
|
name = plugin['plugin']
|
||||||
describe file('/usr/share/elasticsearch/plugins/'+name) do
|
describe file('/usr/share/elasticsearch/plugins/'+name) do
|
||||||
it { should be_directory }
|
it { should be_directory }
|
||||||
it { should be_owned_by vars['es_user'] }
|
it { should be_owned_by 'root' }
|
||||||
end
|
end
|
||||||
it 'should be installed and the right version' do
|
it 'should be installed and the right version' do
|
||||||
plugins = curl_json("#{es_api_url}/_nodes/plugins", username=username, password=password)
|
plugins = curl_json("#{es_api_url}/_nodes/plugins", username=username, password=password)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue