Move .infrahub.yml at the root level
This commit is contained in:
23
.infrahub.yml
Normal file
23
.infrahub.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# yaml-language-server: $schema=https://schema.infrahub.app/python-sdk/repository-config/latest.json
|
||||||
|
---
|
||||||
|
# Infrahub Repository Configuration
|
||||||
|
|
||||||
|
# Define where schemas are located
|
||||||
|
schemas:
|
||||||
|
- infrahub/schemas/*.yml
|
||||||
|
|
||||||
|
# Generator definitions
|
||||||
|
generator_definitions:
|
||||||
|
- name: datacenter_generator
|
||||||
|
file_path: "infrahub/generators/datacenter_generator.py"
|
||||||
|
class_name: DatacenterGenerator
|
||||||
|
query: datacenter_query
|
||||||
|
targets: datacenters
|
||||||
|
convert_query_response: true
|
||||||
|
parameters:
|
||||||
|
datacenter_id: "id"
|
||||||
|
|
||||||
|
# GraphQL queries
|
||||||
|
queries:
|
||||||
|
- name: datacenter_query
|
||||||
|
file_path: "infrahub/generators/datacenter_query.gql"
|
||||||
Reference in New Issue
Block a user