Merge pull request #122 from marcinwito/gpg_yum_repo_fix

gpgkey yum repo fix
This commit is contained in:
Werner Dijkerman
2020-05-19 15:10:19 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@ -73,6 +73,7 @@ telegraf_yum_baseurl:
centos: "https://repos.influxdata.com/rhel/{{ telegraf_redhat_releasever }}/$basearch/stable" centos: "https://repos.influxdata.com/rhel/{{ telegraf_redhat_releasever }}/$basearch/stable"
default: "https://repos.influxdata.com/{{ ansible_distribution|lower }}/{{ telegraf_redhat_releasever }}/$basearch/stable" default: "https://repos.influxdata.com/{{ ansible_distribution|lower }}/{{ telegraf_redhat_releasever }}/$basearch/stable"
redhat: "https://repos.influxdata.com/rhel/{{ telegraf_redhat_releasever }}/$basearch/stable" redhat: "https://repos.influxdata.com/rhel/{{ telegraf_redhat_releasever }}/$basearch/stable"
telegraf_yum_gpgkey: "https://repos.influxdata.com/influxdb.key"
telegraf_win_install_dir: 'C:\Telegraf' telegraf_win_install_dir: 'C:\Telegraf'
telegraf_win_logfile: 'C:\\Telegraf\\telegraf.log' telegraf_win_logfile: 'C:\\Telegraf\\telegraf.log'

View File

@ -18,8 +18,8 @@
name: influxdb name: influxdb
description: InfluxDB Repository - RHEL $releasever description: InfluxDB Repository - RHEL $releasever
baseurl: "{{ telegraf_yum_baseurl[ansible_distribution|lower] | default(telegraf_yum_baseurl['default']) }}" baseurl: "{{ telegraf_yum_baseurl[ansible_distribution|lower] | default(telegraf_yum_baseurl['default']) }}"
gpgcheck: yes gpgcheck: "{{ telegraf_yum_gpgcheck | default('true') }}"
gpgkey: https://repos.influxdata.com/influxdb.key gpgkey: "{{ telegraf_yum_gpgkey }}"
become: yes become: yes
when: when:
- telegraf_agent_package_method == "repo" - telegraf_agent_package_method == "repo"