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

[node-red] refactor bootstrapping + export nodes playbook #116

Closed
shantanoo-desai opened this issue Sep 21, 2023 · 1 comment
Closed

[node-red] refactor bootstrapping + export nodes playbook #116

shantanoo-desai opened this issue Sep 21, 2023 · 1 comment
Assignees
Labels
node-red All activities for Node-RED specific development

Comments

@shantanoo-desai
Copy link
Owner

Description

Extend #111 + #110 and combine the logic of #112 where the same bootstrap_nodered.yml playbook can install nodes (komponist + user-specific from nodes).

  1. use ansible playbook tags to offer user whether they want to download the tarballs offline
  2. generate the nodes.json with all nodes (komponist + user-specific)
@shantanoo-desai shantanoo-desai self-assigned this Sep 21, 2023
@shantanoo-desai shantanoo-desai added the node-red All activities for Node-RED specific development label Sep 21, 2023
@shantanoo-desai shantanoo-desai moved this to Todo in komponist Sep 21, 2023
@shantanoo-desai shantanoo-desai moved this from Todo to In Progress in komponist Sep 25, 2023
@shantanoo-desai
Copy link
Owner Author

Notes

  • uploading nodes tarball using the Ansible uri module is causing corruption issues on the node-RED server see SE Query

The only way that currently seems to be wrapping a command module with curl:

    - name: upload tarballs for Node-RED
      ansible.builtin.command:
        cmd: >
          curl -s -XPOST http://localhost/nodered/nodes -H "Content-Type: multipart/form-data" \
           -H "Authorization: {{ auth_token.json.token_type }} {{ auth_token.json.access_token }}" \
           -F "tarball=@{{ komponist.deploy_dir }}/nodered/{{ item }};type=application/gzip;filename={{ item }}"
      with_items:
        - node-red-contrib-influxdb-0.6.1.tgz

shantanoo-desai added a commit that referenced this issue Sep 25, 2023
bootstrapping node-red now via the generated `nodes.json` file for
online logic and via downloaded tarballs from NPM registry for
offline logic. Use of ansible tags to explicitly mention `offline`
upload (default is `online` logic).

Closes #116

Signed-off-by: Shantanoo 'Shan' Desai <[email protected]>
@github-project-automation github-project-automation bot moved this from In Progress to Done in komponist Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
node-red All activities for Node-RED specific development
Projects
Status: Done
Development

No branches or pull requests

1 participant