snmp.yml reuse if_mib for different auth.community
I want to make a copy of if_mib of snmp.yml but with a different "auth.community" setting.
So far I've managed to survive without using the SNMP generator :D
I tried for a while and failed to with some yaml merging to make something like:
if_mib_my_module:
<< : *if_mib
auth:
community: "CVE-1999-0517"
So right now I'm planning to:
- copy upstream https://github.com/prometheus/snmp_exporter/blob/main/snmp.yml into my ansible repo
- manually maintain a copy of if_mib with my extra auth.community inside
Does someone have a better solution?
Posted Jul 20, 2021, 7:48 AM UTC · edited
10