Using the tokens we can allow the user to pull resources directly from cloudsim. In particular they can get the vpn tokens, ssh keys, and appropriate addresses for the machines.
What would be great if for each role, team blue, team gold, and game master, there were a few generated command line invocations that could be copy and pasted to set things up.
The users will still need to have the sasc package installed so we can rely on that, but from that we could have.
/opt/sasc/setup_blue_networking.py --token XXXXXXXXX --round-id XYZXYZ --vpn-config 0 which can pull the appropriate resources, such as the vpn config and ssh key and setup the vpn.
The gold team would have an equivalent command.
And so would the game master (no need for the vpn here, but it would need the IP address of the arbiter machine.
The main thing is that the generated options need to have enough information for the script to pull all the needed resources by url using the authorization token. I've sketched above what I think is necessary, but if there are more arguments needed that's fine.
Original comment by Tully Foote (Bitbucket: Tully Foote, GitHub: tfoote).
changed title from "Improve user experience fetching resources by exposing tokens from command line tools" to "[SASC] Improve user experience fetching resources by exposing tokens from command line tools"
Original report (archived issue) by Tully Foote (Bitbucket: Tully Foote, GitHub: tfoote).
Using the tokens we can allow the user to pull resources directly from cloudsim. In particular they can get the vpn tokens, ssh keys, and appropriate addresses for the machines.
What would be great if for each role, team blue, team gold, and game master, there were a few generated command line invocations that could be copy and pasted to set things up.
The users will still need to have the sasc package installed so we can rely on that, but from that we could have.
/opt/sasc/setup_blue_networking.py --token XXXXXXXXX --round-id XYZXYZ --vpn-config 0
which can pull the appropriate resources, such as the vpn config and ssh key and setup the vpn.The gold team would have an equivalent command.
And so would the game master (no need for the vpn here, but it would need the IP address of the arbiter machine.
The main thing is that the generated options need to have enough information for the script to pull all the needed resources by url using the authorization token. I've sketched above what I think is necessary, but if there are more arguments needed that's fine.