dj-wasabi / ansible-telegraf

Installing and configuring Telegraf via Ansible for RedHat/Debian/Ubuntu/Windows/Suse.
MIT License
134 stars 116 forks source link

armv7l.deb is now armhf.deb #157

Open jhillyerd opened 2 years ago

jhillyerd commented 2 years ago

Describe the bug

"online" download for my Pi4 running 32-bit debian buster is failing.

telegraf no longer builds an armv7l.deb package. I was able to manually install https://dl.influxdata.com/telegraf/releases/telegraf_1.22.1-1_armhf.deb

There are other issues preventing your plugin from completing, as python-apt no longer installs, so it may not be worth fixing it. I just wanted to get the details down before I try other installation methods.

And yes, I know buster is ancient, but it's still the current version for OctoPi unfortunately.

Installation method/version

Ansible Version

ansible 2.9.27
  config file = None
  configured module search path = ['/home/james/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /nix/store/8dkagx0dismw3yp5w2fwn645va1hy1c2-python3.9-ansible-2.9.27/lib/python3.9/site-packages/ansible
  executable location = /nix/store/8dkagx0dismw3yp5w2fwn645va1hy1c2-python3.9-ansible-2.9.27/bin/ansible
  python version = 3.9.6 (default, Jun 28 2021, 08:57:49) [GCC 10.3.0]

Targetted hosts Concerns the following OS(es):

Expected behavior

Additional context

jhillyerd commented 2 years ago

Turns out manually running apt update unblocked the repo method from working (apt sources needed to rename from stable to oldstable, which apt took care of).

I'm now receiving telemetry from the deb it installed:

pi@octopi:~ $ dpkg -s telegraf
Package: telegraf
Status: install ok installed
Priority: extra
Section: default
Installed-Size: 119979
Maintainer: support@influxdb.com
Architecture: armhf
Version: 1.22.1-1
Conffiles:
 /etc/logrotate.d/telegraf e8b654479dc3f727652531061f818f7a
 /etc/telegraf/telegraf.conf.sample 71c92a3dfbd5701007e43c578e4665e1
Description: Plugin-driven server agent for reporting metrics into InfluxDB.
License: MIT
Vendor: InfluxData
Homepage: https://github.com/influxdata/telegraf

So armhf is the correct type of deb. I can re-test online method if more data is needed, let me know.

dj-wasabi commented 9 months ago

Can you provide a PR for this?

jhillyerd commented 9 months ago

I recently replaced my octopi node with a different system, which is built on raspbian bullseye. I haven't tried pushing an ansible config to it yet. Not sure if this issue will repro there or not, I'll make a note to revisit this bug after.