[ansible-test] add freebsd/13.0 remote (#74328)

Change:
- FreeBSD 13.0 was released on the 13th, add it to ansible-test.

Test Plan:
- ci_complete

Signed-off-by: Rick Elrod <rick@elrod.me>
This commit is contained in:
Rick Elrod 2021-04-21 15:13:41 -05:00 committed by GitHub
parent fdbef02923
commit 738132da95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 8 deletions

View file

@ -95,10 +95,10 @@ stages:
test: rhel/8.3@3.6
- name: RHEL 8.3 py38
test: rhel/8.3@3.8
- name: FreeBSD 11.4
test: freebsd/11.4
- name: FreeBSD 12.2
test: freebsd/12.2
- name: FreeBSD 13.0
test: freebsd/13.0
groups:
- 1
- 2
@ -174,10 +174,10 @@ stages:
test: rhel/8.3@3.6
- name: RHEL 8.3 py38
test: rhel/8.3@3.8
- name: FreeBSD 11.4
test: freebsd/11.4
- name: FreeBSD 12.2
test: freebsd/12.2
- name: FreeBSD 13.0
test: freebsd/13.0
- stage: Incidental_Docker
displayName: Incidental Docker
dependsOn: []

View file

@ -0,0 +1,2 @@
minor_changes:
- ansible-test - add freebsd/13.0 as a remote option.

View file

@ -15,7 +15,7 @@ ansible-playbook from_handlers.yml -i inventory.handlers -v "$@" --tags scenario
ansible-playbook test_listening_handlers.yml -i inventory.handlers -v "$@"
[ "$(ansible-playbook test_handlers.yml -i inventory.handlers -v "$@" --tags scenario2 -l A \
| grep -E -o 'RUNNING HANDLER \[test_handlers : .*?]')" = "RUNNING HANDLER [test_handlers : test handler]" ]
| grep -E -o 'RUNNING HANDLER \[test_handlers : .*]')" = "RUNNING HANDLER [test_handlers : test handler]" ]
# Test forcing handlers using the linear and free strategy
for strategy in linear free; do
@ -55,13 +55,13 @@ for strategy in linear free; do
done
[ "$(ansible-playbook test_handlers_include.yml -i ../../inventory -v "$@" --tags playbook_include_handlers \
| grep -E -o 'RUNNING HANDLER \[.*?]')" = "RUNNING HANDLER [test handler]" ]
| grep -E -o 'RUNNING HANDLER \[.*]')" = "RUNNING HANDLER [test handler]" ]
[ "$(ansible-playbook test_handlers_include.yml -i ../../inventory -v "$@" --tags role_include_handlers \
| grep -E -o 'RUNNING HANDLER \[test_handlers_include : .*?]')" = "RUNNING HANDLER [test_handlers_include : test handler]" ]
| grep -E -o 'RUNNING HANDLER \[test_handlers_include : .*]')" = "RUNNING HANDLER [test_handlers_include : test handler]" ]
[ "$(ansible-playbook test_handlers_include_role.yml -i ../../inventory -v "$@" \
| grep -E -o 'RUNNING HANDLER \[test_handlers_include_role : .*?]')" = "RUNNING HANDLER [test_handlers_include_role : test handler]" ]
| grep -E -o 'RUNNING HANDLER \[test_handlers_include_role : .*]')" = "RUNNING HANDLER [test_handlers_include_role : test handler]" ]
# Notify handler listen
ansible-playbook test_handlers_listen.yml -i inventory.handlers -v "$@"

View file

@ -0,0 +1,6 @@
- name: Setup remote constraints
include_tasks: setup-remote-constraints.yml
- name: Install Paramiko for Python 2 on FreeBSD 13
pip: # no package in pkg, just use pip
name: paramiko
extra_args: "-c {{ remote_constraints }}"

View file

@ -0,0 +1,3 @@
- name: Install Paramiko for Python 3 on FreeBSD 13.0
pkgng:
name: py37-paramiko

View file

@ -0,0 +1,4 @@
- name: Uninstall Paramiko for Python 2 on FreeBSD 13
pip:
name: paramiko
state: absent

View file

@ -0,0 +1,4 @@
- name: Uninstall Paramiko for Python 3 on FreeBSD 13.0
pkgng:
name: py37-paramiko
state: absent

View file

@ -1,5 +1,6 @@
freebsd/11.4 python=2.7,3.7,3.8 python_dir=/usr/local/bin
freebsd/12.2 python=3.7,2.7,3.8 python_dir=/usr/local/bin
freebsd/13.0 python=3.7,2.7,3.8,3.9 python_dir=/usr/local/bin
macos/11.1 python=3.9 python_dir=/usr/local/bin
rhel/7.9 python=2.7
rhel/8.3 python=3.6,3.8