-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
default server template should have it's own file #900
Comments
I 100% totally agree with you on this! But also, given the way templates have been developed over time, it's near impossible to transition to putting the default template into it's own file ... so we'll just have to stick with the current behavior. |
I think this should be put on the list as it is a limiting factor, maybe move settings over time into a standalone template. Obviously I don't mean drop all the work you are doing now just to do this. 😄 - The template feature of Virtualmin is the flagship feature 🚢 Work around (a brief suggestion)
NB: Server templates can inherit from the default settings, maybe you can use this mechanism to break out the default server template settings from the virtualmin config file. |
What kind of limitation are you referring to?
I think, the effort isn't worth it, because the amount of work and potential bugs that could arise from this kind of rework outweigh aethereal benefits! We have many more practical tasks that are more important to focus on. |
|
You can use the virtualmin backup/restore function to copy templates to other systems though - I'd strongly recommend this over just copying files, as it protects you from changes to our internal implementation. |
You could just copy the Virtualmin config from the
You can do this by changing the Virtualmin config file directly, or better yet, by using the
Well, yeah, we agree on that.
What's that? |
Currently you can:
You cannot:
|
I believe the complexity would be the key obstacle for implementing such a change... |
I don't know Perl so I will take your word on the complexity. I would just say that the inheritance model (single level) is already there, and in my mind I would just use |
Multi-level inheritance is something we could potentially implement regardless of how templates are stored. |
The issue
the defaut settings server templste does not have it's own file. From what I can see all of these settings are stored in the follwing file along with other virtualmin configurations
/etc/webmin/virtual-server/config
Proposed solution
create a default settings server template file here
/etc/webmin/virtual-server/templates/<template_id>
So logically you could use this for the default settings template
/etc/webmin/virtual-server/templates/0
The text was updated successfully, but these errors were encountered: