1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #3005 from holta/remote.it

Lint & Clarify roles/remoteit [remote.it for remote support]
This commit is contained in:
A Holt 2021-10-27 21:01:06 -04:00 committed by GitHub
commit d968abac65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 62 additions and 36 deletions

View file

@ -63,7 +63,7 @@
# #
# 2020-11-04: Fix validation of 5 [now 4] core dependencies, for ./runrole etc # 2020-11-04: Fix validation of 5 [now 4] core dependencies, for ./runrole etc
- name: Set vars_checklist for 43 + 43 + 39 vars ("XYZ_install" + "XYZ_enabled" + "XYZ_installed") to be checked - name: Set vars_checklist for 44 + 44 + 40 vars ("XYZ_install" + "XYZ_enabled" + "XYZ_installed") to be checked
set_fact: set_fact:
vars_checklist: vars_checklist:
- hostapd - hostapd
@ -74,6 +74,7 @@
#- wondershaper # Unmaintained #- wondershaper # Unmaintained
- sshd - sshd
- openvpn - openvpn
- remoteit
- admin_console - admin_console
#- nginx # MANDATORY #- nginx # MANDATORY
#- apache # Unmaintained - former dependency #- apache # Unmaintained - former dependency

View file

@ -13,6 +13,11 @@
name: openvpn name: openvpn
when: openvpn_install when: openvpn_install
- name: REMOTE.IT
include_role:
name: remoteit
when: remoteit_install
- name: IIAB-ADMIN -- includes roles/iiab-admin/tasks/access.yml - name: IIAB-ADMIN -- includes roles/iiab-admin/tasks/access.yml
include_role: include_role:
name: iiab-admin name: iiab-admin

View file

@ -1,12 +1,22 @@
# Installing Remoteit on a Raspberry Pi # Remote support of an Internet-in-a-Box using https://remote.it
1. Set remoteit_install and remoteit_enabled to "True" in /etc/local_vars.yml.
2. Run the role that installs remote.it.` Remote.it can be a great way to remotely support an Internet-in-a-Box (IIAB).
For other approaches, please see http://FAQ.IIAB.IO -> "How can I remotely manage my Internet-in-a-Box?"
To install remote.it onto a Raspberry Pi IIAB:
1. Set `remoteit_install` and `remoteit_enabled` to `True` in your IIAB's [/etc/iiab/local_vars.yml](http://wiki.laptop.org/go/IIAB/FAQ#What_is_local_vars.yml_and_how_do_I_customize_it.3F)
2. Install it (remote.it) onto your IIAB, by running:
``` ```
./runroles remoteit cd /opt/iiab/iiab
sudo ./runrole remoteit
``` ```
3. The last step installs the remoteit code. But the last part of the install is designed to be interactive, and returns a registration code which i required to make the connection from your remoteit global registration. So run the last step to retrieve and record the registration number. EXPLANATION: The above installs remote.it code, in a way that was originally designed to be interactive, and provide you the registration code needed to make remote connections to this IIAB.
3. To obtain this IIAB's remote.it registration code, run:
``` ```
cd /opt/iiab/downloads sudo apt reinstall /opt/iiab/downloads/remoteit-4.13.5.armhf.rpi.deb
apt reinstall ./remoteit-4.13.5.armhf.rpi.deb
``` ```
4. After you have installed the remote.it client desktop on your laptop, click on the + icon, and enter the registration number displayed in step #3. 4. Record this registration code in a safe place, similar to a password!
5. After you've installed the https://remote.it client software onto a separate computer or device (e.g. your own laptop) click on the '+' icon, then enter the remote.it registration number (for the IIAB that you need to connect to).

View file

@ -1,4 +1,11 @@
# Remote.it allows you to make secure remote connections between two computers. # https://remote.it can help you remotely maintain an IIAB.
# See https://docs.remote.it/cli/overview for possible values for remoteit_url
# remoteit_install: True
# remoteit_enabled: False
# All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
# See https://docs.remote.it/cli/overview to refine either value below:
remoteit_cli_url: https://downloads.remote.it/cli/latest/remoteit_linux_armv7 remoteit_cli_url: https://downloads.remote.it/cli/latest/remoteit_linux_armv7
remoteit_device_url: https://downloads.remote.it/remoteit/v4.13.5/remoteit-4.13.5.armhf.rpi.deb remoteit_device_url: https://downloads.remote.it/remoteit/v4.13.5/remoteit-4.13.5.armhf.rpi.deb

View file

@ -1,5 +1,4 @@
- name: Enable & (Re)Start remote.it's connectd daemon which calls home
- name: Enable & (Re)Start connectd daemon which calls home
systemd: systemd:
name: connectd name: connectd
daemon_reload: yes daemon_reload: yes
@ -7,10 +6,9 @@
state: restarted state: restarted
when: remoteit_enabled when: remoteit_enabled
- name: Disable & Stop connectd daemon - name: Disable & Stop remote.it's connectd daemon
systemd: systemd:
name: connectd name: connectd
enabled: no enabled: no
state: stopped state: stopped
when: not remoteit_enabled when: not remoteit_enabled

View file

@ -1,23 +1,24 @@
- name: Download the command line interface for this device - name: Download the command line interface for this device to /usr/bin/{{ remoteit_cli_url }} (755)
get_url: get_url:
url: '{{ remoteit_cli_url }}' url: '{{ remoteit_cli_url }}'
dest: /usr/bin/ dest: /usr/bin/
mode: 0755 mode: 0755
- name: Fetch the remoteit device package - name: Download {{ remoteit_device_url }} device package to {{ downloads_dir }}
get_url: get_url:
url: '{{ remoteit_device_url }}' url: '{{ remoteit_device_url }}'
dest: '{{ downloads_dir }}' dest: '{{ downloads_dir }}'
- name: uninstall the device package - name: Uninstall the device package {{ remoteit_device_url | basename }}
apt: apt:
name: '{{ remoteit_device_url | basename }}' name: '{{ remoteit_device_url | basename }}'
state: absent state: absent
- name: Install the device package - name: Install device package {{ downloads_dir }}/{{ remoteit_device_url | basename }}
apt: apt:
deb: '{{ downloads_dir }}/{{ remoteit_device_url | basename }}' deb: '{{ downloads_dir }}/{{ remoteit_device_url | basename }}'
state: present state: present
# RECORD remoteit AS INSTALLED # RECORD remoteit AS INSTALLED

View file

@ -27,10 +27,9 @@
value: "{{ item.value | string }}" value: "{{ item.value | string }}"
with_items: with_items:
- option: name - option: name
value: Remote It value: remote.it
- option: description - option: description
value: '"remote.it allows you to make secure remote connections between two computers. Some of the benefits include: value: '"remote.it allows you to make secure remote connections between two computers. Some benefits include: crossing multiple NATs/firewalls using a single TCP port, without requiring router port forwarding, and reducing your network''s vulnerability."'
Crossing multiple NATs/firewallsUsing a single TCP portportforwardless: without requiring port forwarding in the router, significantly reducing your network''s vulnerability."'
- option: remoteit_install - option: remoteit_install
value: "{{ remoteit_install }}" value: "{{ remoteit_install }}"
- option: remoteit_enabled - option: remoteit_enabled

View file

@ -66,6 +66,7 @@
- { role: postgresql } - { role: postgresql }
- { role: pylibs } - { role: pylibs }
#- { role: rachel } #- { role: rachel }
- { role: remoteit }
- { role: samba } - { role: samba }
#- { role: schooltool } #- { role: schooltool }
- { role: sshd } - { role: sshd }

View file

@ -194,6 +194,10 @@ sshd_install: True # Required by OpenVPN
sshd_enabled: True sshd_enabled: True
sshd_port: 22 # Not fully functional. SEE: roles/sshd/tasks/install.yml sshd_port: 22 # Not fully functional. SEE: roles/sshd/tasks/install.yml
# https://remote.it can help you remotely maintain an IIAB.
remoteit_install: True
remoteit_enabled: False
openvpn_install: True openvpn_install: True
openvpn_enabled: False openvpn_enabled: False
# For /etc/iiab/openvpn_handle # For /etc/iiab/openvpn_handle

View file

@ -109,7 +109,7 @@ dns_jail_enabled: False
sshd_install: True # Required by OpenVPN sshd_install: True # Required by OpenVPN
sshd_enabled: True sshd_enabled: True
# Remote.it allows you to make secure remote connections between two computers. # https://remote.it can help you remotely maintain an IIAB.
remoteit_install: True remoteit_install: True
remoteit_enabled: False remoteit_enabled: False

View file

@ -109,7 +109,7 @@ dns_jail_enabled: False
sshd_install: True # Required by OpenVPN sshd_install: True # Required by OpenVPN
sshd_enabled: True sshd_enabled: True
# Remote.it allows you to make secure remote connections between two computers. # https://remote.it can help you remotely maintain an IIAB.
remoteit_install: True remoteit_install: True
remoteit_enabled: False remoteit_enabled: False

View file

@ -109,7 +109,7 @@ dns_jail_enabled: False
sshd_install: True # Required by OpenVPN sshd_install: True # Required by OpenVPN
sshd_enabled: True sshd_enabled: True
# Remote.it allows you to make secure remote connections between two computers. # https://remote.it can help you remotely maintain an IIAB.
remoteit_install: True remoteit_install: True
remoteit_enabled: False remoteit_enabled: False

View file

@ -109,7 +109,7 @@ dns_jail_enabled: False
sshd_install: True # Required by OpenVPN sshd_install: True # Required by OpenVPN
sshd_enabled: True sshd_enabled: True
# Remote.it allows you to make secure remote connections between two computers. # https://remote.it can help you remotely maintain an IIAB.
remoteit_install: True remoteit_install: True
remoteit_enabled: False remoteit_enabled: False