darkwizard242.helmfile
Ansible角色:helmfile
该角色用于在Debian/Ubuntu和EL系统上安装(默认情况下)helmfile。
需求
无。
角色变量
可用变量如下所示(位于defaults/main.yml
中):
变量列表:
helmfile_app: helmfile
helmfile_version: 0.167.1
helmfile_os: "{{ ansible_system | lower }}"
helmfile_architecture_map:
amd64: amd64
arm: arm64
x86_64: amd64
armv6l: armv6
armv7l: armv7
aarch64: arm64
32-bit: "386"
64-bit: amd64
helmfile_dl_url: https://github.com/helmfile/{{ helmfile_app }}/releases/download/v{{ helmfile_version }}/{{ helmfile_app }}_{{ helmfile_version }}_{{ helmfile_os }}_{{ helmfile_architecture_map[ansible_architecture] }}.tar.gz
helmfile_bin_path: /usr/local/bin
helmfile_file_owner: root
helmfile_file_group: root
helmfile_file_mode: '0755'
变量表:
变量 | 描述 |
---|---|
helmfile_app | 定义要安装的应用程序,即helmfile |
helmfile_version | 用于动态获取所需安装版本。 默认为:0.167.1 |
helmfile_os | 定义操作系统类型。 用于根据操作系统类型获取正确类型的二进制文件。 |
helmfile_architecture_map | 定义操作系统架构。 用于根据操作系统架构设置正确类型的二进制文件。 |
helmfile_dl_url | 定义从中下载helmfile二进制文件的URL。 |
helmfile_bin_path | 动态设置存储helmfile二进制文件的适当路径。 默认为(在任何用户的PATH中普遍可用):**/usr/local/bin** |
helmfile_file_owner | helmfile二进制文件的所有者。 |
helmfile_file_group | helmfile二进制文件的组。 |
helmfile_file_mode | helmfile二进制文件的模式。 |
依赖项
无
示例剧本
用于安德森剧本中角色的默认行为(即安装helmfile)。
- hosts: servers
roles:
- darkwizard242.helmfile
用于在安德森剧本中自定义角色行为(即指定所需的helmfile版本)。
- hosts: servers
roles:
- darkwizard242.helmfile
vars:
helmfile_version: 0.163.0
用于在安德森剧本中自定义角色行为(即将helmfile包的二进制文件放置在不同的位置)。
- hosts: servers
roles:
- darkwizard242.helmfile
vars:
helmfile_bin_path: /bin/
许可证
作者信息
此角色由Ali Muhammad创建。
关于项目
Installs/Uninstalls 'helmfile', declarative spec for deploying helmcharts.
安装
ansible-galaxy install darkwizard242.helmfile
许可证
mit
下载
7.7k
拥有者
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!