I'm going to start working on this jira issue.
<https://issues.apache.org/jira/browse/VCL-100>

The main task is to replace a regex that is repeated throughout the code to a more generic conditional check.

The current regex is used in many conditionals to determine if the OS on the node that vcld needs interact, it is a long growing string containing prefixes of different Linux distros, ie (rhel[0-9]|rhfc[0-9],...). This is not sustainable and is difficult to add in additional distros.

This will be done in stages

- the 1st stage is to replace the regex with a variable $image_os_type.
This stage will touch many of the files - but only making slight changes.


- the second stage will be to extend the database OS table to handle the easy addition of Linux distros by creating a mapping table of sorts to correctly map kickstart to disk images which would be used during image creation.

Aaron

Reply via email to