gantsign.helm
Ansible 角色:Helm
该角色用于下载和安装 Helm,Kubernetes 的包管理器。
要求
Ansible Core >= 2.12
Linux 发行版
Debian 家族
Debian
- Buster (10)
- Bullseye (11)
Ubuntu
- Bionic (18.04)
- Focal (20.04)
RedHat 家族
Rocky Linux
- 8
Fedora
- 35
SUSE 家族
openSUSE
- 15.5
注意:其他版本可能适用,但未经过测试。
角色变量
以下变量将改变此角色的行为(默认值如下所示):
# Helm 版本号
helm_version: '3.12.2'
# 要安装的 Helm 可执行文件的 CPU 架构
helm_architecture: 'amd64'
# 下载 Helm 的镜像
helm_mirror: 'https://get.helm.sh'
# Helm 应安装的目录
helm_install_dir: '/usr/local/share/helm'
# 存储下载的 Helm 文件的目录
helm_download_dir: "{{ x_ansible_download_dir | default(ansible_env.HOME + '/.ansible/tmp/downloads') }}"
示例剧本
- hosts: servers
roles:
- role: gantsign.helm
Zsh 的 Tab 补全
使用 Ansible
我们建议使用 gantsign.antigen 角色来启用 Helm 的 Tab 补全(每个用户都需要配置)。
- hosts: servers
roles:
- role: gantsign.helm
- role: gantsign.antigen
users:
- username: example
antigen_libraries:
- name: oh-my-zsh
antigen_bundles:
# Oh My Zsh Helm 插件
- name: helm
使用 Antigen
如果你更喜欢直接使用 Antigen,请将以下内容添加到你的 Antigen 配置中:
antigen use oh-my-zsh
antigen bundle helm
手动配置
要手动配置 Zsh,请在你的 .zshrc
中添加以下内容:
eval "$(helm completion zsh)"
来自 GantSign 的更多角色
你可以在 Ansible Galaxy 上找到 GantSign 的更多角色。
开发与测试
该项目使用以下工具:
提供了一个 Visual Studio Code 的 Dev Container 用于开发和测试此角色。
许可证
MIT
作者信息
约翰·弗里曼
GantSign 有限公司 公司编号:06109112(在英格兰注册)
关于项目
Ansible role for downloading and installing Helm the package manager for Kubernetes.
安装
ansible-galaxy install gantsign.helm
许可证
mit
下载
38k
拥有者