Apply ConfigSources to devices that have alert trigged from other configsource
- 2 years ago
If I understand this right, I don’t think ConfigSource would be the best way to do this.ConfigSource is more for alerting on changes to a config and not analyzing the configuration itself.
I would create a PropertySource that specifically looks for the missing config option and will set a property on that device when that is the case. You can then have a AppliesTo on a DataSource that looks for that property and does what you want. Just be careful to not do it multiple times since PropertySources only run once a day. Like have the DataSource recheck that it hasn’t already been applied before changing it.
IMHO, LM isn’t really geared towards taking actions on what it finds directly. LM runs scripts, and scripts can do anything but I personally think it’s hacky but it can get the job done just be careful about it.