New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added configuration reader #158
Conversation
Pull Request Test Coverage Report for Build 2319445257
💛 - Coveralls |
baeeefd
to
b9d87fc
Compare
b9d87fc
to
4c6f0be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left there a few comments, but changes looks good to me. Thanks!
Co-authored-by: David Díaz <1691872+dgdavid@users.noreply.github.com>
Co-authored-by: David Díaz <1691872+dgdavid@users.noreply.github.com>
Co-authored-by: David Díaz <1691872+dgdavid@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a few comments, although I do not feel we should block this PR anymore. Just in case you want to have them into account for the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can merge it now. Thank you!
95ccada
to
45d6e92
Compare
Problem
In #132 we added support for an initial d-installer configuration through a YAML file. This PR aims to extended it allowing the user to customize some of the default settings using the kernel command line options.
Solution
We have moved the logic for reading the configuration from the Config class to a separate class and also a class for parsing the kernel command line options has been added. DInstaller kernel options needs to be declared using the dinst prefix by now and it also allow to specify an URL for fetching the configuration from, see the example above:
dinst.config_url=http://example.org/d-installer.yaml dinst.web.ssl=MODIFIED
The reader can return a Config object merging all the configurations present in the system.
Testing