-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove reference to username.wis2.training * use return instead of exit in setup_student_vm.sh * make GDC exercise wording more generic, don't use local IP used in Fiji * add explicit login and exit commands to avoid confusion * updated wording regarding required stations update
- Loading branch information
1 parent
6f83860
commit 61f93bc
Showing
13 changed files
with
110 additions
and
76 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 18 additions & 14 deletions
32
environment/fake-global-services/README.md → ...nt/fake-global-broker-and-cache/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
# fake-global-broker-and-cache | ||
|
||
To run a local MQTT broker and a local cache that can be used to simulate the global broker and cache in the WIS2 environment during WIS2 training sessions. | ||
|
||
# NOTE | ||
|
||
If you want to use a wis2box-instance to serve the purpose of the fake global cache and fake global broker, the following changes are required on the services included by the wis2box-stack: | ||
|
||
* Update acf.conf in the "mosquitto" container to allow the wis2box-user to publish on cache/a/wis2/# (restart the container after making changes) | ||
* create the bucket "cache" in the "wis2box-minio" container and set the access policy to public | ||
|
||
# Environment variables | ||
|
||
Define these in a local ``.env`` file or in the environment of the VM. | ||
|
||
* ``MINIO_HOST`` - MINIO host and port used to act as the fake global cache, e.g. ``instructor.wis2.training:9000`` | ||
* ``MINIO_KEY`` - MINIO access key / user ID for writing to the fake cache, e.g. ``wis2box`` | ||
* ``MINIO_SECRET`` - MINIO secret for writing to the fake cache | ||
* ``GC_URL`` - Base URL used to access files on the fake cache, e.g. ``http://instructor.wis2.training`` | ||
* ``MINIO_KEY`` - MINIO access key / user ID for writing to the fake cache, e.g. ``wis2box`` when using wis2box | ||
* ``MINIO_SECRET`` - MINIO secret for writing to the fake cache, corresponds to WIS2BOX_STORAGE_PASSWORD when using wis2box | ||
* ``GC_URL`` - Base URL used to access files on the fake cache, e.g. ``http://instructor.wis2.training:9000`` | ||
* ``GB_HOST`` - Host name of the MQTT broker to republish to, e.g. ``instructor.wis2.training`` | ||
* ``GB_UID`` - User ID used for publishing, e.g. ``wis2box`` | ||
* ``GB_PWD`` - Password used for publishing | ||
|
||
You can define these in a local ``.env`` file or in the environment of the VM. | ||
* ``GB_UID`` - User ID used for publishing, e.g. ``wis2box`` when using wis2box | ||
* ``GB_PWD`` - Password used for publishing, corresponds to WIS2BOX_BRIDGE_PASSWORD when using wis2box | ||
|
||
# Usage | ||
|
||
In the VM run: | ||
|
||
``python subscribe_and_republish.py`` | ||
|
||
# NOTE | ||
|
||
If you want to use a wis2box-instance to serve the purpose of the fake global cache and fake global broker, the following changes are required on the services included by the wis2box-stack: | ||
|
||
* Update acf.conf in the "mosquitto" container to allow the wis2box-user to publish on cache/a/wis2/# (restart the container after making changes) | ||
* create the bucket "cache" in the "wis2box-minio" container and set the access policy to public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[ | ||
{"host": "192.168.7.122", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.123", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.124", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.125", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.126", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.127", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.128", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.129", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.130", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.131", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.132", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.133", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.134", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.135", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.137", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.146", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.139", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.140", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.141", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.142", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.143", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.144", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.145", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.147", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.148", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.149", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"}, | ||
{"host": "192.168.7.151", "port": 1883, "pwd": "everyone", "uid": "everyone", "protocol": "tcp"} | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.