Skip to content

Commit

Permalink
Fix v5 yum repo url
Browse files Browse the repository at this point in the history
Based on the latest docs...

https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html

The yum repo url should end with /yum

However, based on the 2.1 docs...

https://www.elastic.co/guide/en/elasticsearch/reference/2.1/setup-repositories.html

It should end with /centos

Also don't try to install apt-transport-https on rpm systems.
  • Loading branch information
cmclaughlin committed Feb 3, 2017
1 parent f340f8b commit ff0f08b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elasticsearch/repo.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{%- set repo_url = 'http://packages.elastic.co/elasticsearch/2.x' %}
{%- endif %}

{%- if major_version == 5 %}
{%- if major_version == 5 and grains['os_family'] == 'Debian' %}
apt-transport-https:
pkg.installed
{%- endif %}
Expand All @@ -28,7 +28,7 @@ elasticsearch_repo:
{%- elif grains['os_family'] == 'RedHat' %}
- name: elasticsearch
{%- if major_version == 5 %}
- baseurl: {{ repo_url }}/centos
- baseurl: {{ repo_url }}/yum
{%- else %}
- baseurl: {{ repo_url }}/centos
{%- endif %}
Expand Down

0 comments on commit ff0f08b

Please sign in to comment.