-
Notifications
You must be signed in to change notification settings - Fork 303
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
Allow specification of config values (device name, superuser, etc) via web interface if skipped during setup #1835
Comments
The current code-base allows us to:
For the RCT 1, is there anything blocking us from using these existing features? |
Should work fine, especially since we want things to be predictable for Nalanda, so we can administer remotely.
Right, we had talked about this. It shifts the burden to documentation (since they need to be sure to put in a meaningful name during OS installation. But that can work. Do these things happen during |
These happen in |
Moving to post-RCT. |
Thanks. Updated the original description to reflect the longer-range focus. |
@aronasorman @rtibbles @benjaoming Just realized that this may be a blocker for 0.13, depending on how all the installers handle the configuration steps. |
Put as high-priority for now, until we figure that out |
In general, Django recommends against manipulating settings runtime. So ideally, these variables should exist somewhere else. The reasoning is that by convention, settings should be loaded and interpreted before anything else and then not change. The section in the docs is pretty brief: https://docs.djangoproject.com/en/1.7/topics/settings/#altering-settings-at-runtime |
This specific issue isn't for local_settings.py, though we've discussed having those be web-configurable as well. This one is about creating an admin user, initializing the Device, etc -- database stuff. |
Okay, my bad, it came across as a settings thing, just keep it in mind that it puts constraint on what can be configured directly from a web interface without writing to files and reloading applications. |
Parts implemented in #3668 (superuser creation vi modal dialogue) Regarding the empty device name: I don't know if it makes sense to ask users about this, maybe using hostname is sufficient? |
Defaulting to hostname is good, but many deployments need to uniquely identify their devices. |
Self-assigning this, not to fix it for 0.15, but to add some of the recent development of ideas and to reflect that parts of the description has already been solved through unattended "kalite start". |
Although the device name is missing from auto-generated setups, it's still linked to the device's hostname. Given that someone is doing mass deployment, that should be fine. Since no one has been pitching this, I'm kind of assuming that the priority is so low that this may never end up being solved anyways. And it's quite harmless to most users. |
**) Most of all this was mitigated with the superuser creation dialogue btw. |
In some cases (e.g. when we create Ubuntu USB installation images) we'll be pre-installing KA Lite into a reusable installation image, so we can't pre-specify device name, superuser info, etc.
The idea here is to have a way to have KA Lite pre-installed/setup, with some of the data entry steps skipped, then have these missing pieces of information detected and requested when the web interface is first loaded, before anything else can be done.
Plan:
--skip-input
step to thesetup
management command. Will take a look at the existing options to avoid duplication.Optional:
Advantages
The text was updated successfully, but these errors were encountered: