#16 Allow for server switch over (script and UI hooks)

Aperto
aperto 5 anni fa da clementinecomputing · 2 commenti

There was a facility to switch over to another server that was not transferred over when creating Popufare.

This involved:

  • looking for a magic file in config/server/server_list (or something similar) that had a tab delimited file of server name, secret SSH key (and maybe another field?) that was used to populate the appropriate system files
  • a script to allow for the change over

The scope of work is to:

  • create a switch_server or similar script and put it into the /home/bus/bin directory that will take as input which server to switch over by name or line number
  • have the script populate the private key to allow for automatic SSH into the appropriate server
  • reboot/reset the machine so changes can take effect
  • add the hooks in the diagnostic window of the DIU UI so that this can be done without needing console access to the DIU
priority medium
estimate 4 work units
There was a facility to switch over to another server that was not transferred over when creating Popufare. This involved: * looking for a magic file in `config/server/server_list` (or something similar) that had a tab delimited file of server name, secret SSH key (and maybe another field?) that was used to populate the appropriate system files * a script to allow for the change over The scope of work is to: * create a `switch_server` or similar script and put it into the `/home/bus/bin` directory that will take as input which server to switch over by name or line number * have the script populate the private key to allow for automatic SSH into the appropriate server * reboot/reset the machine so changes can take effect * add the hooks in the diagnostic window of the DIU UI so that this can be done without needing console access to the DIU | | | |---|---| | priority | medium | | estimate | 4 work units |
clementinecomputing ha commentato 5 anni fa
Proprietario

unpack_server_data.sh was added in 71c84b1568 with minimal alterations to make it work.

The complexity here is mostly in the packaged config file that makes sure the appropriate server_list (or other appropriately named file) exists in the /home/bus/config/server directory (or other appropriate directory as named in common_values.sh).

Hooks have also been added to the diu_minder but funcitonality has not been simplified or hooked up through the GUI.

This ticket will be closed when a switch_server or appropriate file file has been created and the functionality has been hooked up to the driver UI.

`unpack_server_data.sh` was added in 71c84b1568bdb28d112c6aa104b7bed42db8f9a0 with minimal alterations to make it work. The complexity here is mostly in the packaged config file that makes sure the appropriate `server_list` (or other appropriately named file) exists in the `/home/bus/config/server` directory (or other appropriate directory as named in `common_values.sh`). Hooks have also been added to the `diu_minder` but funcitonality has not been simplified or hooked up through the GUI. This ticket will be closed when a `switch_server` or appropriate file file has been created and the functionality has been hooked up to the driver UI.
clementinecomputing ha commentato 5 anni fa
Proprietario

Not there are hooks in the 'diagnostic' screen from the UI. Since there is now a 'custom' message that calls a script, this is the appropriate place to call the appropriate scripts to switch from development to production or vice versa.

Not there are hooks in the 'diagnostic' screen from the UI. Since there is now a 'custom' message that calls a script, this is the appropriate place to call the appropriate scripts to switch from development to production or vice versa.
Sign in to join this conversation.
Nessuna milestone
Nessun assegnatario
1 Partecipanti
Caricamento...
Annulla
Salva
Non ci sono ancora contenuti.