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
|
# yaml-language-server: $schema=https://schema.infrahub.app/python-sdk/repository-config/latest.json
|
||||||
---
|
---
|
||||||
# Infrahub Repository Configuration
|
# Infrahub Repository Configuration
|
||||||
# This file defines generators and queries for datacenter automation
|
|
||||||
|
|
||||||
|
# Define where schemas are located
|
||||||
|
schemas:
|
||||||
|
- schemas/*.yml
|
||||||
|
|
||||||
|
# Generator definitions
|
||||||
generator_definitions:
|
generator_definitions:
|
||||||
- name: datacenter_generator
|
- name: datacenter_generator
|
||||||
file_path: "generators/datacenter_generator.py"
|
file_path: "generators/datacenter_generator.py"
|
||||||
@@ -13,6 +17,7 @@ generator_definitions:
|
|||||||
parameters:
|
parameters:
|
||||||
datacenter_id: "id"
|
datacenter_id: "id"
|
||||||
|
|
||||||
|
# GraphQL queries
|
||||||
queries:
|
queries:
|
||||||
- name: datacenter_query
|
- name: datacenter_query
|
||||||
file_path: "generators/datacenter_query.gql"
|
file_path: "generators/datacenter_query.gql"
|
||||||
Reference in New Issue
Block a user