diff --git a/README.md b/README.md index eac024e..a5be438 100644 --- a/README.md +++ b/README.md @@ -233,6 +233,10 @@ _Supporting Windows is an best effort (I don't have the possibility to either te * `telegraf_win_logfile`: The location to the logfile of Telegraf. * `telegraf_win_include`: The directory that will contain all plugin configuration. +## openSUSE specific Variables + +* `telegraf_zypper_baseurl`: The URL to the openSUSE repository that hosts Telegraf (for example, for openSUSE Leap: "http://download.opensuse.org/repositories/devel:/languages:/go/openSUSE_Leap_{{ ansible_distribution_version }}/") + ## MacOS specific Variables **NOTE** diff --git a/defaults/main.yml b/defaults/main.yml index 77fece3..a06f9bc 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -79,6 +79,8 @@ telegraf_yum_baseurl: rocky: "https://repos.influxdata.com/rhel/{{ telegraf_redhat_releasever }}/$basearch/stable" telegraf_yum_gpgkey: "https://repos.influxdata.com/influxdb.key" +telegraf_zypper_baseurl: "http://download.opensuse.org/repositories/devel:/languages:/go/openSUSE_Factory/" + telegraf_win_install_dir: 'C:\Telegraf' telegraf_win_logfile: 'C:\\Telegraf\\telegraf.log' telegraf_win_include: 'C:\Telegraf\telegraf_agent.d' diff --git a/tasks/Suse.yml b/tasks/Suse.yml index c51f649..5b63b4c 100644 --- a/tasks/Suse.yml +++ b/tasks/Suse.yml @@ -23,8 +23,8 @@ - name: "Suse | Install basic repo file" zypper_repository: - repo: "http://download.opensuse.org/repositories/devel:/languages:/go/openSUSE_Factory/" - name: The Go Programming Language (openSUSE_Factory) + repo: "{{ telegraf_zypper_baseurl }}" + name: "telegraf" state: present runrefresh: True auto_import_keys: True