buluma.node_red

Ansible 角色 node_red

在您的系统上安装和配置 Node RED。

GitHub 版本 问题 合并请求 下载
github 版本 问题 合并请求 Ansible 角色

示例剧本

该示例取自 molecule/default/converge.yml,并在每次推送、合并请求和发布时进行测试。

---
- name: 合并
  hosts: all
  become: yes
  gather_facts: yes

  roles:
    - role: buluma.node_red

机器需要进行准备。在 CI 中使用 molecule/default/prepare.yml 进行准备:

---
- name: 准备
  hosts: all
  become: yes
  gather_facts: no

  roles:
    - role: buluma.bootstrap
    - role: buluma.ca_certificates
    - role: buluma.epel
    - role: buluma.npm
    - role: buluma.users
      users_group_list:
        - name: nodered
      users_user_list:
        - name: nodered
          group: nodered

有关如何使用这些角色的 完整说明和示例

角色变量

变量的默认值在 defaults/main.yml 中设置:

---
# node_red 的默认文件

# Node RED 应在此目录中运行。
node_red_working_directory: /opt/node_red

# Node RED 应以该用户身份运行。
# 此角色不创建用户,请参见 `molecule/default/prepare.yml`。
node_red_user_name: nodered

# Node RED 应以该组身份运行。
# 此角色不创建组,请参见 `molecule/default/prepare.yml`。
node_red_group_name: nodered

要求

使用的角色状态

以下角色用于准备系统。您可以使用其他方式准备您的系统。

要求 GitHub 版本
buluma.bootstrap Ansible Molecule 版本
buluma.ca_certificates Ansible Molecule 版本
buluma.epel Ansible Molecule 版本
buluma.npm Ansible Molecule 版本
buluma.service Ansible Molecule 版本
buluma.users Ansible Molecule 版本

背景

该角色是许多兼容角色的一部分。有关更多信息,请查看这些角色的 文档

以下是相关角色的概述:

依赖

兼容性

该角色已在这些 容器镜像 上进行了测试:

容器 标签
Debian bullseye
EL 8
Fedora 全部
Ubuntu focal
Kali 全部

所需的最低 Ansible 版本为 2.12,已对以下版本进行测试:

  • 之前的版本。
  • 当前版本。
  • 开发版本。

如果您发现问题,请在 GitHub 上注册。

更新日志

角色历史

许可证

Apache-2.0

作者信息

Shadow Walker

关于项目

Install and configure Node RED on your system.

安装
ansible-galaxy install buluma.node_red
许可证
apache-2.0
下载
4.5k
拥有者
DevOps Engineer