Deployment

deploy.builder_func(build_options, install_log_name, log_level, use_docker=True)[source]

Execute a series of build steps based on provided options.

Parameters

build_optionslist

A list of dictionaries containing build options.

install_log_namestr

The name of the installation log file.

log_levelstr

The logging level.

Returns

None

Notes

This function executes a series of build steps based on the provided build_options. For each build option, it performs various tasks such as configuring hypervisors, installing required packages, executing build scripts, and setting up virtual machines. The function logs each step and checks for failures using the ansible_log_writer_analyzer and ansible_run_check functions. If a failure occurs, the function logs an error message and returns False. Otherwise, it returns True upon successful completion.

deploy.parse_deployment_arguments()[source]

Parse command-line arguments for deployment configuration.

Returns

argparse.Namespace

Parsed command-line arguments.

Example

Example usage:

python deploy.py –config /path/to/config.json –log-dir /path/to/logs –log-level DEBUG –allow-enrollment True

Notes

This function parses command-line arguments for deployment configuration. It returns an argparse.Namespace object containing the parsed arguments.