Merge "Expose apt repo configuration"

This commit is contained in:
Zuul 2020-02-27 14:07:27 +00:00 committed by Gerrit Code Review
commit ab104a6a27
2 changed files with 9 additions and 1 deletions

View File

@ -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"

View File

@ -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) }}"