-
Notifications
You must be signed in to change notification settings - Fork 95
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
[RFC] Node and community assets and generic configs #719
Comments
+1 |
And (if I got the function lime-packages/packages/lime-docs/files/lime-example Lines 31 to 32 in 29131e2
could be de-implemented in anygw and added to lime-defaults as something like:
meh, I'm not sure, opinions? |
I would not use this generic configs for libremesh itself as I see it more dificult to understand at least for me (if the dhcp options is needed for anygw then it is easier for me if the options are changed directly in the anygw code). I have the generic_uci_config and copy_asset fatures almost ready. I will push when ready. |
After spliting the settings into lime-node and lime-community there are still some loose ends. This proposal tries to tie them up :)
What do you think?
Guidelines
Proposal
Currently there are package configurations that cannot be specified without being for the community or for the node only.
The same applies to uci-defaults and hotplug hooks.
The idea is to be able to include all these use cases under the lime-node, lime-community paradigm.
generic_uci_config
that specifies generic configurations of typeuci set
to modify those of another package.uci-defaults
andhotplug.d/lime-config
hooks, we added the directories,node-assets
andcommunity-assets
. And the following section types:copy_asset
copy an asset into a specified path.run_asset_on_firstboot
executes at first boot (using a uci-default for that end, eg:uci-defaults/90_lime_generic
).run_asset
executes an asset at each lime-config runThis way not longer need to maintain other configuration files during an upgrade that are not exactly those specified by the lime-node/lime-community and the corresponding assets.
It is important to clarify then (in the documentation) that these unforseen configurations are a trigger to development and eventually have to end up as internal libre-mesh integrations.
And so hacker communities don't have to be maintaining these extra configurations that require maintenance.
Pros:
Example:
(based on the quintanalibre network-profile https://github.com/libremesh/network-profiles/tree/master/quintanalibre.org.ar/generic/files/etc)
Random notes:
/etc/lime-assets/{node, community}
/etc/lime-assets/community/files/usr/bin/foo
) instead ofcopy_asset
. I have mixed feelings, prefer the copy_asset because of it being explicit.lime-sysupgrade
(that internally usessysupgrade -f
with thelime.system.keep_on_upgrade
config )The text was updated successfully, but these errors were encountered: