darkwizard242.flux

build-test release Ansible Role Maintainability Rating Reliability Rating Security Rating GitHub tag (latest SemVer) GitHub repo size

Ansible Role: flux

This role installs flux on Debian/Ubuntu and EL systems by default. flux is an open and flexible tool for continuous delivery of applications in Kubernetes, using GitOps Toolkit.

Requirements

None.

Role Variables

Here are the available settings (found in defaults/main.yml):

List of Variables:

flux_app: flux
flux_version: 2.3.0
flux_os: "{{ ansible_system | lower }}"
flux_architecture_map:
  amd64: amd64
  arm: arm64
  x86_64: amd64
  armv6l: armv6
  armv7l: armv7
  aarch64: arm64
  32-bit: "386"
  64-bit: amd64
flux_dl_url: https://github.com/fluxcd/flux2/releases/download/v{{ flux_version }}/{{ flux_app }}_{{ flux_version }}_{{ flux_os }}_{{ flux_architecture_map[ansible_architecture] }}.tar.gz
flux_bin_path: /usr/local/bin
flux_file_owner: root
flux_file_group: root
flux_file_permission_mode: '0755'

Table of Variables:

Variable Description
flux_app The application to install, here it's flux.
flux_version The version to be installed, defaults to: 2.3.0.
flux_os The type of operating system.
flux_architecture_map The architecture of the operating system.
flux_dl_url The URL to download the flux binary.
flux_bin_path The path where the flux binary will be stored, defaults to /usr/local/bin.
flux_file_owner The owner of the flux binary file.
flux_file_group The group for the flux binary file.
flux_file_permission_mode The permission level for the file, defaults to 0755.

Dependencies

None.

Example Playbook

To use the default settings for the role (which will install flux) in Ansible playbooks:

- hosts: servers
  roles:
    - darkwizard242.flux

To customize the settings (for example, to specify a different flux version):

- hosts: servers
  roles:
    - darkwizard242.flux
  vars:
    flux_version: 0.30.0

To customize the settings again (like placing the flux binary in a different location):

- hosts: servers
  roles:
    - darkwizard242.flux
  vars:
    flux_bin_path: /bin/

License

MIT

Author Information

This role was created by Ali Muhammad.

Informazioni sul progetto

Installs/Uninstalls 'flux'. Flux is an open and extensible continuous delivery solution for Kubernetes. Powered by GitOps Toolkit.

Installa
ansible-galaxy install darkwizard242.flux
Licenza
mit
Download
2.2k
Proprietario
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!