redhat-cop / rhel-edge-automation-arch

RHEL for Edge Automation Deployment Architecture
Apache License 2.0
46 stars 33 forks source link

Added support for Fedora image-buider VM #232

Open jordigilh opened 2 years ago

jordigilh commented 2 years ago

This PR contains part of the effort to add support for Fedora as the OS that runs the image-builder. The work requires first to be able to deploy fedora instead of RHEL, and then to customize the ansible playbooks/roles to target the fedora use case (composer-cli under Fedora does not offer the same composer types as in RHEL).

This PR can be merged without impacting the current work, as it uses RHEL by default. In order to enable Fedora, use the script located in examples/values/deployment/useFedora.yaml when deploying the factory:

application-manager:
  charts:
    # Top Level RFE App of App Chart
    rfe-automation:
      values:
        charts:
          # RFE App of App Chart
          rfe:
            values:
              charts:
                # Image Builder VM
                image-builder-vm:
                  values:
                    osDistribution: fedora
helm upgrade -i  -n rfe-gitops bootstrap charts/bootstrap/  -f ../helm_testing_bootstrap_values.yaml -f examples/values/deployment/disable-odf.yaml  -f examples/values/deployment/useFedora.yaml

@ygalblum @nasx @sabre1041 feel free to take a look while I work on the second part. I'd like to hear your input so far on the approach I took.

ygalblum commented 2 years ago

LGTM

jordigilh commented 2 years ago

@nasx @sabre1041 This PR is ready for review. I will be raising an additional PR for using the fedora/rhel types in composer-cli, depending on the VM OS distribution.