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:
@@ -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"
|
||||
Reference in New Issue
Block a user