robertdebock.turn

Ansible角色turn

此角色已于2023年12月归档。

在您的系统上安装和配置(co)turn服务器。

GitHub GitLab 下载 版本
github gitlab downloads 版本

示例剧本

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

---
- name: Converge
  hosts: all
  become: yes
  gather_facts: yes

  roles:
    - role: robertdebock.turn
      turn_listening_ip: "0.0.0.0"
      turn_external_ip: "1.2.3.4"

机器需要做准备。 在CI中,这是通过molecule/default/prepare.yml完成的:

---
- name: Prepare
  hosts: all
  become: yes
  gather_facts: no

  roles:
    - role: robertdebock.bootstrap
    - role: robertdebock.epel

请参见完整说明和示例了解如何使用这些角色。

角色变量

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

---
# turn的默认文件

turn_listening_port: 3478
turn_fingerprint: yes
turn_lt_cred_mech: no
turn_use_auth_secret: yes
turn_static_auth_secret: 96ef8dbed1ba36132d9cccfa608d1f90f879d7fb38cb5c18
turn_realm: nextcloud.meinit.nl
turn_total_quota: 100
turn_bps_quota: 0
turn_stale_nonce: 600
turn_no_loopback_peers: yes
turn_no_multicast_peers: yes
turn_simple_log: yes
turn_cli_password: 5S4QtTbkC2tzJj4jRKePZJlmCVU3ljnG
turn_server_name: "{{ ansible_fqdn }}"
turn_listening_ip: "{{ ansible_default_ipv4.address }}"
turn_external_ip: "{{ ansible_default_ipv4.address }}"

需求

使用的角色状态

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

需求 GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab
robertdebock.epel Build Status GitHub Build Status GitLab

上下文

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

以下是相关角色的概述: 依赖关系

兼容性

此角色已在以下容器镜像上进行测试:

容器 标签
Amazon Candidate
EL 8, 9
Debian all
Fedora all
opensuse all
Ubuntu bionic

所需的最低Ansible版本是2.12,测试已进行:

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

如果您发现问题,请在GitHub上反馈。

许可证

Apache-2.0

作者信息

robertdebock

请考虑支持我

关于项目

Install and configure a (co) turn server on your system.

安装
ansible-galaxy install robertdebock.turn
许可证
apache-2.0
下载
122
拥有者
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.