You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In Quads core functionalities, the code heavily relies on the hosts naming convention that we utilize where the template is <rack>-h<u-location>-[<blade>-]<model>-<domain>. This is only mentioned on the docs once and it's not heavily enforced for Quads usage and could be error prone.
Describe the solution you'd like
Include additional optional arguments for --define-host cmd for --rack, --model, --uloc and --blade and have --hostname be optional if none of the other are passed, then have quads pick the domain from the config file and construct the hostname.
Additionally if we require enough metadata at host definition we can have Quads leverage the foreman.py library to automatically do the foreman host definition.
Describe alternatives you've considered
Make the --define-host input optionally (when no args passed) interactive. Display a prompt for each argument with a default value.
Can we have some logic that if none of those new params are defined then it just defaults to the old behavior? (which can also be accomplished via CNAME anyway in DNS so people have never needed to rename their servers). This way people wouldn't have to make DNS records if they didn't want to greenfield or rename their systems too if they didn't want to use those params.
grafuls
changed the title
[RFE] Standarize hostnames naming convention
[RFE] Standardize host naming convention
Jun 28, 2023
Is your feature request related to a problem? Please describe.
In Quads core functionalities, the code heavily relies on the hosts naming convention that we utilize where the template is
<rack>-h<u-location>-[<blade>-]<model>-<domain>
. This is only mentioned on the docs once and it's not heavily enforced for Quads usage and could be error prone.Describe the solution you'd like
Include additional optional arguments for
--define-host
cmd for--rack
,--model
,--uloc
and--blade
and have--hostname
be optional if none of the other are passed, then have quads pick the domain from the config file and construct the hostname.Additionally if we require enough metadata at host definition we can have Quads leverage the foreman.py library to automatically do the foreman host definition.
Describe alternatives you've considered
Make the
--define-host
input optionally (when no args passed) interactive. Display a prompt for each argument with a default value.The text was updated successfully, but these errors were encountered: