Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions automation_library/install_os/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""
Install OS module - Functions, messages, and variables for install_os automation.

This module automates the install_os_arm_node playbook execution and validates:
- ISO source exists and checksum matches (precheck)
- Required ISO tooling is available (xorrisofs, isomd5sum)
- Kickstart rendering/injection is correct
- iDRAC virtual media mount and boot operations
- Post-install node state (SSH reachable, correct OS/arch, GUI packages)

Usage:
from automation_library.install_os.functions import (
check_source_iso_exists,
verify_source_iso_checksum,
check_output_iso_exists,
check_kickstart_in_iso,
check_tooling_available,
check_idrac_reachable,
check_ssh_reachable,
verify_os_version,
verify_architecture,
)
from automation_library.install_os.messages import TEST_NAMES
from automation_library.install_os.vars import INSTALL_OS_VARS
"""
94 changes: 94 additions & 0 deletions automation_library/install_os/functions/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Install OS functions module."""

from .iso_generation_func import (
check_source_iso_exists,
verify_source_iso_checksum,
check_output_iso_exists,
verify_output_iso_checksum,
check_kickstart_in_iso,
verify_grub_config_in_iso,
check_tooling_available,
check_manifest_exists,
)

from .idrac_func import (
check_idrac_reachable,
check_idrac_lc_status,
check_os_deployment_job_status,
check_virtual_media_status,
check_boot_override_status,
check_power_state,
verify_nfs_share_accessible,
)

from .kickstart_func import (
verify_kickstart_rootpw,
verify_kickstart_sshkey,
verify_kickstart_static_ip,
verify_kickstart_base_environment,
scan_user_kickstart,
)

from .post_install_func import (
check_ssh_reachable,
verify_os_version,
verify_architecture,
verify_static_ip_configured,
verify_gui_packages_installed,
verify_hostname,
)

from .playbook_func import (
load_iso_config_from_container,
run_install_os_playbook,
)

__all__ = [
# ISO generation
"check_source_iso_exists",
"verify_source_iso_checksum",
"check_output_iso_exists",
"verify_output_iso_checksum",
"check_kickstart_in_iso",
"verify_grub_config_in_iso",
"check_tooling_available",
"check_manifest_exists",
# iDRAC
"check_idrac_reachable",
"check_idrac_lc_status",
"check_os_deployment_job_status",
"check_virtual_media_status",
"check_boot_override_status",
"check_power_state",
"verify_nfs_share_accessible",
# Kickstart
"verify_kickstart_rootpw",
"verify_kickstart_sshkey",
"verify_kickstart_static_ip",
"verify_kickstart_base_environment",
"scan_user_kickstart",
# Post-install
"check_ssh_reachable",
"verify_os_version",
"verify_architecture",
"verify_static_ip_configured",
"verify_gui_packages_installed",
"verify_hostname",
# Playbook helpers
"load_iso_config_from_container",
"run_install_os_playbook",
]
Loading
Loading