sudoers files hardcode the user 'telegraf' (not working with the snap)
Bug #1918140 reported by
Laurent Sesquès
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Telegraf Charm |
Fix Released
|
High
|
Unassigned |
Bug Description
The (as of now) 2 sudoers files:
telegraf_iptables
telegraf_ovs
give permission to the user 'telegraf', and it can't be configured.
These files should be templated, and allow either 'telegraf' or 'snap_daemon', depending on install_method value.
Related branches
~sajoupa/charm-telegraf:sudoers-template
- Haw Loeung: Approve (+1)
- Barry Price: Approve
- BootStack Reviewers: Pending requested
-
Diff: 221 lines (+68/-30)7 files modifieddev/null (+0/-5)
src/reactive/telegraf.py (+27/-12)
src/templates/sudoers/telegraf_iptables.tmpl (+2/-1)
src/templates/sudoers/telegraf_ovs.tmpl (+6/-0)
src/tests/lint/render_sudoers.py (+12/-0)
src/tests/unit/test_telegraf.py (+18/-10)
src/tox.ini (+3/-2)
To post a comment you must log in.
confirmed it's already released:
git branch --contains cd6438 | grep stable
stable/21.10