Resetting extra_plugins doesn't remove them

Bug #1984057 reported by Giuseppe Petralia
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Telegraf Charm
New
Undecided
Unassigned

Bug Description

Using charm telegraf I configured some manual plugins with:

juju config telegraf extra_plugins="$(cat myplugins.conf)"

those are rendered in /etc/telegraf/telegraf.d/extra_plugins.conf

Then I wanted to remove them and I run:

juju config telegraf --reset extra_plugins

but the content of /etc/telegraf/telegraf.d/extra_plugins.conf was not updated.

As a workaround I had to remove it manually and restart telegraf with:

juju status | grep telegraf/ | awk '{print $1}' | tr -d "*" | xargs -I{} juju ssh {} "sudo rm /etc/telegraf/telegraf.d/extra_plugins.conf ; sudo systemctl restart telegraf"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.