Skip to content

Commit

Permalink
Fix v5 yum repo url (#24)
Browse files Browse the repository at this point in the history
* Removed install apt-transport-https on rpm systems.
  • Loading branch information
Charles McLaughlin authored and blbradley committed Feb 3, 2017
1 parent f340f8b commit 8dbf4b3
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 8dbf4b3

Please sign in to comment.