Closed sjtarik closed 2 years ago
I think there are a few Ansible netbox plugins handling secret management too.
https://netbox.readthedocs.io/en/stable/core-functionality/secrets/ https://josh-v.com/netbox_ansible_collection/netbox-ansible-lookup-plugin/
https://github.com/netbox-community/netbox/releases/tag/v3.0.0 seems to drop support for secrets. Functionality is going to be moved to a plugin, which AFAIK is not yet finished. This mean we cannot offer this feature for all releases of NetBox, hence closing this issue for now. We might revisit this when the plugin is available.
any plan adding secrets support embedded in inventory itself? I guess currently this is done with transfer function but then this requires a separate call to netbox with a different library just to pull secrets. I wonder if we can add the part retrieving the secrets and in load function of the plugin we let user handle the matching passwords with devices in the transfer function passed by user. so we saved the user from reimplementing all that gathering secret part.
currently I am doing a hacky way of implementing that with a child class derived from NetBoxInventory2. and in my transfer function I have the matching logic to tie specific passwords to particular devices.