Closed Tiboris closed 3 years ago
The code seems to expect that the config will be placed in a system directory. This can be a possibility but it doesn't fulfill the original use case. The config file should be loaded from the directory where mrack is executed - in IdM CI terminology - the TWD. If it is not present then it will be ignored. Alternatively mrack can try other locations like ~/.config/mrack
and the system one as a last option. In either case it should work without the file present.
Add mrack.conf from which we load defaults
Add mrack.conf which contains default enfironment configuration in ini format for the click options
--config=provisioning-config from mrack.conf
--db=mrackdb from mrack.conf
Load default for options from the mrack.conf file from:
$(pwd)/mrack.conf
or other way the./mrack.conf
- actual directory~/.mrack/mrack.conf
/etc/mrack/mrack.conf
as safe fallback.Add example
mrack.conf
andprovisioning-config.yaml
to thedata/
directory in repository.Update setup.py to install required files from
data/
dir.Signed-off-by: Tibor Dudlák tdudlak@redhat.com