SatelliteQE / broker

The infrastructure middleman

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a possibility to have multiple providers of the same type

ogajduse opened this issue · comments

Having a possibility to choose from multiple providers of the same type, defined in the broker_settings.yaml, would be handy.

The initial idea of possible broker_settings.yaml design containing multiple AnsibleTower providers:

inventory_file: "inventory.yaml"
default_provider: at-instance1
AnsibleTower:
  - provider_nick: at-instance1 
    base_url: https://my-at-instance1.com/
    username: admin
    password: awesomepassword1
  - provider_nick: at-instance2 
    base_url: https://my-at-instance2.com/
    username: admin
    password: awesomepassword2

@ogajduse how would you want to choose between which provider_nick is active?

I am not sure I would always want broker checkin --all to delete all my VMs in all ATs... as that could be redundant inventories and give false job failures.

I am assuming a default would be good and being able to select a secondary would be more ideal?

broker checkin --all provider:secondary?

@ogajduse how about this?

AnsibleTower:
  - nick: at-instance1
    default: True
    base_url: https://my-at-instance1.com/
    username: admin
    password: awesomepassword1
  - provider_nick: at-instance2 
    base_url: https://my-at-instance2.com/
    username: admin
    password: awesomepassword2

usage could look like: broker checkout --nick rhel7 --AnsibleTower at-instance2

without specifying a value for a named provider, the default would be chosen

@JacobCallahan This is definitely a better design!