-
Notifications
You must be signed in to change notification settings - Fork 474
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
Is it possible to configure persistent configuration for all profiles? #1480
Comments
Thanks for the issues and explanation. We will certainly discuss here... |
Marking as question |
You are setting the config values against the currently active profile in this case. So this is either the default profile or another profile which you created and activates later. If you want to set the config prior to starting the VM, you would need to do something like:
I don't think there is an issue here so far. IMO it is consistent in behaviour. '--profile' is a global option and can be used with any minishift command to ad hoc execute a command against a given profile. What maybe could be discussed is the behaviour of
where bar is a non existened profile. In this case you get:
One could in this case create an empty profile and make it active. This would then allow you to do what you wanted provided you call set profile first. |
I do not believe |
|
What about the situation:
or:
I can understand how this can be confusing, as
And what if I want to set NoteFor adding hostfolder, we added an explicit |
@gbraad In a default setup (which does not have any created profile), we always have |
The default might exist, but in this case I want something to be picked up globally, for all instances. We have all instances config for this particular reason. But how to enable this for use? |
ATM you cannot. We would need an additional flag for the config command, e.g. --global. However, that would only solve some the issues around the config command. I propose a solution without adding another level to the configuration hierarchy. Instead I'd suggest to introduce a profile clone|copy command. |
Instead I'd suggest to introduce a profile clone|copy command.
To me this sounds like the least favourable solution, as this means you
will end up having stale profiles, and even disk files just for
copying/cloning config from. In this case, a config import and export sound
like a better approach as these are distributable and can even be used as a
means to preconfigure a certain 'profile' for use.
…--
Gerard Braad | http://gbraad.nl
[ Doing Open Source Matters ]
|
Why do you have stale profiles? I guess you mean because you might end up with some "base" profile to clone from? If so, sure. I don't think I would consider them as "stale" though. Also in the most lightweight option we talk about the persistent config and add-ons.
Initially we would indeed copy everything except the machine specific files. Moving forward the plan is to share common data - ISO, oc and image cache.
Provided you include the add-ons into this, I don't see a big difference except the command name. IMO though is "profile" the term which encompasses everything which characterises a given instance. This is more than what the config command deals with. Hence my suggestion to add a new command to profiles. Semantically there is not a big difference here, especially once caching is fully worked out. |
You already know my preference here. I agree with @gbraad that a global configuration store should exist and a local(profile) configuration store, and avoid clone/copy as an additional command. What would you copy/clone? I've opened a new Issue as RFE to discuss there how this should work, as this issue is a question that should not deviate to a different topic. #1517 |
We can close this after #1605 is merged. |
Also here are two work flows how persistent configurations can be set.
Alternate method to create the profile foo:
|
I seems some configuration setttings are lost in this scenario:
also, if you latter
the same configuration is still around.
I was expect all my config changes to be tied to a profile.
So, it seems the right solution is to put all the config settings on the minishift start command
BUT, how do I later ask the profile what its configuration is? Are you the 2G or the 6G profile?
Are you the virtualbox or the xyhve profile?
The text was updated successfully, but these errors were encountered: