onaio.courier

onaio - 快递员 构建状态

安装和配置 Courier

要求

Courier 需要指向 Redis 和 PostgreSQL 实例,以便正常运行。

角色变量

查看 defaults/main.yml 文件以获取完整的默认变量列表。

# 下载 Courier 压缩包的包存储库
`courier_package_repository_url`: "https://github.com/nyaruka/courier/releases/download"

# 主机的系统架构。可能的值有:
#   - linux_amd64
#   - windows_amd64
#   - darwin_amd64
`courier_system_architecture`: "linux_amd64"

# Courier 压缩包的下载 URL
courier_download_url: "{{ courier_package_repository_url }}/v{{ courier_version }}/courier_{{ courier_version }}_{{ courier_system_architecture }}.tar.gz"

# Courier 版本目录创建的根目录
courier_package_directory_root: "{{ courier_system_home }}/app-versioned"

# 要将 Courier 二进制文件复制到的目录名称
courier_package_directory_name: "{{ courier_version }}"

# 指向当前活动的 Courier
# 二进制文件的符号链接路径
courier_active_package_symlink: "{{ courier_system_home }}/app"

# 要设置的 Courier 环境变量。查看
# https://github.com/nyaruka/courier#rapidpro-configuration
# 以获取完整的变量列表
courier_environment_vars:
  COURIER_DOMAIN: "example.com"
  COURIER_SPOOL_DIR: "{{ courier_system_home }}/spool"

依赖

示例剧本

- hosts: all
  roles:
    - role: ansible-courier
      courier_version: "1.2.148"

许可

Apache v2.0

关于项目

Installs and configures Courier. Courier is a messaging gateway for text-based messaging channels.

安装
ansible-galaxy install onaio.courier
许可证
apache-2.0
下载
588
拥有者