manala.thumbor
#######################################################################################################
:exclamation: 弃用提示 :exclamation:
本仓库及相关角色已弃用。
你可以在 Manala Ansible 集合 中找到我们的其他角色。关于它的使用信息,请查看 集合仓库。
#######################################################################################################
Ansible 角色:Thumbor 
:exclamation: 请在 主 Ansible 角色仓库 中 报告问题 和 发送拉取请求 :exclamation:
此角色负责 Thumbor 的设置和配置。
它是 Manala Ansible 堆栈 的一部分,但也可以作为独立组件使用。
需求
此角色适用于 manala thumbor Debian 包,该包可在 manala Debian 仓库中获得。请使用 manala.apt 角色来正确处理。
manala_apt_preferences:
- thumbor@manala
依赖
无。
安装
Ansible 2+
使用 ansible galaxy cli:
ansible-galaxy install manala.thumbor
使用 ansible galaxy 需求文件:
- src: manala.thumbor
角色处理器
名称 | 类型 | 描述 |
---|---|---|
thumbor restart |
服务 | 重启 Thumbor 服务 |
角色变量
名称 | 默认 | 类型 | 描述 |
---|---|---|---|
manala_thumbor_install_packages |
~ | 数组 | 要安装的依赖包 |
manala_thumbor_install_packages_default |
['thumbor'] | 数组 | 默认要安装的依赖包 |
manala_thumbor_key_file |
'/etc/thumbor.key' | 字符串 | 密钥文件路径 |
manala_thumbor_key |
~ | 字符串 | 密钥 |
manala_thumbor_configs_exclusive |
false | 布尔值 | 配置独占性 |
manala_thumbor_configs_dir |
'/etc/thumbor.d' | 字符串 | 配置目录路径 |
manala_thumbor_configs_template |
'configs/empty.j2' | 字符串 | 默认配置模板路径 |
manala_thumbor_configs |
[] | 数组 | 配置 |
manala_thumbor.services |
true | 布尔值 | 处理服务 |
配置示例
manala_thumbor_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
manala_thumbor_configs:
- file: debian.conf
template: configs/debian.j2
- file: thumbor.conf
template: configs/default.prod.j2
- file: app.conf
config:
- MAX_WIDTH: 100
- UPLOAD_MAX_SIZE: 1024
示例任务书
- hosts: servers
roles:
- { role: manala.thumbor }
许可证
MIT
作者信息
Manala (http://www.manala.io/)
安装
ansible-galaxy install manala.thumbor
许可证
Unknown
下载
4k
拥有者
Manala is an open source project supported by the french web agency ELAO providing advanced ansible roles for website's infrastructures and far more.