Skip to content

Commit

Permalink
Merge pull request #49 from ninapavlich/master
Browse files Browse the repository at this point in the history
update for version 6 of elasticsearch
  • Loading branch information
myoung34 authored Dec 6, 2017
2 parents d0d7f21 + 17bbb5d commit 286c7c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion elasticsearch/jvmopts.sls
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include:

{% from "elasticsearch/settings.sls" import elasticsearch with context %}
{%- if elasticsearch.major_version == 5 %}
{%- if elasticsearch.major_version == 5 or elasticsearch.major_version == 6 %}
{%- set jvm_opts = salt['pillar.get']('elasticsearch:jvm_opts') %}
{%- if jvm_opts %}
/etc/elasticsearch/jvm.options:
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/plugins.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include:
{% from "elasticsearch/settings.sls" import elasticsearch with context %}
{%- set plugins_pillar = salt['pillar.get']('elasticsearch:plugins', {}) %}
{% if elasticsearch.major_version == 5 %}
{% if elasticsearch.major_version == 5 or elasticsearch.major_version == 6 %}
{%- set plugin_bin = 'elasticsearch-plugin' %}
{% else %}
{%- set plugin_bin = 'plugin' %}
Expand Down
4 changes: 3 additions & 1 deletion elasticsearch/repo.sls
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% from "elasticsearch/settings.sls" import elasticsearch with context %}
{%- if elasticsearch.major_version == 5 %}
{%- if elasticsearch.major_version == 6 %}
{%- set repo_url = 'https://artifacts.elastic.co/packages/6.x' %}
{%- elif elasticsearch.major_version == 5 %}
{%- set repo_url = 'https://artifacts.elastic.co/packages/5.x' %}
{%- else %}
{%- set repo_url = 'http://packages.elastic.co/elasticsearch/2.x' %}
Expand Down

0 comments on commit 286c7c9

Please sign in to comment.