mac_maker.utilities.validation.precheck

Profile Precheck validator.

exception mac_maker.utilities.validation.precheck.PrecheckConfigValidationException[source]

Raised when reading an invalid Precheck environment configuration file.

class mac_maker.utilities.validation.precheck.PrecheckConfigValidator(precheck_env_file)[source]

Profile Precheck validator.

Parameters

precheck_env_file (str) – The path to a Precheck environment config file.

Raises

PrecheckConfigValidationException

validate_config()[source]

Validate an Precheck environment config file.

Raises

PrecheckConfigValidationException

Return type

None

validate_environment()[source]

Validate the environment against the parsed configuration file.

Return type

TypePrecheckEnvironmentValidationResult

Returns

The results of the environment validation as a hash.

class mac_maker.utilities.validation.precheck.TypePrecheckEnvironmentValidationResult[source]

Typed representation of an Precheck environment validation result.

class mac_maker.utilities.validation.precheck.TypePrecheckVariableDefinition[source]

Typed representation of a Precheck environment variable definition.