Skip to content

Conversation

@maximenoel8
Copy link
Contributor

@maximenoel8 maximenoel8 commented Dec 4, 2025

What does this PR change?

Create a build validation module to make a main.tf template common to all BV and sle maintenance update.
Use parameters to modify the deployments.

Those parameters are declared at the susemanager-ci project level.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new build validation (BV) module for Terraform that provides a common template for BV and SLE maintenance update deployments. The module uses parameters defined at the project level to customize deployments, creating a more maintainable and reusable infrastructure-as-code solution.

Key Changes:

  • Creates a comprehensive build validation module with 94 configurable variables
  • Implements module definitions for 60+ different system configurations (servers, proxies, minions, clients, etc.)
  • Supports multiple Linux distributions (SLES, Ubuntu, Debian, Alma, Rocky, CentOS, Oracle, Amazon Linux) across different architectures (x86_64, ARM, s390)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 15 comments.

File Description
modules/build_validation/variables.tf Defines 15 input variables for environment configuration, credentials, container images, and base configurations
modules/build_validation/main.tf Implements the main Terraform configuration with provider setup, base modules, and 60+ conditional module instances for various Linux distributions and system roles

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@maximenoel8 maximenoel8 self-assigned this Dec 14, 2025
@maximenoel8 maximenoel8 marked this pull request as ready for review December 14, 2025 23:59
@maximenoel8 maximenoel8 requested a review from a team as a code owner December 14, 2025 23:59
@maximenoel8 maximenoel8 force-pushed the module_bv branch 2 times, most recently from c2ca6a1 to 6e031f9 Compare December 15, 2025 23:55
@srbarrios
Copy link
Member

srbarrios commented Dec 17, 2025

Can we take advantage of this refactor to introduce names like rh_like or deb_like instead of res and debian?

Also I wonder if still make sense the org by old_sle and new_sle, taking into account the amount of VMs on each of them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants