Netbox Dynamic Inventory Integration with Semaphore
🛠 Key Features
This repository demonstrates the use of the netbox.netbox.nb_inventory plugin to create a dynamic inventory in Semaphore. It enables automatic synchronization of data from Netbox, simplifying the management of your infrastructure and the execution of Ansible playbooks.
🔧 Setup
Requirements
- Access to Semaphore
- Access to Netbox with configured API
🔑 Netbox Setup
Ensure your Netbox is configured and accessible for API interaction. Obtain an API token which will be used to authenticate requests.
📡 Configuration in Semaphore
-
In Semaphore, go to the inventory section.
-
Create a new inventory.
-
Enter the following settings for the plugin configuration:
plugin: netbox.netbox.nb_inventory api_endpoint: http://your_netbox_url_here token: YOUR_NETBOX_API_TOKEN validate_certs: False config_context: FalseReplace
http://your_netbox_url_hereandYOUR_NETBOX_API_TOKENwith the actual data from your Netbox.
🚀 Usage
Once configured, you can run Ansible playbooks in Semaphore using the dynamic inventory which automatically updates host data from your Netbox.
📚 Further Documentation
Learn more about the netbox.netbox.nb_inventory plugin and its capabilities in the official Ansible documentation.