Type object
File match .infrahub.yml .infrahub.yaml
Schema URL https://catalog.lintel.tools/schemas/schemastore/infrahub/latest.json
Source https://schema.infrahub.app/python-sdk/repository-config/latest.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

User defined checks

schemas string[]

Schema files

Jinja2 data transformations

Artifact definitions

Python data transformations

generator_definitions InfrahubGeneratorDefinitionConfig[]

Generator definitions

GraphQL Queries

objects string[]

Objects

menus string[]

Menus

Definitions

InfrahubCheckDefinitionConfig object
name string required

The name of the Check Definition

file_path string required

The file within the repository with the check code.

format=path
parameters object

The input parameters required to run this check

targets string | null

The group to target when running this check, leave blank for global checks

Default: null
class_name string

The name of the check class to run.

Default: "Check"
InfrahubGeneratorDefinitionConfig object
name string required

The name of the Generator Definition

file_path string required

The file within the repository with the generator code.

format=path
query string required

The GraphQL query to use as input.

targets string required

The group to target when running this generator

parameters object

The input parameters required to run this check

class_name string

The name of the generator class to run.

Default: "Generator"
convert_query_response boolean

Decide if the generator should convert the result of the GraphQL query to SDK InfrahubNode objects.

Default: false
execute_in_proposed_change boolean

Decide if the generator should execute in a proposed change.

Default: true
execute_after_merge boolean

Decide if the generator should execute after a merge.

Default: true
InfrahubJinja2TransformConfig object
name string required

The name of the transform

query string required

The name of the GraphQL Query

template_path string required

The path within the repository of the template file

format=path
description string | null

Description for this transform

Default: null
InfrahubPythonTransformConfig object
name string required

The name of the Transform

file_path string required

The file within the repository with the transform code.

format=path
class_name string

The name of the transform class to run.

Default: "Transform"
convert_query_response boolean

Decide if the transform should convert the result of the GraphQL query to SDK InfrahubNode objects.

Default: false
InfrahubRepositoryArtifactDefinitionConfig object
name string required

The name of the artifact definition

parameters object required

The input parameters required to render this artifact

content_type string required

The content type of the rendered artifact

targets string required

The group to target when creating artifacts

transformation string required

The transformation to use.

artifact_name string | null

Name of the artifact created from this definition

Default: null
InfrahubRepositoryGraphQLConfig object
name string required

The name of the GraphQL Query

file_path string required

The file within the repository with the query code.

format=path