ansible-role-elasticsearch/templates/elasticsearch.repo
janderson2 7876a662ca Fix yum proxy logic in repo template
Previously if the proxy host was defined but empty, an invalid proxy was
config was added and the install would fail.  This is likely to occur
for instances where you conditionally set the proxy.
2017-05-15 15:17:34 +01:00

9 lines
407 B
Text

[elasticsearch-{{ es_major_version }}]
name=Elasticsearch repository for {{ es_major_version }} packages
baseurl=https://artifacts.elastic.co/packages/{{ es_major_version }}/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
{% if es_proxy_host is defined and es_proxy_host != '' and es_proxy_port is defined %}
proxy=http://{{ es_proxy_host }}:{{es_proxy_port}}
{% endif %}