Skip to content

Commit

Permalink
Merge pull request #5 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 authored Jun 27, 2024
2 parents b65d7dd + bccb4c0 commit 43195ff
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 20 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
36 changes: 22 additions & 14 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
mkcert_app: mkcert
mkcert_version: 1.4.4
mkcert_os: linux
mkcert_arch: amd64
mkcert_dl_url: https://github.com/FiloSottile/{{ mkcert_app }}/releases/download/v{{ mkcert_version }}/{{ mkcert_app }}-v{{ mkcert_version }}-{{ mkcert_os }}-{{ mkcert_arch }}
mkcert_os: "{{ ansible_system | lower }}"
mkcert_architecture_map:
amd64: amd64
arm: arm64
x86_64: amd64
armv6l: armv6
armv7l: armv7
aarch64: arm64
32-bit: "386"
64-bit: amd64
mkcert_dl_url: https://github.com/FiloSottile/{{ mkcert_app }}/releases/download/v{{ mkcert_version }}/{{ mkcert_app }}-v{{ mkcert_version }}-{{ mkcert_os }}-{{ mkcert_architecture_map[ansible_architecture] }}
mkcert_bin_path: /usr/local/bin
mkcert_file_owner: root
mkcert_file_group: root
Expand All @@ -28,17 +36,17 @@ mkcert_file_mode: '0755'
### Variables table:
Variable | Description
----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------
mkcert_app | Defines the app to install i.e. **mkcert**
mkcert_version | Defined to dynamically fetch the desired version to install. Defaults to: **1.4.4**
mkcert_os | Defines os type. Used for obtaining the correct type of binaries based on OS type. Defaults to: **linux**
mkcert_arch | Defines os architecture. Used to set the correct type of binaries based on OS System Architecture. Defaults to: **amd64**
mkcert_dl_url | Defines URL to download the mkcert binary from.
mkcert_bin_path | Defined to dynamically set the appropriate path to store mkcert binary into. Defaults to (as generally available on any user's PATH): **/usr/local/bin**
mkcert_file_owner | Owner for the binary file of mkcert.
mkcert_file_group | Group for the binary file of mkcert.
mkcert_file_mode | Mode for the binary file of mkcert.
Variable | Description
----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------
mkcert_app | Defines the app to install i.e. **mkcert**
mkcert_version | Defined to dynamically fetch the desired version to install. Defaults to: **1.4.4**
mkcert_os | Defines os type. Used for obtaining the correct type of binaries based on OS type.
mkcert_architecture_map | Defines os architecture. Used to set the correct type of binaries based on OS System Architecture.
mkcert_dl_url | Defines URL to download the mkcert binary from.
mkcert_bin_path | Defined to dynamically set the appropriate path to store mkcert binary into. Defaults to (as generally available on any user's PATH): **/usr/local/bin**
mkcert_file_owner | Owner for the binary file of mkcert.
mkcert_file_group | Group for the binary file of mkcert.
mkcert_file_mode | Mode for the binary file of mkcert.
## Dependencies
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 @@

mkcert_app: mkcert
mkcert_version: 1.4.4
mkcert_os: linux
mkcert_arch: amd64
mkcert_dl_url: https://github.com/FiloSottile/{{ mkcert_app }}/releases/download/v{{ mkcert_version }}/{{ mkcert_app }}-v{{ mkcert_version }}-{{ mkcert_os }}-{{ mkcert_arch }}
mkcert_os: "{{ ansible_system | lower }}"
mkcert_architecture_map:
amd64: amd64
arm: arm64
x86_64: amd64
armv6l: armv6
armv7l: armv7
aarch64: arm64
32-bit: "386"
64-bit: amd64
mkcert_dl_url: https://github.com/FiloSottile/{{ mkcert_app }}/releases/download/v{{ mkcert_version }}/{{ mkcert_app }}-v{{ mkcert_version }}-{{ mkcert_os }}-{{ mkcert_architecture_map[ansible_architecture] }}
mkcert_bin_path: /usr/local/bin
mkcert_file_owner: root
mkcert_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:
- mkcert
Expand Down

0 comments on commit 43195ff

Please sign in to comment.