Skip to content

Commit

Permalink
Merge pull request #34 from darkwizard242/feature/multi-arch-support
Browse files Browse the repository at this point in the history
Support multiple Architectures | Remove support for Ubuntu 18.04 and EL7
  • Loading branch information
darkwizard242 committed Jun 21, 2024
2 parents fb582d8 + 9ebc9af commit 034a28a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
strategy:
max-parallel: 10
matrix:
IMAGE: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, ubuntu-18.04, rockylinux-8, centos-7, debian-bullseye, debian-buster]
IMAGE: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, rockylinux-8, debian-bullseye, debian-buster]

steps:

Expand Down
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ Available variables are listed below (located in `defaults/main.yml`):
```yaml
flux_app: flux
flux_version: 2.3.0
flux_os: linux
flux_arch: amd64
flux_dl_url: https://github.com/fluxcd/flux2/releases/download/v{{ flux_version }}/{{ flux_app }}_{{ flux_version }}_{{ flux_os }}_{{ flux_arch }}.tar.gz
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
Expand All @@ -32,8 +40,8 @@ Variable | Description
------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------
flux_app | Defines the app to install i.e. **flux**
flux_version | Defined to dynamically fetch the desired version to install. Defaults to: **2.3.0**
flux_os | Defines os type. Defaults to: **linux**
flux_arch | Defines os architecture. Defaults to: **amd64**
flux_os | Defines os type.
flux_architecture_map | Defines os architecture.
flux_dl_url | Defines URL to download the flux binary from.
flux_bin_path | Defined to dynamically set the appropriate path to store flux binary into. Defaults to (as generally available on any user's PATH): **/usr/local/bin**
flux_file_owner | Owner for the binary file of flux.
Expand Down
14 changes: 11 additions & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@

flux_app: flux
flux_version: 2.3.0
flux_os: linux
flux_arch: amd64
flux_dl_url: https://github.com/fluxcd/flux2/releases/download/v{{ flux_version }}/{{ flux_app }}_{{ flux_version }}_{{ flux_os }}_{{ flux_arch }}.tar.gz
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
Expand Down
2 changes: 0 additions & 2 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ galaxy_info:
- noble
- jammy
- focal
- bionic
- name: Debian
versions:
- bullseye
- buster
- name: EL
versions:
- 8
- 7

galaxy_tags:
- flux
Expand Down

0 comments on commit 034a28a

Please sign in to comment.