X-pack security fix + activation

This commit is contained in:
Dale McDiarmid 2017-08-17 21:44:46 +01:00
parent 16117f431f
commit 53741c33c6
4 changed files with 10 additions and 7 deletions

View file

@ -17,6 +17,9 @@ provisioner:
ignore_extensions_from_root: [".git",".idea",".kitchen.yml"] ignore_extensions_from_root: [".git",".idea",".kitchen.yml"]
ignore_paths_from_root: [".git",".idea",".kitchen"] ignore_paths_from_root: [".git",".idea",".kitchen"]
transport:
max_ssh_sessions: 6
platforms: platforms:
- name: ubuntu-14.04 - name: ubuntu-14.04
driver_config: driver_config:

View file

@ -3,7 +3,7 @@
- name: Activate ES license (without security authentication) - name: Activate ES license (without security authentication)
uri: uri:
method: PUT method: PUT
url: "http://{{es_api_host}}:{{es_api_port}}/_license?acknowledge=true" url: "http://{{es_api_host}}:{{es_api_port}}/_xpack/license?acknowledge=true"
body_format: json body_format: json
body: "{{ es_xpack_license }}" body: "{{ es_xpack_license }}"
return_content: yes return_content: yes
@ -18,7 +18,7 @@
- name: Activate ES license (with security authentication) - name: Activate ES license (with security authentication)
uri: uri:
method: PUT method: PUT
url: "http://{{es_api_host}}:{{es_api_port}}/_license?acknowledge=true" url: "http://{{es_api_host}}:{{es_api_port}}/_xpack/license?acknowledge=true"
user: "{{es_api_basic_auth_username}}" user: "{{es_api_basic_auth_username}}"
password: "{{es_api_basic_auth_password}}" password: "{{es_api_basic_auth_password}}"
body_format: json body_format: json
@ -34,4 +34,4 @@
license_activated.json.license_status != 'valid' license_activated.json.license_status != 'valid'
- debug: - debug:
msg: "License: {{ license_activated.content }}" msg: "License: {{ license_activated }}"

View file

@ -137,11 +137,11 @@ shared_examples 'xpack::init' do |es_version,plugins|
#Test native roles and users are loaded #Test native roles and users are loaded
describe command('curl -s localhost:9200/_xpack/security/user -u es_admin:changeMeAgain | md5sum | grep 74bcc9f9534b253c1204e264df21496c') do describe command('curl -s localhost:9200/_xpack/security/user -u es_admin:changeMeAgain | md5sum | grep b6a1293c343e745a508c74778c9be8bb') do
its(:exit_status) { should eq 0 } its(:exit_status) { should eq 0 }
end end
describe command('curl -s localhost:9200/_xpack/security/role -u es_admin:changeMeAgain | md5sum | grep 2bf3ffbb9cabf26bb25de6334c4da323') do describe command('curl -s localhost:9200/_xpack/security/role -u es_admin:changeMeAgain | md5sum | grep 44b97844bd8b31d5573493a99ef62106') do
its(:exit_status) { should eq 0 } its(:exit_status) { should eq 0 }
end end

View file

@ -8,7 +8,7 @@
vars: vars:
es_heap_size: "1g" es_heap_size: "1g"
es_templates: true es_templates: true
es_version: "5.1.2" es_version: "5.4.0"
es_enable_xpack: true es_enable_xpack: true
es_xpack_license: "{{ lookup('file', '/tmp/license.json') }}" es_xpack_license: "{{ lookup('file', '/tmp/license.json') }}"
es_plugins: es_plugins:
@ -90,7 +90,7 @@
vars: vars:
es_heap_size: "1g" es_heap_size: "1g"
es_templates: true es_templates: true
es_version: "5.2.2" es_version: "5.5.1"
es_enable_xpack: true es_enable_xpack: true
es_xpack_license: "{{ lookup('file', '/tmp/license.json') }}" es_xpack_license: "{{ lookup('file', '/tmp/license.json') }}"
es_plugins: es_plugins: