Skip to content

Commit

Permalink
Add variable for openSUSE RPM repository (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingphil committed Jan 19, 2022
1 parent 8e4b34d commit 3596c7b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions tasks/Suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3596c7b

Please sign in to comment.