Skip to content

Commit

Permalink
add source client back to RHUI config
Browse files Browse the repository at this point in the history
leapp needs those to know what to uninstall during the upgrade
  • Loading branch information
Michal Hecko committed Oct 3, 2024
1 parent 9f02c14 commit f9258af
Showing 1 changed file with 38 additions and 7 deletions.
45 changes: 38 additions & 7 deletions repos/system_upgrade/common/configs/rhui.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,28 @@
from leapp.models import fields


class RhuiSourcePkg(Config):
section = "rhui"
name = "source_clients"
type_ = fields.List(fields.String(default=["rhui"]))
default = ["rhui"]
description = """
The name of the source RHUI client RPMs (to be removed from the system).
Default: rhui
"""


class RhuiTargetPkg(Config):
section = "rhui"
name = "target_client_name"
type_ = fields.String(default="rhui")
default = "rhui"
name = "target_clients"
type_ = fields.List(fields.String(default=["rhui"]))
default = ["rhui"]
description = """
The name of the target RHUI client RPM (to be installed on the system).
Default: rhui
"""


class RhuiCloudProvider(Config):
section = "rhui"
name = "cloud_provider"
Expand All @@ -30,17 +42,35 @@ class RhuiCloudProvider(Config):
Leapp recognizes the following cloud providers:
- azure
- azure-sap-apps
- azure-sap-ha
- aws
- aws-sap
- google
- google-sap
Cloud provider information is used for triggering some provider-specific modifications. The value also
influences how leapp determines target repositories to enable.
"""


# @Note(mhecko): We likely don't need this. We need the variant primarily to grab files from a correct directory
# in leapp-rhui-<provider> folders.
class RhuiCloudVariant(Config):
section = "rhui"
name = "image_variant"
type_ = fields.String(default="ordinary")
default = "ordinary"
description = """
RHEL variant of the source system - is the source system SAP-specific image?
Leapp recognizes the following cloud providers:
- ordinary # The source system has not been deployed from a RHEL with SAP image
- sap # RHEL SAP images
- sap-apps # RHEL SAP Apps images (Azure only)
- sap-ha # RHEL HA Apps images (HA only)
Cloud provider information is used for triggering some provider-specific modifications. The value also
influences how leapp determines target repositories to enable.
"""


class RhuiUpgradeFiles(Config):
section = "rhui"
name = "upgrade_files"
Expand All @@ -55,6 +85,7 @@ class RhuiUpgradeFiles(Config):
certificates and keys.
"""


class RhuiEnabledTargetRepositories(Config):
section = "rhui"
name = "enabled_target_repositories"
Expand Down

0 comments on commit f9258af

Please sign in to comment.