Skip to content

mariiko-dev/NetBox-Semaphore-Integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 

Repository files navigation

Netbox Dynamic Inventory Integration with Semaphore

Ansible Badge Netbox Badge Semaphore Badge

🌟 Introduction

This project was inspired by my lengthy search for a reliable way to integrate Netbox's dynamic inventory into Semaphore. Throughout my research, I found many suggested methods to be either overly complex or unstable. Finally, I discovered a simple and effective use of the netbox.netbox.nb_inventory plugin built into Ansible, which greatly simplified the process.

πŸ›  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

  1. In Semaphore, go to the inventory section.

  2. Create a new inventory.

  3. 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: False

    Replace http://your_netbox_url_here and YOUR_NETBOX_API_TOKEN with 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published