Bug 1838695

Summary: RFE: Store configuration via ~/.config/
Product: OpenShift Container Platform Reporter: Douglas Schilling Landgraf <dougsland>
Component: InstallerAssignee: Douglas Schilling Landgraf <dougsland>
Installer sub component: OpenShift on RHV QA Contact: Lucie Leistnerova <lleistne>
Status: CLOSED NOTABUG Docs Contact:
Severity: unspecified    
Priority: unspecified CC: rgolan
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-26 10:52:38 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:
Bug Depends On:    
Bug Blocks: 1838682    

Description Douglas Schilling Landgraf 2020-05-21 15:23:18 UTC
Description of problem:

Currently the ovirt yaml configuration file is stored via ~/.ovirt/ovirt-config.yaml.

Howeer, these days most of applications are following this spec: 
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html


Which basically uses ~/.config/${APPLICATION} dir. My suggestion would be: ~/.config/ovirt/ovirt-config.yaml

Comment 2 Douglas Schilling Landgraf 2020-05-26 10:52:38 UTC
(In reply to Roy Golan from comment #1)
> The installer supports linux/mac/windos, so ~/.config isn't universal in
> that respect.

I agree. Usually, user data/configuration depends on OS. Based on that, ${HOME}/.${platform_name} isn't universal either. :)

> Also the ~/.ovirt follows what other platforms did in the installer, here
> are few:
> 
> GCP
> https://github.com/openshift/installer/blob/
> bbb9006efe1f7d289892f33328bc6e43a9ea664e/pkg/asset/installconfig/gcp/session.
> go#L35
> 
> AZURE
> https://github.com/openshift/installer/blob/
> bbb9006efe1f7d289892f33328bc6e43a9ea664e/pkg/asset/installconfig/azure/
> session.go#L21
> 
> AWS
> https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html

I think these guys need a patch to follow the OS data/configuration standards but let's close this bug for now. Thanks Roy :)