Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Add support for offline x-pack install
Browse files Browse the repository at this point in the history
  • Loading branch information
bndabbs committed May 9, 2017
1 parent e351dc2 commit ee73f18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ es_max_map_count: 262144
es_allow_downgrades: false
es_enable_xpack: false
es_xpack_features: ["alerting","monitoring","graph","security"]
es_xpack_file: "x-pack"
#These are used for internal operations performed by ansible.
#They do not effect the current configuration
es_api_host: "localhost"
Expand Down
7 changes: 5 additions & 2 deletions tasks/xpack/elasticsearch-xpack-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@

#Install plugin if not installed, or the es version has changed (so removed above), and its been requested
- name: Install x-pack plugin
command: >
{{es_home}}/bin/elasticsearch-plugin install --silent --batch x-pack {% if es_proxy_host is defined and es_proxy_host != '' %} -Dhttp.proxyHost={{ es_proxy_host }} -Dhttp.proxyPort={{ es_proxy_port }} {% endif %}
shell: >
{% if es_proxy_host is defined and es_proxy_host != '' %}
ES_JAVA_OPTS="-Dhttp.proxyHost={{ es_proxy_host }} -Dhttp.proxyPort={{ es_proxy_port }}"
{% endif %}
{{es_home}}/bin/elasticsearch-plugin install --silent --batch {{ es_xpack_file }}
register: xpack_state
failed_when: "'ERROR' in xpack_state.stdout"
changed_when: xpack_state.rc == 0
Expand Down

0 comments on commit ee73f18

Please sign in to comment.