Browse Source
- wamp recovery on timeout updated - docs updated - requirements updated: pyOpenssl Change-Id: Id2e3c1adf05fb774713dd0488fb8b2751ec1b5dachanges/72/624772/1 0.4.4
13 changed files with 107 additions and 28 deletions
@ -0,0 +1,36 @@
|
||||
## Installation on arm architecture |
||||
|
||||
GitHub repo: |
||||
- https://github.com/openstack/iotronic-lightning-rod |
||||
|
||||
# Configure Lightning-rod environment |
||||
|
||||
* Create the folder in your system to store Lightning-rod settings <LR_CONF_PATH> (e.g. "/etc/iotronic/"): |
||||
``` |
||||
sudo mkdir <LR_CONF_PATH> |
||||
``` |
||||
|
||||
* Get Lightning-rod configuration template files: |
||||
``` |
||||
cd <LR_CONF_PATH> |
||||
sudo wget https://raw.githubusercontent.com/openstack/iotronic-lightning-rod/master/templates/settings.example.json -O settings.json |
||||
sudo wget https://raw.githubusercontent.com/openstack/iotronic-lightning-rod/master/etc/iotronic/iotronic.conf |
||||
``` |
||||
|
||||
* Configure Lightning-rod identity: |
||||
``` |
||||
cd <LR_CONF_PATH> |
||||
wget https://raw.githubusercontent.com/openstack/iotronic-lightning-rod/master/scripts/lr_configure |
||||
chmod +x lr_configure |
||||
./lr_configure -c <REGISTRATION-TOKEN> <WAMP-REG-AGENT-URL> <LR_CONF_PATH> |
||||
``` |
||||
|
||||
# Create container: |
||||
``` |
||||
docker run -d --privileged \ |
||||
-v lr_var:/var/lib/iotronic -v lr_le:/etc/letsencrypt/ \ |
||||
-v <LR_CONF_PATH>/settings.json:/etc/iotronic/settings.json \ |
||||
-v <LR_CONF_PATH>/iotronic.conf:/etc/iotronic/iotronic.conf \ |
||||
--net=host --restart unless-stopped \ |
||||
--name=lightning-rod mdslab/rpi-openstack-iotronic-lightning-rod |
||||
``` |
@ -0,0 +1,36 @@
|
||||
# Installation on Ubuntu/Debian x86_64 |
||||
|
||||
GitHub repo: |
||||
- https://github.com/openstack/iotronic-lightning-rod |
||||
|
||||
# Configure Lightning-rod environment |
||||
|
||||
* Create the folder in your system to store Lightning-rod settings <LR_CONF_PATH> (e.g. "/etc/iotronic/"): |
||||
``` |
||||
sudo mkdir <LR_CONF_PATH> |
||||
``` |
||||
|
||||
* Get Lightning-rod configuration template files: |
||||
``` |
||||
cd <LR_CONF_PATH> |
||||
sudo wget https://raw.githubusercontent.com/openstack/iotronic-lightning-rod/master/templates/settings.example.json -O settings.json |
||||
sudo wget https://raw.githubusercontent.com/openstack/iotronic-lightning-rod/master/etc/iotronic/iotronic.conf |
||||
``` |
||||
|
||||
* Configure Lightning-rod identity: |
||||
``` |
||||
cd <LR_CONF_PATH> |
||||
wget https://raw.githubusercontent.com/openstack/iotronic-lightning-rod/master/scripts/lr_configure |
||||
chmod +x lr_configure |
||||
./lr_configure -c <REGISTRATION-TOKEN> <WAMP-REG-AGENT-URL> <LR_CONF_PATH> |
||||
``` |
||||
|
||||
# Create container: |
||||
``` |
||||
docker run -d --privileged \ |
||||
-v lr_var:/var/lib/iotronic -v lr_le:/etc/letsencrypt/ \ |
||||
-v <LR_CONF_PATH>/settings.json:/etc/iotronic/settings.json \ |
||||
-v <LR_CONF_PATH>/iotronic.conf:/etc/iotronic/iotronic.conf \ |
||||
--net=host --restart unless-stopped \ |
||||
--name=lightning-rod mdslab/openstack-iotronic-lightning-rod |
||||
``` |
@ -1,42 +1,42 @@
|
||||
IoTronic Lightning-rod installation guide for Raspberry Pi 3 |
||||
IoTronic Lightning-rod installation guide for Raspberry Pi 2/3 |
||||
============================================================ |
||||
|
||||
We tested this procedure on a Raspberry Pi 3 board (Raspbian). |
||||
We tested this procedure on a Raspberry Pi 2/3 board (Raspbian). |
||||
|
||||
|
||||
Install Lightning-rod |
||||
~~~~~~~~~~~~~~~~~~~~~ |
||||
|
||||
:: |
||||
|
||||
pip3 install iotronic-lightningrod |
||||
|
||||
Deployment |
||||
'''''''''' |
||||
|
||||
Iotronic deployment |
||||
''''''''''''''''''' |
||||
:: |
||||
|
||||
lr_install |
||||
|
||||
|
||||
Iotronic setup |
||||
'''''''''''''' |
||||
|
||||
:: |
||||
|
||||
lr_configure |
||||
|
||||
Arguments required: |
||||
<REGISTRATION-TOKEN> : token released by IoTronic registration procedure |
||||
<WAMP-REG-AGENT-URL> : IoTronic Crossbar server URL |
||||
* <REGISTRATION-TOKEN> , token released by IoTronic registration procedure |
||||
* <WAMP-REG-AGENT-URL> , IoTronic Crossbar server WAMP URL: |
||||
ws(s)://<IOTRONIC-CROSSBAR-IP>:<IOTRONIC-CROSSBAR-PORT>/ |
||||
|
||||
e.g. |
||||
:: |
||||
lr_configure 000001 ws(s)://<IOTRONIC-CROSSBAR-IP>:<IOTRONIC-CROSSBAR-PORT>/ |
||||
|
||||
lr_configure <REGISTRATION-TOKEN> <WAMP-REG-AGENT-URL> |
||||
|
||||
Execution: |
||||
~~~~~~~~~~ |
||||
|
||||
:: |
||||
|
||||
systemctl start lightning-rod.service |
||||
|
||||
tail -f /var/log/iotronic/lightning-rod.log |
||||
tail -f /var/log/iotronic/lightning-rod.log |
||||
|
Loading…
Reference in new issue