Skip to content

Commit

Permalink
Improve nomad_curl_package variable.
Browse files Browse the repository at this point in the history
This sets an overridable default of 'curl', but for backwards
compatibility makes it curl-minimal for AlmaLinux 9.
  • Loading branch information
tpendragon committed Aug 12, 2024
1 parent 78a3846 commit 8ca1ff2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ os_supported_matrix:
## Core
nomad_debug: false

## Package configuration
nomad_curl_package: "{% if (ansible_distribution == 'AlmaLinux' and ansible_distribution_version is version('9', '>=')) %}curl-minimal{% else %}curl{% endif %}"

## Asserts
nomad_skip_ensure_all_hosts: "{{ lookup('env', 'NOMAD_SKIP_ENSURE_ALL_HOSTS') | default('false', true) }}"

Expand Down
2 changes: 1 addition & 1 deletion molecule/_shared/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ provisioner:
nomad_node_role: both
host_vars:
rockylinux-9:
minimal_curl: true
nomad_curl_package: "curl-minimal"
verifier:
name: ansible
2 changes: 1 addition & 1 deletion vars/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# File: vars/RedHat.yml - Red Hat OS variables for Nomad

nomad_os_packages:
- "{% if (ansible_distribution == 'AlmaLinux' and ansible_distribution_version is version('9', '>=')) or (minimal_curl is defined) %}curl-minimal{% else %}curl{% endif %}"
- "{{ nomad_curl_package }}"
- git
- "{% if (ansible_distribution == 'Fedora' and ansible_distribution_version is version('28', '<')) or (ansible_distribution == 'CentOS' and ansible_distribution_version
is version('8', '<')) or (ansible_distribution == 'Amazon' and ansible_distribution_version is version('3', '<')) or (ansible_distribution == 'OracleLinux' and
Expand Down

0 comments on commit 8ca1ff2

Please sign in to comment.