WIP: Add testing Makefile and matrix definitions
This commit is contained in:
parent
6d82cf3142
commit
c1b83a892f
5 changed files with 117 additions and 32 deletions
|
|
@ -33,19 +33,22 @@
|
|||
es_custom_package_url: "{{ snapshots.json[package_name]['url'] }}"
|
||||
es_use_repository: false
|
||||
|
||||
- name: split up the snapshot url so we can create the plugin url
|
||||
set_fact:
|
||||
split_url: "{{ es_custom_package_url.split('/') }}"
|
||||
|
||||
- name: set base plugin url
|
||||
set_fact:
|
||||
plugin_url: "{{ split_url[0] + '//' + split_url[2:5]|join('/') + '/elasticsearch-plugins/'}}"
|
||||
|
||||
- name: create es_plugins with the snapshot url
|
||||
set_fact:
|
||||
es_plugins_temp: "{{ es_plugins_temp|default([]) + [{'plugin': item.plugin, 'url': plugin_url + item.plugin + '/' + item.plugin + '-' + es_version + '-SNAPSHOT.zip'}] }}"
|
||||
with_items: "{{ es_plugins }}"
|
||||
|
||||
- name: override the original es_plugins with the snapshot version
|
||||
set_fact:
|
||||
es_plugins: "{{ es_plugins_temp }}"
|
||||
- name: set snapshot urls for es_plugins when it is defined
|
||||
when: es_plugins is defined
|
||||
block:
|
||||
- name: split up the snapshot url so we can create the plugin url
|
||||
set_fact:
|
||||
split_url: "{{ es_custom_package_url.split('/') }}"
|
||||
|
||||
- name: set base plugin url
|
||||
set_fact:
|
||||
plugin_url: "{{ split_url[0] + '//' + split_url[2:5]|join('/') + '/elasticsearch-plugins/'}}"
|
||||
|
||||
- name: create es_plugins with the snapshot url
|
||||
set_fact:
|
||||
es_plugins_temp: "{{ es_plugins_temp|default([]) + [{'plugin': item.plugin, 'url': plugin_url + item.plugin + '/' + item.plugin + '-' + es_version + '-SNAPSHOT.zip'}] }}"
|
||||
with_items: "{{ es_plugins }}"
|
||||
|
||||
- name: override the original es_plugins with the snapshot version
|
||||
set_fact:
|
||||
es_plugins: "{{ es_plugins_temp }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue