Skip to main content

Generate and deploy your first network configuration using Infrahub

PrerequisitesBasic experience with Infrahub, Ansible, Jinja and GraphQL
Time to CompletionApproximately 1 hour
Hands-on Learning

This lab is supported by an Instruqt track. Instruqt is an online lab platform providing a pre-configured environment so you can focus on learning with hands-on experience.

Overview​

Infrahub's artifact generation system combines structured data, GraphQL queries, and Jinja2 templates to produce deployable configuration for your network devices — no infrastructure data disconnected from the templates that consume it.

In this lab, you'll build that pipeline yourself: define the query, write the template, and generate a real device configuration from Infrahub's source of truth.

What you'll learn​

By the end of this hands-on lab, you'll develop the following skills:

  • Creating focused GraphQL queries to extract specific infrastructure data
  • Building reusable Jinja2 templates for generating device configurations
  • Integrating queries and templates using Infrahub's Transformation system
  • Testing configuration changes safely using Infrahub's branching capabilities
  • Validating generated artifacts before deployment to production

Start the lab: Deploy Your First Configuration →