Replace FreeBSD 13.3 with FreeBSD 13.5 (#85534)

* ansible-test - Replace FreeBSD 13.3 with 13.4 (#84236)

* ansible-test - Replace FreeBSD 13.3 with 13.4
* ansible-test - Fix typos in bootstrap.sh
* Skip libfaketime on FreeBSD except FreeBSD 14

(cherry picked from commit a98801903d)

* ansible-test - Replace FreeBSD 13.4 with 13.5 (#84812)

(cherry picked from commit 4efb01c2f3)

* ansible-test - Use OS packages on FreeBSD 13.5 (#85530)

(cherry picked from commit cdb7af094b)
pull/85548/head
Matt Clay 4 months ago committed by GitHub
parent e1d5bb0bca
commit 5ad66656c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -85,8 +85,8 @@ stages:
test: rhel/9.3@3.11 test: rhel/9.3@3.11
- name: RHEL 10.0 - name: RHEL 10.0
test: rhel/10.0 test: rhel/10.0
- name: FreeBSD 13.3 - name: FreeBSD 13.5
test: freebsd/13.3 test: freebsd/13.5
- name: FreeBSD 14.1 - name: FreeBSD 14.1
test: freebsd/14.1 test: freebsd/14.1
groups: groups:
@ -101,8 +101,8 @@ stages:
test: rhel/9.3 test: rhel/9.3
- name: RHEL 10.0 - name: RHEL 10.0
test: rhel/10.0 test: rhel/10.0
- name: FreeBSD 13.3 - name: FreeBSD 13.5
test: freebsd/13.3 test: freebsd/13.5
- name: FreeBSD 14.1 - name: FreeBSD 14.1
test: freebsd/14.1 test: freebsd/14.1
groups: groups:

@ -0,0 +1,2 @@
minor_changes:
- ansible-test - Use OS packages to satisfy controller requirements on FreeBSD 13.5 during managed instance bootstrapping.

@ -0,0 +1,2 @@
minor_changes:
- ansible-test - Replace remote FreeBSD 13.3 with 13.5.

@ -1 +1,2 @@
remote_dir: "{{ remote_tmp_dir }}" remote_dir: "{{ remote_tmp_dir }}"
faketime_pkg: libfaketime

@ -7,6 +7,7 @@
vars: vars:
search: search:
files: files:
- '{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version }}.yml'
- '{{ ansible_distribution | lower }}.yml' - '{{ ansible_distribution | lower }}.yml'
- '{{ ansible_os_family | lower }}.yml' - '{{ ansible_os_family | lower }}.yml'
- '{{ ansible_system | lower }}.yml' - '{{ ansible_system | lower }}.yml'

@ -0,0 +1,4 @@
cron_pkg:
cron_service: cron
list_pkg_files: pkg info --list-files
faketime_pkg: libfaketime

@ -1,3 +1,4 @@
cron_pkg: cron_pkg:
cron_service: cron cron_service: cron
list_pkg_files: pkg info --list-files list_pkg_files: pkg info --list-files
faketime_pkg: ~

@ -2,7 +2,7 @@ alpine/3.19 python=3.11 become=doas_sudo provider=aws arch=x86_64
alpine become=doas_sudo provider=aws arch=x86_64 alpine become=doas_sudo provider=aws arch=x86_64
fedora/39 python=3.12 become=sudo provider=aws arch=x86_64 fedora/39 python=3.12 become=sudo provider=aws arch=x86_64
fedora become=sudo provider=aws arch=x86_64 fedora become=sudo provider=aws arch=x86_64
freebsd/13.3 python=3.9,3.11 python_dir=/usr/local/bin become=su_sudo provider=aws arch=x86_64 freebsd/13.5 python=3.11 python_dir=/usr/local/bin become=su_sudo provider=aws arch=x86_64
freebsd/14.1 python=3.9,3.11 python_dir=/usr/local/bin become=su_sudo provider=aws arch=x86_64 freebsd/14.1 python=3.9,3.11 python_dir=/usr/local/bin become=su_sudo provider=aws arch=x86_64
freebsd python_dir=/usr/local/bin become=su_sudo provider=aws arch=x86_64 freebsd python_dir=/usr/local/bin become=su_sudo provider=aws arch=x86_64
macos/14.3 python=3.11 python_dir=/usr/local/bin become=sudo provider=parallels arch=x86_64 macos/14.3 python=3.11 python_dir=/usr/local/bin become=sudo provider=parallels arch=x86_64

@ -26,13 +26,13 @@ install_ssh_keys()
echo "${ssh_private_key}" > "${ssh_private_key_path}" echo "${ssh_private_key}" > "${ssh_private_key_path}"
# add public key to authorized_keys # add public key to authorized_keys
authoried_keys_path="${HOME}/.ssh/authorized_keys" authorized_keys_path="${HOME}/.ssh/authorized_keys"
# the existing file is overwritten to avoid conflicts (ex: RHEL on EC2 blocks root login) # the existing file is overwritten to avoid conflicts (ex: RHEL on EC2 blocks root login)
cat "${public_key_path}" > "${authoried_keys_path}" cat "${public_key_path}" > "${authorized_keys_path}"
chmod 0600 "${authoried_keys_path}" chmod 0600 "${authorized_keys_path}"
# add localhost's server keys to known_hosts # add localhost server keys to known_hosts
known_hosts_path="${HOME}/.ssh/known_hosts" known_hosts_path="${HOME}/.ssh/known_hosts"
for key in /etc/ssh/ssh_host_*_key.pub; do for key in /etc/ssh/ssh_host_*_key.pub; do
@ -162,22 +162,14 @@ bootstrap_remote_freebsd()
if [ "${controller}" ]; then if [ "${controller}" ]; then
jinja2_pkg="py${python_package_version}-jinja2" jinja2_pkg="py${python_package_version}-jinja2"
cryptography_pkg="py${python_package_version}-cryptography" cryptography_pkg="py${python_package_version}-cryptography"
pyyaml_pkg="py${python_package_version}-yaml" pyyaml_pkg="py${python_package_version}-pyyaml"
packaging_pkg="py${python_package_version}-packaging" packaging_pkg="py${python_package_version}-packaging"
# Declare platform/python version combinations which do not have supporting OS packages available. # Declare platform/python version combinations which do not have supporting OS packages available.
# For these combinations ansible-test will use pip to install the requirements instead. # For these combinations ansible-test will use pip to install the requirements instead.
case "${platform_version}/${python_version}" in case "${platform_version}/${python_version}" in
13.3/3.9) 13.5/3.11)
# defaults above 'just work'TM # defaults available
;;
13.3/3.11)
jinja2_pkg="" # not available
cryptography_pkg="" # not available
pyyaml_pkg="" # not available
;;
14.1/3.9)
# defaults above 'just work'TM
;; ;;
14.1/3.11) 14.1/3.11)
cryptography_pkg="" # not available cryptography_pkg="" # not available

Loading…
Cancel
Save