Skip to content
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

Add a new story describing user and system config #143

Merged
merged 1 commit into from
Mar 16, 2020
Merged

Add a new story describing user and system config #143

merged 1 commit into from
Mar 16, 2020

Conversation

psss
Copy link
Collaborator

@psss psss commented Mar 5, 2020

Let's say, on my laptop I prefer to test in a container. By adding a custom configuration I would store this default only once and then happily use the short tmt run for all my components.

@psss psss added the command | stories tmt stories command label Mar 5, 2020
Copy link
Collaborator

@pvalena pvalena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@pvalena
Copy link
Collaborator

pvalena commented Mar 12, 2020

How does one ignore the config thoug? Let's say I wan't to test with 1minutetip or whatnot for this one time...? Commandline? What If I want to use the L2 metadata(ignore the config)?

@psss
Copy link
Collaborator Author

psss commented Mar 16, 2020

If a value is defined in the plan it overrides default from user/system config:

Configuration should be stored as an ``fmf`` metadata tree
according to ``L2 Metadata`` specification. Default values
from it would be used if value is not specified in the plan.

Command line options override both config and plan content.

@psss psss self-assigned this Mar 16, 2020
@psss psss added the area | config User configuration label Mar 16, 2020
@psss psss merged commit 5407fe5 into master Mar 16, 2020
@psss psss deleted the config branch March 16, 2020 12:45
@pvalena
Copy link
Collaborator

pvalena commented Mar 18, 2020

Ah, so it's not an override. In case I want to test in a container, but the plan has already 'virtual', i have to override from commandline.

@pvalena
Copy link
Collaborator

pvalena commented Mar 18, 2020

In this context, I've encountered other issues (not sure I've reported it yet), which is:

I have specified container image I want to use for my provision, but if just override to --how virtual, the preset still keeps the image settings... Which is a bug IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area | config User configuration command | stories tmt stories command
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants