opennms-forge / ansible-provisioning

Use Ansible to provision node inventory into OpenNMS Horizon/Meridian
https://www.opennms.com
GNU Affero General Public License v3.0
0 stars 1 forks source link

✨ feat: Improvements about synchronising requisitions and tagging #63

Closed indigo423 closed 12 months ago

indigo423 commented 1 year ago

Instead of running tasks in the playbook, I've added a conditional to run the import requisition node with the last node in the play for all hosts in a group. The requisition import task is also tagged and can be skipped with --extra-vars '{"skip_import":"true"}'

Resolves: #60

indigo423 commented 1 year ago

@mfuhrmann It would be nice if you can give the requisition import behavior some testing with multiple nodes in at least two groups that end up in requisitions.

indigo423 commented 1 year ago

@mfuhrmann if you can give it a spin and merge it would be nice. I'm afk for a while and can't do anything about it :)

mfuhrmann commented 1 year ago

I found one small issue with the handler name that I fixed within this PR otherwise the playbook didn't work. Skipping the import worked for me :+1: I mentioned this feature in the README.

mfuhrmann commented 12 months ago

With the latest commit we will always run the import only at the end (last entry in host inventory). But the condition in the task will allow to skip the import.