You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm always frustrated when it comes to the config files requiring extensive manual editing. I've tried scripting the edits but the format of the config.json file is subject to change. Its possible to improve this situation but it is my belief that changes to the source are necessary.
Describe the solution you'd like
For the hypervisor:, the -p flag in the gen-config command should produce a configuration file with default values that skyimager would produce. If it does exactly as specified then all the complexities of manually editing this file would vanish and automated setup and start at the point of installation can be achieved with postinst or .install scripts depening on the distribution in question.
For the -p flag of skywire-cli visor gen-config, the same as above but with a few caveats:
I propose that the path for the dmsgpty authorization file, transport logs, and local path be set to either /usr/lib/skycoin/skywire/ or a subdirectory of this path such as /usr/lib/skycoin/skywire/visor
I propose that the hypervisor key should be able to be specified either directly or a path to the file containing the hypervisor keys which should just be a regular text file formatted with one key per line. I don't care if that file supports any kind of commenting. If it must be .json then so be it but a regular text file would be easiest to work with.
If this can be achieved, the hypervisor's key can be distributed as a package to nodes and thus turn a complex manual edit into more or less a single command; i.e. apt install hypervisorkey after this package with the key was created on the hypervisor and added to a local package repository. This would also eliminate the need for skyimager to easily set the hypervisor key in visors.
Describe alternatives you've considered
I have postinst / install scripts for both .deb and archlinux which manually generate and edit the config files. Until the recent 0.3.0 update this was working on arch. It worked when I tested this on armbian but that script needs a bit more work to not cause dpkg to produce error messages. I had already determined that scripted config file edits to the extent which was required would require constant maintenance to adapt to a changing config file format, so I abandoned the effort to do that.
Additional context
Add any other context about the problem here.
Possible implementation
Preliminary ideas to get this done.
If you have all details in mind then provide a checklist
Start with the hypevisor gen-config -p flag
When done do the skywre-cli visor gen-config -p flag
The text was updated successfully, but these errors were encountered:
Feature description
-p flag for skywire-cli visor & skywire-hypervisor gen-config to generate correct default config for skybian (or package-based installations)
example for the hypervisor:
skywire-cl desired example usage:
Describe the feature
Is your feature request related to a problem? Please describe.
I'm always frustrated when it comes to the config files requiring extensive manual editing. I've tried scripting the edits but the format of the config.json file is subject to change. Its possible to improve this situation but it is my belief that changes to the source are necessary.
Describe the solution you'd like
For the hypervisor:, the
-p
flag in thegen-config
command should produce a configuration file with default values that skyimager would produce. If it does exactly as specified then all the complexities of manually editing this file would vanish and automated setup and start at the point of installation can be achieved with postinst or .install scripts depening on the distribution in question.For the
-p
flag ofskywire-cli visor gen-config
, the same as above but with a few caveats:/usr/lib/skycoin/skywire/
or a subdirectory of this path such as/usr/lib/skycoin/skywire/visor
If this can be achieved, the hypervisor's key can be distributed as a package to nodes and thus turn a complex manual edit into more or less a single command; i.e.
apt install hypervisorkey
after this package with the key was created on the hypervisor and added to a local package repository. This would also eliminate the need for skyimager to easily set the hypervisor key in visors.Describe alternatives you've considered
I have postinst / install scripts for both .deb and archlinux which manually generate and edit the config files. Until the recent 0.3.0 update this was working on arch. It worked when I tested this on armbian but that script needs a bit more work to not cause dpkg to produce error messages. I had already determined that scripted config file edits to the extent which was required would require constant maintenance to adapt to a changing config file format, so I abandoned the effort to do that.
Additional context
Add any other context about the problem here.
Possible implementation
Preliminary ideas to get this done.
If you have all details in mind then provide a checklist
hypevisor gen-config -p
flagskywre-cli visor gen-config -p
flagThe text was updated successfully, but these errors were encountered: