diff --git a/templates/elasticsearch.repo b/templates/elasticsearch.repo index 116ccf8..fdf04fa 100644 --- a/templates/elasticsearch.repo +++ b/templates/elasticsearch.repo @@ -4,3 +4,7 @@ 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_port is defined %} +proxy=http://{{ es_proxy_host }}:{{es_proxy_port}} +{% endif %} +