redhat-partner-solutions / crucible

Apache License 2.0
34 stars 59 forks source link

Allow Hybrid worker nodes #285

Open gojeaqui opened 8 months ago

gojeaqui commented 8 months ago

Feature description

Hello,

I would like to propose the option to have a second group of worker nodes with the ability to specify a different vendor and different network_config settings.

The use case is (for example) we have a cluster with bare metal worker nodes who have bonding in their interfaces and can be configured using BMC. But we also have virtual infra nodes who have only one interface and are VMWare pre provissioned VMs which we will use vendor: PXE

Something like this:

      children:
        masters:
          vars:
            role: master
            vendor: PXE

        workers:
          vars:
            role: worker
            vendor: PXE

        workers2:
          vars:
            role: worker
            vendor: Dell # This example uses baremetal worker nodes

Required statements

nocturnalastro commented 8 months ago

You can have sub groups under workers ansible should handle that fine. e.g.

children:
    masters:
        vars:
            role: master
            vendor: PXE
        hosts: 
           ...
    workers:
        vars:
            role: worker
        children:
            infra_workers:
                vars: 
                    vendor: PXE
                hosts: 
                    worker1:
                        ...
            metal_workers:
                vars: 
                    vendor: Dell
                hosts:
                    worker2:
                        ...