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.
9 lines
407 B
Text
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 %}
|