xanmanning.helm
Ansible 角色:helm
用于安装 Helm 的 Ansible 角色。
需求
该角色已在 Ansible 2.7.0+ 上经过以下 Linux 发行版的测试:
- Amazon Linux 2
- CentOS 8
- CentOS 7
- Debian 10
- Fedora 29
- Fedora 30
- Fedora 31
- Ubuntu 18.04 LTS
声明
如果你遇到任何问题,请创建 GitHub 问题,我在空闲时间维护这个角色,所以无法保证快速修复。
:warning: 此角色仅支持 Helm v3.0.0 及以上版本。
角色变量
变量 | 描述 | 默认值 |
---|---|---|
helm_version |
使用特定版本的 Helm,例如 3.0.0 。指定 false 以获得最新版本。 |
false |
helm_install_os_dependencies |
允许角色安装操作系统依赖项。 | false |
helm_install_dir |
Helm 的安装目录。 | $HOME/bin |
helm_projects_dir |
存放 Git 中 Helm 图表的目录。指定 false 以跳过。 |
$HOME/projects |
helm_projects |
要使用 git 克隆的 Helm 图表列表。请参见备注。 |
NULL |
依赖关系
没有其他角色的依赖关系。
示例剧本
为单个用户安装的示例剧本:
- hosts: control_hosts
roles:
- { role: xanmanning.helm, helm_version: 3.0.0 }
为全局安装最新 Helm 版本的示例剧本:
---
- hosts: control_hosts
become: true
vars:
helm_install_os_dependencies: true
helm_install_dir: /opt/helm/bin
helm_projects_dir: /opt/helm/projects
roles:
- role: xanmanning.helm
关于 helm_projects
的说明
这是要克隆到项目目录中的 Git 仓库列表。 如果为空,则不会克隆任何项目。
以下是项目的示例:
helm_projects:
- name: elastic-helm-charts # 克隆到的目录名称
repo: [email protected]:elastic/helm-charts # 要克隆的仓库
update_repo: true # 始终更新本地仓库副本
version: master # 检出此版本的仓库
force: false # 丢弃现有的工作副本
key_file: "{{ ansible_user_dir }}/.ssh/id_rsa" # 用于克隆仓库的密钥文件
recursive: true # 在克隆时包含子模块
许可证
作者信息
关于项目
Ansible Role to install Helm on a system
安装
ansible-galaxy install xanmanning.helm
许可证
bsd-3-clause
下载
4.4k
拥有者
Deep in the lab...