boutetnico.pmm_client
ansible-role-pmm-client
该角色安装 PMM 客户端。
它是 Ansible 角色家族的一部分,用于设置和配置 PMM:
要求
需要 Ansible 2.10 或更高版本。
支持的平台
- Debian - 11 (Bullseye)
- Debian - 12 (Bookworm)
- Ubuntu - 22.04 (Jammy Jellyfish)
- Ubuntu - 24.04 (Noble Numbat)
角色变量
变量 | 必需 | 默认值 | 选择 | 备注 |
---|---|---|---|---|
pmm_client_server_url | 是 | https://admin:[email protected]:443 |
字符串 | |
pmm_client_server_insecure_tls | 是 | false |
布尔值 | |
pmm_client_package_state | 是 | present |
字符串 | 使用 latest 来升级 PMM 客户端。 |
pmm_client_services | 是 | [] |
列表 | 配置的服务。请参见 defaults/main.yml 。 |
依赖
示例剧本
- hosts: all
roles:
- role: ansible-role-pmm-client
pmm_client_server_insecure_tls: true
pmm_client_services:
- type: mysql
name: "service-mysql"
flags: "--username=root --password=root"
- type: mongodb
name: "service-mongodb"
flags: "--port=27017"
测试
Debian
molecule --base-config molecule/shared/base.yml test --scenario-name debian-11
molecule --base-config molecule/shared/base.yml test --scenario-name debian-12
Ubuntu
molecule --base-config molecule/shared/base.yml test --scenario-name ubuntu-2204
molecule --base-config molecule/shared/base.yml test --scenario-name ubuntu-2404
许可证
MIT
作者信息
关于项目
Install and configure PMM client.
安装
ansible-galaxy install boutetnico.pmm_client
许可证
mit
下载
473
拥有者
System Engineer