Home / Companies / OpsMill / Blog / Post Details
Content Deep Dive

How to Automate Configuration Workflows Using Infrahub and Nornir

Blog post from OpsMill

Post Details
Company
Date Published
Author
Suresh Vina
Word Count
4,221
Language
English
Hacker News Points
-
Summary

Automating infrastructure processes to generate and deploy device configurations at scale can be effectively achieved using Infrahub and Nornir, two open-source tools. This tutorial provides an in-depth guide on utilizing Infrahub as a data source to automatically generate Jinja2 configuration templates, which are then pushed to devices using the Nornir-Infrahub plugin with Napalm. The example focuses on adding Arista switches, creating VLANs, and configuring interfaces, while highlighting prerequisites such as familiarity with Git and Docker. The process involves creating data in Infrahub through various methods, such as web interfaces and GraphQL queries, and then transforming this data into device configurations using Jinja2 templates and Infrahub's transformation features. Additionally, the tutorial explains how to set up a Nornir configuration to use Infrahub as an inventory source, configure schema mappings, and use group-specific attributes for device management. By incorporating change management through Infrahub's Proposed Changes feature, users can ensure efficient tracking, reviewing, and implementation of configuration changes, demonstrating a robust approach to managing network infrastructure automation.