Rework + modernize Node-RED's roles/nodered install routine (no more 'pi', ETC!) #3248
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In addition to resolving @nzola's Raspberry Pi OS problem (as a result of the user 'pi' no longer existing since April) here:
...this PR is also a major overhaul of IIAB's Node-RED install routine:
/etc/systemd/system/nodered.service
and/home/{{ nodered_linux_user }}/.node-red/settings.js
. Instead, IIAB grabs recent/official versions from Node-RED, and then uses Ansible's {lineinfile, blockinfile, replace} commands to auto-customize them.settings.yml
(formerly group.yml) andos-integration.yml
(formerly rpi_desk.yml) now run on all OS's — not just RasPiOS — i.e. hewing closely to Node-RED's official new install script.nodered_linux_user: nodered
is introduced to softcode /home/nodered — and legacy variables are renamed accordingly, tonodered_admin_user
andnodered_admin_pwd_hash
Tested on 32-bit Raspberry Pi OS Lite on Raspberry Pi 4 — http://box/nodered works!
Testing help on any of IIAB's 4 mailine OS's in all their variations, with or without graphical desktops would be great if others have a moment.
(I will test a few more, but cannot test all.)