Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework + modernize Node-RED's roles/nodered install routine (no more 'pi', ETC!) #3248

Merged
merged 5 commits into from Jun 9, 2022

Conversation

holta
Copy link
Member

@holta holta commented Jun 9, 2022

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:

  • Ansible Templates are no longer used to generate /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) and os-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.
  • A new variable nodered_linux_user: nodered is introduced to softcode /home/nodered — and legacy variables are renamed accordingly, to nodered_admin_user and nodered_admin_pwd_hash
  • Please see roles/nodered/tasks/install.yml for more details.

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.)

@holta holta added this to the 8.0 milestone Jun 9, 2022
@holta holta changed the title Rework + modernize Node-RED's role/nodered install routine (no more 'pi', ETC!) Rework + modernize Node-RED's roles/nodered install routine (no more 'pi', ETC!) Jun 9, 2022
@holta
Copy link
Member Author

holta commented Jun 9, 2022

Tested on Ubuntu 22.04 (Server) LTS x86_64 VM — http://box/nodered works!

@holta
Copy link
Member Author

holta commented Jun 9, 2022

Tested on Debian 11 (Desktop) x86_64 VM — http://box/nodered works!

@holta
Copy link
Member Author

holta commented Jun 9, 2022

Tested on Mint 20.3 (graphical desktop) x86_64 VM — http://box/nodered works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant