diff --git a/elk_metrics_7x/roles/elastic_repositories/defaults/main.yml b/elk_metrics_7x/roles/elastic_repositories/defaults/main.yml index 8448bf56..aaf44ae2 100644 --- a/elk_metrics_7x/roles/elastic_repositories/defaults/main.yml +++ b/elk_metrics_7x/roles/elastic_repositories/defaults/main.yml @@ -18,3 +18,9 @@ elastic_repo_ppas: [] # List of packages to install elastic_repo_distro_packages: [] + +# Elasticsearch apt repo to use for package install. Uncomment to change, e.g. for mirror usage +# elastic_apt_repo: +# repo: 'deb https://artifacts.elastic.co/packages/7.x/apt stable main' +# state: "{{ ((elk_package_state | default('present')) == 'absent') | ternary('absent', 'present') }}" +# key_url: "https://artifacts.elastic.co/GPG-KEY-elasticsearch" diff --git a/elk_metrics_7x/roles/elastic_repositories/vars/ubuntu.yml b/elk_metrics_7x/roles/elastic_repositories/vars/ubuntu.yml index a1716e26..2542fecd 100644 --- a/elk_metrics_7x/roles/elastic_repositories/vars/ubuntu.yml +++ b/elk_metrics_7x/roles/elastic_repositories/vars/ubuntu.yml @@ -17,7 +17,9 @@ elastic_repo_distro_packages: - apt-transport-https # elk apt repo -elastic_repo: +_elastic_repo: repo: 'deb https://artifacts.elastic.co/packages/7.x/apt stable main' state: "{{ ((elk_package_state | default('present')) == 'absent') | ternary('absent', 'present') }}" key_url: "https://artifacts.elastic.co/GPG-KEY-elasticsearch" + +elastic_repo: "{{ elastic_apt_repo | default(_elastic_repo) }}"