Refactor Infrahub config and rename schema folder

Move schema files into a dedicated 'schemas' directory and update
.infrahub.yml to reference them along with adding sections for schemas,
generators, and queries.
This commit is contained in:
darnodo
2025-11-15 11:13:46 +01:00
parent 1df82d4f32
commit a7ff08e5ff
11 changed files with 7 additions and 2 deletions

View File

@@ -1,8 +1,12 @@
# yaml-language-server: $schema=https://schema.infrahub.app/python-sdk/repository-config/latest.json
---
# Infrahub Repository Configuration
# This file defines generators and queries for datacenter automation
# Define where schemas are located
schemas:
- schemas/*.yml
# Generator definitions
generator_definitions:
- name: datacenter_generator
file_path: "generators/datacenter_generator.py"
@@ -13,6 +17,7 @@ generator_definitions:
parameters:
datacenter_id: "id"
# GraphQL queries
queries:
- name: datacenter_query
file_path: "generators/datacenter_query.gql"
file_path: "generators/datacenter_query.gql"