Commit Graph

28 Commits

Author SHA1 Message Date
7c9c047c67 fix: add missing tasks for RedHat distro (rpm install) (#189) 2024-11-26 14:08:46 +01:00
c8a2209fe5 use redhat baseurl (#183) 2024-02-19 09:33:14 +01:00
f241fd34d0 added yaml 1.2.2 compatibility (#176) 2023-10-20 17:16:45 +02:00
5066c5c7f9 Fix check-mode failures (#168)
* feat: Fix check-mode

* ci: Add "check-mode" runs to tests

* feat: Ensure check-mode works for repo-based installs
2023-01-31 15:36:14 +01:00
331ffb7cb5 gpgkey yum repo fix 2020-05-19 13:40:18 +02:00
292cc2a2f4 Also add become for installation 2020-04-22 20:45:16 +05:30
685487f198 Fix omit syntax 2020-04-22 19:52:34 +05:30
7b8809c311 Add yum_repo as privileged user
For #119
2020-04-22 19:45:15 +05:30
ca4a07f87d As per comment in issue the environment argument should be provided 2019-04-21 19:50:14 +02:00
3cd91d0316 Added the use_proxy argument to use a proxy (or not) 2019-04-21 18:51:26 +02:00
a11694ff86 Various small changes for molecule 2019-04-21 18:17:54 +02:00
0aba53bb17 Updated to Telegraf 1.10.0;Different installation methods 2019-03-10 12:39:14 +01:00
bf008bec0c Aded a register so installation can be done again. This would also reduce the amount of E405 lint errors 2019-01-23 09:58:00 +01:00
9f98ae6a76 Add Docker container support 2019-01-22 16:24:21 +01:00
454ee8be7b Add Yum repo support for Amazon Linux 2019-01-08 13:15:47 -08:00
e3c553e729 Need to pull RHEL packages for Fedora
It seems Influxdb does not provide packages for Fedora. Thus the package repository URL needs to be hard coded to RHEL7 if run from Fedora. This change recognises we are on Fedora, and fakes RHEL release to be 7 so URL gets right.
2018-12-17 00:14:19 +02:00
c5e6883c1b Fedora dnf breaks with yum module.
Fedora uses dnf instead of yum. If this change is not made, playbook fails with:
fatal: [xx.yy]: FAILED! => {"changed": false, "msg": "The Python 2 yum module is needed for this module. If you require Python 3 support use the `dnf` Ansible module instead."}
2018-12-16 23:45:47 +02:00
aa78fc137e Added support for (Open)Suse 2018-11-25 18:06:45 +01:00
139943a832 Allow to install the latest version 2018-11-22 20:52:17 +01:00
85ee6f2c94 Initial working version 2018-11-22 20:12:07 +01:00
a49a079664 Improved comments, split up role, moved tags and added defaults
- Added some commenting inside of defaults to clarify which variables
  adjust which files

- Split up the role taking items out of main.yml in tasks. This is to
  improve clarity of what each bit of Ansible code is doing.

- Tags were defined for each and every task within the Debian.yml moved
  ths up to main.yml so they don't need repeating every task adding
  clutter.

- Added some extra default plugins, as of current release version these
  are now within the default configuration but were missing from this
  role.

- Added some commenting inside the templates and the top of some tasks
  to clarify where the templated file was coming from.
2018-04-06 12:25:27 +01:00
875b1a5ee8 Allow to override RedHat release version
Systems like Amazon Linux are from the RedHat OS family but have a
specific release versions notation. Influxdata does not always provide a
yum repository with these versions, so it should be something to override
in order to install telegraf from a different release version path.

For instance, Influxdata currently provides telegraf for both RHEL
versions 6 and 2016.09 with packages being the same (same checksums).
This is because of Amazon Linux 2016.09 being a RHEL version 6.
However, now Amazon Linux 2017.09 is out, still being a RHEL 6 but
Influxdata does not provide a 2017.09 release version path so we cannon
install telegraf on it. Overriding the release version to 6 or 2016.09
will allow to install.
2018-03-09 11:49:06 +01:00
1e57d51575 Remove useless packages on RedHat. fix #28
Once used for testing, these packages are no longer useful and can even
lead to certain issues, as installation can fail.
2017-10-18 14:41:35 +02:00
c416bb20a7 Replace action by modules 2017-02-22 19:20:29 +01:00
0b82b8420e Use yum repository to install telegraf on RedHat family
The role does not use a direct download of the rpm package but use the
yum repository for InfluxData products as it is advised in the current
documentation for installation.
https://docs.influxdata.com/telegraf/v1.2/introduction/installation/
2017-02-22 10:27:03 +01:00
e4ac118212 Removed Travis Test; Update travis build; Added Molecule tests; Updated default installation version 2016-07-17 15:15:22 +02:00
ac27a7a9eb Added notify on installation of package 2015-09-23 19:24:01 +02:00
03adb259af Initial version 2015-09-20 14:13:54 +02:00