Bug 844364
Summary: | [rfe] read client configuration from both user config file and system-wide config file | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Martin Cermak <mcermak> |
Component: | command line | Assignee: | Dan Callaghan <dcallagh> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 0.8 | CC: | azelinka, bpeck, ccui, dcallagh, dowang, ebaak, ohudlick, rjoost, stl, tools-bugs, xtian |
Target Milestone: | 24.0 | Keywords: | FutureFeature, Patch, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | Misc | ||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-02-21 18:49:56 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Martin Cermak
2012-07-30 12:32:48 UTC
Today I've noticed the global config seems to be already supported: $ rpm -ql beaker-client | grep conf /etc/beaker/client.conf $ head /etc/beaker/client.conf # Hub xml-rpc address. HUB_URL = "http://localhost/bkr" # Hub authentication method. Example: krbv, password, worker_key #AUTH_METHOD = "krbv" AUTH_METHOD = "password" # Username and password #USERNAME = "" #PASSWORD = "" $ rpm -q beaker-client beaker-client-0.9.2-2.el6eng.noarch Petr, quite right, currently bkr client checks the following locations for its config. The first one which exists is used: * ~/.beaker_client/config * ~/.beaker * /etc/beaker/client.conf Additionally, if BEAKER_CLIENT_CONF is set in the environment that file is used and the other logic is skipped. What is missing is the overriding: if ~/.beaker_client/config exists, then the systemwide config is never read and settings in it will not apply, even if ~/.beaker_client/config does not define them. Bulk reassignment of issues as Bill has moved to another team. In particular, being able to inherit CA_CERT from /etc/beaker/client.conf would be quite useful for our setup. See bug 1258501. *** Bug 1369994 has been marked as a duplicate of this bug. *** Hi, I have create a pull request in https://github.com/beaker-project/beaker/pull/2 and fix it. Thanks for the patch! I've uploaded a new version against develop here: http://gerrit.beaker-project.org/5227 This bug fix is included in beaker-client-24.0-0.git.99.85d122d which is currently available for download here: https://beaker-project.org/nightlies/develop/ Beaker 24.0 has been released. |