orchestro.orche.params package#
Submodules#
orchestro.orche.params.child module#
- class orchestro.orche.params.child.OrcheChildParams[source]#
Bases:
OrcheParamsModelProcess and validate the Orche configuration parameters.
Fields# Field
Type
Required
Default
Constraints
No
Nonemin_length=1
No
Nonemin_length=1
No
FalseNo
Nonemin_length=1
No
factory
min_length=0
No
factory
min_length=0
No
Nonemin_length=1
- enable: Annotated[bool, FieldInfo(annotation=NoneType, required=False, default=False, description='Determine whether child enabled')]#
- inherits: Annotated[list[str] | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Other configuration to inherit', metadata=[MinLen(min_length=1)])]#
- display: Annotated[str | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Friendly name value for child', metadata=[MinLen(min_length=1)])]#
- about: Annotated[str | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Additional optional information', metadata=[MinLen(min_length=1)])]#
- memberof: Annotated[list[str] | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Groups child is a member of', metadata=[MinLen(min_length=1)])]#
orchestro.orche.params.common module#
Functions and routines associated with Enasis Network Homie Automate.
This file is part of Enasis Network software eco-system. Distribution is permitted, for more information consult the project license file.
orchestro.orche.params.group module#
- class orchestro.orche.params.group.OrcheGroupAnsibleParams[source]#
Bases:
OrcheParamsModelProcess and validate the Orche configuration parameters.
- class orchestro.orche.params.group.OrcheGroupParams[source]#
Bases:
OrcheChildParamsProcess and validate the Orche configuration parameters.
Fields# Field
Type
Required
Default
Constraints
aboutNo
Nonemin_length=1
No
NonedisplayNo
Nonemin_length=1
enableNo
FalseinheritsNo
Nonemin_length=1
kvopaqueNo
factory
min_length=0
kvparsedNo
factory
min_length=0
memberofNo
Nonemin_length=1
Literal[‘domain’, ‘local’, ‘site’, ‘zone’, ‘ansible’, ‘psuedo’]No
'ansible'- realm: Annotated[Literal['domain', 'local', 'site', 'zone', 'ansible', 'psuedo'], FieldInfo(annotation=NoneType, required=False, default='ansible', description='Logical realm for the object')]#
- ansible: Annotated[OrcheGroupAnsibleParams | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Variables provided to Ansible')]#
orchestro.orche.params.orche module#
- class orchestro.orche.params.orche.OrcheParams[source]#
Bases:
ParamsProcess and validate the core configuration parameters.
Fields# Field
Type
Required
Default
Constraints
No
FalseNo
'sqlite:///:memory:'min_length=1
No
FalseNo
FalseenconfigNo
NoneencryptsNo
NoneenloggerNo
Nonedict[str,OrcheGroupParams] |NoneNo
Nonemin_length=1
No
factory
min_length=0
No
factory
min_length=0
dict[str,OrchePersonParams] |NoneNo
Nonemin_length=1
dict[str,OrcheSubnetParams] |NoneNo
Nonemin_length=1
dict[str,OrcheSystemParams] |NoneNo
Nonemin_length=1
- database: Annotated[str, FieldInfo(annotation=NoneType, required=False, default='sqlite:///:memory:', description='Database connection string', metadata=[MinLen(min_length=1)])]#
- console: Annotated[bool, FieldInfo(annotation=NoneType, required=False, default=False, description='Output console information; parameter is parsed by and used in low-level config')]#
- debug: Annotated[bool, FieldInfo(annotation=NoneType, required=False, default=False, description='Enable logging level debug; parameter is parsed by and used in low-level config')]#
- dryrun: Annotated[bool, FieldInfo(annotation=NoneType, required=False, default=False, description='Whether to allow changes')]#
- systems: Annotated[dict[str, OrcheSystemParams] | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Parameters for Orche systems', metadata=[MinLen(min_length=1)])]#
- persons: Annotated[dict[str, OrchePersonParams] | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Parameters for Orche persons', metadata=[MinLen(min_length=1)])]#
- subnets: Annotated[dict[str, OrcheSubnetParams] | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Parameters for Orche subnets', metadata=[MinLen(min_length=1)])]#
- groups: Annotated[dict[str, OrcheGroupParams] | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Parameters for Orche groups', metadata=[MinLen(min_length=1)])]#
orchestro.orche.params.person module#
- class orchestro.orche.params.person.OrchePersonParams[source]#
Bases:
OrcheChildParamsProcess and validate the Orche configuration parameters.
Fields# Field
Type
Required
Default
Constraints
aboutNo
Nonemin_length=1
displayNo
Nonemin_length=1
No
Nonemin_length=1
enableNo
FalseNo
Nonemin_length=1
inheritsNo
Nonemin_length=1
kvopaqueNo
factory
min_length=0
kvparsedNo
factory
min_length=0
No
Nonemin_length=1
memberofNo
Nonemin_length=1
Literal[‘domain’, ‘local’, ‘psuedo’]No
'psuedo'- realm: Annotated[Literal['domain', 'local', 'psuedo'], FieldInfo(annotation=NoneType, required=False, default='psuedo', description='Logical realm for the object')]#
- domain: Annotated[str | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Domain to which child belongs', metadata=[MinLen(min_length=1)])]#
orchestro.orche.params.subnet module#
- class orchestro.orche.params.subnet.OrcheSubnetParams[source]#
Bases:
OrcheChildParamsProcess and validate the Orche configuration parameters.
Fields# Field
Type
Required
Default
Constraints
aboutNo
Nonemin_length=1
displayNo
Nonemin_length=1
enableNo
FalseNo
Nonemin_length=1
inheritsNo
Nonemin_length=1
kvopaqueNo
factory
min_length=0
kvparsedNo
factory
min_length=0
No
Nonemin_length=2, max_length=2, pattern=``^[da-fA-F]+$``
memberofNo
Nonemin_length=1
No
Nonemin_length=1
No
Nonemin_length=1
Yes
min_length=1
- subnet: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='IPv4 or IPv6 network subnet', metadata=[MinLen(min_length=1)])]#
- macpref: Annotated[str | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Optional prefix for MAC address', metadata=[MinLen(min_length=2), MaxLen(max_length=2), _PydanticGeneralMetadata(pattern='^[\\da-fA-F]+$')])]#
- gateway: Annotated[str | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Optional gateway for the subnet', metadata=[MinLen(min_length=1)])]#
orchestro.orche.params.system module#
- class orchestro.orche.params.system.OrcheSystemAnsibleParams[source]#
Bases:
OrcheParamsModelProcess and validate the Orche configuration parameters.
- class orchestro.orche.params.system.OrcheSystemParams[source]#
Bases:
OrcheChildParamsProcess and validate the Orche configuration parameters.
Fields# Field
Type
Required
Default
Constraints
aboutNo
Nonemin_length=1
No
NonedisplayNo
Nonemin_length=1
No
Nonemin_length=1
enableNo
FalseinheritsNo
Nonemin_length=1
kvopaqueNo
factory
min_length=0
kvparsedNo
factory
min_length=0
memberofNo
Nonemin_length=1
Literal[‘ansible’, ‘psuedo’]No
'ansible'- realm: Annotated[Literal['ansible', 'psuedo'], FieldInfo(annotation=NoneType, required=False, default='ansible', description='Logical realm for the object')]#
- domain: Annotated[str | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Domain to which child belongs', metadata=[MinLen(min_length=1)])]#
- ansible: Annotated[OrcheSystemAnsibleParams | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Variables provided to Ansible')]#
Module contents#
- class orchestro.orche.params.OrcheParams[source]#
Bases:
ParamsProcess and validate the core configuration parameters.
Fields# Field
Type
Required
Default
Constraints
No
FalseNo
'sqlite:///:memory:'min_length=1
No
FalseNo
FalseenconfigNo
NoneencryptsNo
NoneenloggerNo
Nonedict[str,OrcheGroupParams] |NoneNo
Nonemin_length=1
No
factory
min_length=0
No
factory
min_length=0
dict[str,OrchePersonParams] |NoneNo
Nonemin_length=1
dict[str,OrcheSubnetParams] |NoneNo
Nonemin_length=1
dict[str,OrcheSystemParams] |NoneNo
Nonemin_length=1
- database: Annotated[str, FieldInfo(annotation=NoneType, required=False, default='sqlite:///:memory:', description='Database connection string', metadata=[MinLen(min_length=1)])]#
- console: Annotated[bool, FieldInfo(annotation=NoneType, required=False, default=False, description='Output console information; parameter is parsed by and used in low-level config')]#
- debug: Annotated[bool, FieldInfo(annotation=NoneType, required=False, default=False, description='Enable logging level debug; parameter is parsed by and used in low-level config')]#
- dryrun: Annotated[bool, FieldInfo(annotation=NoneType, required=False, default=False, description='Whether to allow changes')]#
- systems: Annotated[dict[str, OrcheSystemParams] | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Parameters for Orche systems', metadata=[MinLen(min_length=1)])]#
- persons: Annotated[dict[str, OrchePersonParams] | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Parameters for Orche persons', metadata=[MinLen(min_length=1)])]#
- subnets: Annotated[dict[str, OrcheSubnetParams] | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Parameters for Orche subnets', metadata=[MinLen(min_length=1)])]#
- groups: Annotated[dict[str, OrcheGroupParams] | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Parameters for Orche groups', metadata=[MinLen(min_length=1)])]#
- class orchestro.orche.params.OrcheParamsModel[source]#
Bases:
BaseModelProcess and validate the Homie configuration parameters.
- class orchestro.orche.params.OrcheChildParams[source]#
Bases:
OrcheParamsModelProcess and validate the Orche configuration parameters.
Fields# Field
Type
Required
Default
Constraints
No
Nonemin_length=1
No
Nonemin_length=1
No
FalseNo
Nonemin_length=1
No
factory
min_length=0
No
factory
min_length=0
No
Nonemin_length=1
- enable: Annotated[bool, FieldInfo(annotation=NoneType, required=False, default=False, description='Determine whether child enabled')]#
- inherits: Annotated[list[str] | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Other configuration to inherit', metadata=[MinLen(min_length=1)])]#
- display: Annotated[str | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Friendly name value for child', metadata=[MinLen(min_length=1)])]#
- about: Annotated[str | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Additional optional information', metadata=[MinLen(min_length=1)])]#
- memberof: Annotated[list[str] | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Groups child is a member of', metadata=[MinLen(min_length=1)])]#
- class orchestro.orche.params.OrcheGroupParams[source]#
Bases:
OrcheChildParamsProcess and validate the Orche configuration parameters.
Fields# Field
Type
Required
Default
Constraints
aboutNo
Nonemin_length=1
No
NonedisplayNo
Nonemin_length=1
enableNo
FalseinheritsNo
Nonemin_length=1
kvopaqueNo
factory
min_length=0
kvparsedNo
factory
min_length=0
memberofNo
Nonemin_length=1
Literal[‘domain’, ‘local’, ‘site’, ‘zone’, ‘ansible’, ‘psuedo’]No
'ansible'- realm: Annotated[Literal['domain', 'local', 'site', 'zone', 'ansible', 'psuedo'], FieldInfo(annotation=NoneType, required=False, default='ansible', description='Logical realm for the object')]#
- ansible: Annotated[OrcheGroupAnsibleParams | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Variables provided to Ansible')]#
- class orchestro.orche.params.OrchePersonParams[source]#
Bases:
OrcheChildParamsProcess and validate the Orche configuration parameters.
Fields# Field
Type
Required
Default
Constraints
aboutNo
Nonemin_length=1
displayNo
Nonemin_length=1
No
Nonemin_length=1
enableNo
FalseNo
Nonemin_length=1
inheritsNo
Nonemin_length=1
kvopaqueNo
factory
min_length=0
kvparsedNo
factory
min_length=0
No
Nonemin_length=1
memberofNo
Nonemin_length=1
Literal[‘domain’, ‘local’, ‘psuedo’]No
'psuedo'- realm: Annotated[Literal['domain', 'local', 'psuedo'], FieldInfo(annotation=NoneType, required=False, default='psuedo', description='Logical realm for the object')]#
- domain: Annotated[str | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Domain to which child belongs', metadata=[MinLen(min_length=1)])]#
- class orchestro.orche.params.OrcheSubnetParams[source]#
Bases:
OrcheChildParamsProcess and validate the Orche configuration parameters.
Fields# Field
Type
Required
Default
Constraints
aboutNo
Nonemin_length=1
displayNo
Nonemin_length=1
enableNo
FalseNo
Nonemin_length=1
inheritsNo
Nonemin_length=1
kvopaqueNo
factory
min_length=0
kvparsedNo
factory
min_length=0
No
Nonemin_length=2, max_length=2, pattern=``^[da-fA-F]+$``
memberofNo
Nonemin_length=1
No
Nonemin_length=1
No
Nonemin_length=1
Yes
min_length=1
- subnet: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='IPv4 or IPv6 network subnet', metadata=[MinLen(min_length=1)])]#
- macpref: Annotated[str | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Optional prefix for MAC address', metadata=[MinLen(min_length=2), MaxLen(max_length=2), _PydanticGeneralMetadata(pattern='^[\\da-fA-F]+$')])]#
- gateway: Annotated[str | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Optional gateway for the subnet', metadata=[MinLen(min_length=1)])]#
- class orchestro.orche.params.OrcheSystemParams[source]#
Bases:
OrcheChildParamsProcess and validate the Orche configuration parameters.
Fields# Field
Type
Required
Default
Constraints
aboutNo
Nonemin_length=1
No
NonedisplayNo
Nonemin_length=1
No
Nonemin_length=1
enableNo
FalseinheritsNo
Nonemin_length=1
kvopaqueNo
factory
min_length=0
kvparsedNo
factory
min_length=0
memberofNo
Nonemin_length=1
Literal[‘ansible’, ‘psuedo’]No
'ansible'- realm: Annotated[Literal['ansible', 'psuedo'], FieldInfo(annotation=NoneType, required=False, default='ansible', description='Logical realm for the object')]#
- domain: Annotated[str | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Domain to which child belongs', metadata=[MinLen(min_length=1)])]#
- ansible: Annotated[OrcheSystemAnsibleParams | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Variables provided to Ansible')]#