Skip to content

Commit

Permalink
#19 - add logic to support amazon linux properly (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
cptcanuck authored and rossmcdonald committed Oct 24, 2018
1 parent 2c1cf5b commit 7921623
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/etc/yum.repos.d/influxdata.repo.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[influxdb]
name = InfluxDB Repository - {{ ansible_distribution }} $releasever
{% if ansible_distribution|lower == "amazon" %}
baseurl = "{{ telegraf_influxdata_base_url }}/centos/6/amd64/{{ telegraf_install_version }}"
{% else %}
baseurl = {{ telegraf_influxdata_base_url }}/{{ ansible_distribution|lower }}/$releasever/$basearch/{{ telegraf_install_version }}
{% endif %}
enabled = 1
gpgcheck = 1
gpgkey = {{ telegraf_influxdata_base_url }}/influxdb.key
Expand Down

0 comments on commit 7921623

Please sign in to comment.