Johannes Kastl 2024-10-16 11:25:21 +00:00 committed by Git OBS Bridge
commit 480d7e6f8f
6 changed files with 349 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

4
_service Normal file
View File

@ -0,0 +1,4 @@
<services>
<service name="download_files" mode="manual">
</service>
</services>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:82d02b2548830f37a53517b65c823c4af371069406c7d213b5c9041d45e0c5b6
size 148802

205
ansible-runner.changes Normal file
View File

@ -0,0 +1,205 @@
-------------------------------------------------------------------
Wed Oct 16 11:19:09 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- fix checks
-------------------------------------------------------------------
Wed Aug 28 08:30:34 UTC 2024 - pgajdos@suse.com
- does not require six anymore (a51c8b2)
-------------------------------------------------------------------
Tue Aug 13 11:21:40 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- ignore test_get_role_list test
-------------------------------------------------------------------
Sun Jun 9 16:25:46 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Use pytest-xdist in order to avoid non-terminating processes in
tests
- Fix files section and version info (setuptools_scm required to
build)
- Simplify python flavor declaration
-------------------------------------------------------------------
Sat May 18 08:39:38 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 2.4.0:
* Bug Fixes
- Honor inventory filepath by @Akasurde in #1065
- Ensure that UTC ISO8601 datetimes include timezone info by
@sivel in #1238
- Fix for non-str ident by @Shrews in #1268
- Pass inventory directory path instead of file path when using
containerization by @christophert in #1304
- Validate inventory from CLI early by @Shrews in #1307
- Allow shutil to copy into existing isolation directory by
@christophert in #1311
- Fix invalid inventory with relative pvt data dir by @Shrews
in #1316
- Add lib symlink to bwrap call by @christophert in #1312
-------------------------------------------------------------------
Sat Mar 16 14:25:23 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 2.3.6:
* Untag instead of force remove image for podman. This makes the
|worker cleanup| subcommand behave similarly with either docker
or podman.
(#1342 <https://github.com/ansible/ansible-runner/pull/1342>)
-------------------------------------------------------------------
Fri Mar 8 17:20:13 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- ignore two more flaky tests
-------------------------------------------------------------------
Wed Feb 14 20:22:04 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 2.3.5:
* fix pexpect child shutdown race (#1331) by @TheRealHaoLiu in
#1336
-------------------------------------------------------------------
Thu Sep 7 07:34:22 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- update to 2.3.4:
* [2.3 backport] Give more detail when we cannot process a
non-JSON streamed line (#1186) by @AlanCoding in
https://github.com/ansible/ansible-runner/pull/1258
-------------------------------------------------------------------
Wed May 31 05:22:06 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- update to 2.3.3:
* [backport][release_2.3] Add `python_requires = >= 3.8` (#1206)
by @Shrews in
https://github.com/ansible/ansible-runner/pull/1212
* [backport][release_2.3] Add license and classifiers metadata
(#1213) by @Shrews in
https://github.com/ansible/ansible-runner/pull/1214
* [2.3 backport] Remove pkg_resources use (#1224) by
@nitzmahone in
https://github.com/ansible/ansible-runner/pull/1230
-------------------------------------------------------------------
Mon May 15 18:34:56 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- modify %if-condition to allow building for python3.10 or
python3.11 on SLES15
-------------------------------------------------------------------
Fri May 5 07:13:27 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- change python version on Leap15/SLES15 to python3.11 to use the
new stack supported by SUSE
-------------------------------------------------------------------
Thu Apr 20 21:01:20 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- LARGE update to 2.3.2
changelogs:
* https://github.com/ansible/ansible-runner/releases/tag/1.4.8
* https://github.com/ansible/ansible-runner/releases/tag/1.4.9
* https://github.com/ansible/ansible-runner/releases/tag/2.0.0
* https://github.com/ansible/ansible-runner/releases/tag/2.0.1
* https://github.com/ansible/ansible-runner/releases/tag/2.0.2
* https://github.com/ansible/ansible-runner/releases/tag/2.0.3
* https://github.com/ansible/ansible-runner/releases/tag/2.0.4
* https://github.com/ansible/ansible-runner/releases/tag/2.1.1
* https://github.com/ansible/ansible-runner/releases/tag/2.1.2
* https://github.com/ansible/ansible-runner/releases/tag/2.1.3
* https://github.com/ansible/ansible-runner/releases/tag/2.1.4
* https://github.com/ansible/ansible-runner/releases/tag/2.2.0
* https://github.com/ansible/ansible-runner/releases/tag/2.2.1
* https://github.com/ansible/ansible-runner/releases/tag/2.2.2
* https://github.com/ansible/ansible-runner/releases/tag/2.3.0
* https://github.com/ansible/ansible-runner/releases/tag/2.3.1
* https://github.com/ansible/ansible-runner/releases/tag/2.3.2
-------------------------------------------------------------------
Tue Apr 26 11:00:44 UTC 2022 - pgajdos@suse.com
- do not require python-mock: the testsuite is not running anyway
and newer testsuite (e. g. 2.1.3) will not use mock at all
https://trello.com/c/S6eADbii/64-remove-python-mock
-------------------------------------------------------------------
Sun May 23 17:43:04 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
- Update to version 1.4.7
* Fixed an issue where byte sequences in the output that are not
interpretable as UTF-8 would break the job execution.
* Fixed a bug that broke Ansible playbook execution prior to
version 2.8 of Ansible
* Fix an issue with --process_isoloation_*_ paths parsing cli args
* Switch extravar format so we can support more than just string
types
* Make sure job events folder is created earlier to prevent
errors when using immediately after starting a runner job
* Annotate all runner_on events with start/end/duration times
- Drop 0001-Use-the-correct-python-executable-for-tests.patch
-------------------------------------------------------------------
Thu Feb 20 15:39:49 UTC 2020 - Lars Vogdt <lars@linux-schulserver.de>
- update to 1.4.4:
+ Fix some unicode issues when using command line override on python 2.7
+ Fix an issue with file handles not closing on the pexpect pty
+ Fix missing ssh_key parameter from module interface
+ Fix a bug where the ssh agent process would hang around after
process isolation exit causing a failure to remove temporary directories
1.4.2 (2019-10-04)
+ Reverted ansible-runner --version to print a semantic version number
1.4.1 (2019-10-03)
+ Fixed a bug that prevented ANSIBLE_HOST_KEY_CHECKING from being respected
1.4.0 (2019-09-20)
+ Added changed count to stats data
+ Added initial support for gathering performance statistics using
the system's cgroup interface
+ Fix command line args override missing from module run kwargs
+ Omit inventory argument entirely if no inventory content is supplied
this allows ansible to pick up inventory from implicit locations and ansible.cfg
+ Fix an issue where Runner wouldn't properly clean up process
isolation temporary directories
+ Fix error generated if unsafe parameter is used on vars prompt tasks
+ Fix an issue where additional callback plugins weren't being
used when defined in the environment
+ Fix an issue where Runner would stop returning events after the
playbook finished when using run_async
+ Fix an issue where unicode in task data would cause Runner to fail
+ Fix issues using vaulted data that would cause Runner to fail
+ Fix an issue where artifact-dir was only allowed in ad-hoc mode
- run fdupes
- remove upstreamed patch:
0001-Use-the-correct-python-executable-for-tests.patch
- disable tests again for now
-------------------------------------------------------------------
Tue Jun 4 12:14:09 UTC 2019 - Thomas Bechtold <tbechtold@suse.com>
- update to 1.3.4:
* make class __name__ match Ansible expectation
* bundle six.ensure_str to avoid pinning to a new six version
* Updating for 1.3.4 release
* Adopt modified upstream packaging
* Add missing lockfile RPM dependency
* Fix an issue with missing options
* port old callback tests to integration folder
* Fix missing toplevel host events docs issue
* Move integration data folder, add new test
- fix license - ansible-runner also contains code licensed under
GPL-3.0-or-later
-------------------------------------------------------------------
Sat Apr 27 13:06:16 UTC 2019 - Thomas Bechtold <tbechtold@suse.com>
- enable tests in %check
- add 0001-Use-the-correct-python-executable-for-tests.patch to fix
tests with python3
-------------------------------------------------------------------
Wed Apr 24 06:28:48 UTC 2019 - Thomas Bechtold <tbechtold@suse.com>
- Initial packaging (version 1.3.3)

113
ansible-runner.spec Normal file
View File

@ -0,0 +1,113 @@
#
# spec file for package ansible-runner
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define module_name ansible-runner
%{?sle15_python_module_pythons}
%if 0%{?suse_version} < 1550
# Leap15, SLES15: There is always only one entry in pythons
%define ansible_python %{pythons}
%define ansible_python_sitelib %{expand:%%%{ansible_python}_sitelib}
%else
# Tumbleweed
%define pythons python3
%define ansible_python python3
%define ansible_python_sitelib %python3_sitelib
%endif
Name: ansible-runner
Version: 2.4.0
Release: 0
Summary: Run ansible-playbook inside an execution environment
License: Apache-2.0
URL: https://github.com/ansible/%{module_name}
Source: https://files.pythonhosted.org/packages/source/a/%{module_name}/%{module_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python-rpm-macros
# https://github.com/ansible/ansible-runner/blob/devel/setup.cfg#L31
BuildRequires: %{ansible_python}-base >= 3.9
BuildRequires: %{ansible_python}-setuptools
BuildRequires: %{ansible_python}-setuptools_scm
BuildRequires: %{ansible_python}-pip
BuildRequires: %{ansible_python}-wheel
BuildRequires: %{ansible_python}-pbr
# https://github.com/ansible/ansible-runner/blob/devel/setup.cfg#L32
BuildRequires: ansible-core
BuildRequires: %{ansible_python}-packaging
BuildRequires: %{ansible_python}-pexpect >= 4.5
BuildRequires: %{ansible_python}-python-daemon
BuildRequires: %{ansible_python}-PyYAML
# https://github.com/ansible/ansible-runner/blob/devel/setup.cfg#L38
# importlib-metadata not required, as we are using python3.10 or higher
# SECTION test requirements
# https://github.com/ansible/ansible-runner/blob/devel/test/requirements.txt
BuildRequires: %{ansible_python}-mypy
BuildRequires: %{ansible_python}-pytest
BuildRequires: %{ansible_python}-pytest-mock
BuildRequires: %{ansible_python}-pytest-timeout
BuildRequires: %{ansible_python}-pytest-xdist
BuildRequires: %{ansible_python}-types-PyYAML
# /SECTION
BuildRequires: fdupes
# https://github.com/ansible/ansible-runner/blob/devel/setup.cfg#L32
Requires: %{ansible_python}-packaging
Requires: %{ansible_python}-pexpect >= 4.5
Requires: %{ansible_python}-python-daemon
Requires: %{ansible_python}-PyYAML
# https://github.com/ansible/ansible-runner/blob/devel/setup.cfg#L38
# importlib-metadata not required, as we are using python3.10 or higher
%description
Consistent Ansible Python API and CLI with container and process isolation runtime capabilities
%prep
%setup -q -n %{module_name}-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%fdupes %{buildroot}%{ansible_python_sitelib}
%check
# disable coverage tests
sed -i -e '/cov/d' -e '/color/d' pytest.ini
# Ignored tests, upstream bug report:
# https://github.com/ansible/ansible-runner/issues/1237
#
IGNORED_TESTS='test_callback_plugin_task_args_leak[playbook0] or '
IGNORED_TESTS+='test_resolved_actions[playbook0] or '
IGNORED_TESTS+='test_playbook_on_stats_summary_fields or '
IGNORED_TESTS+='test_multiline_blank_write[pexpect] or '
# flaky tests
IGNORED_TESTS+='test_run_command_long_running or '
IGNORED_TESTS+='test_run_command_long_running_children or '
IGNORED_TESTS+='test_password_prompt or '
IGNORED_TESTS+='test_get_role_list'
export PATH=%{buildroot}%{_bindir}:$PATH
%pytest -n auto -k "not ($IGNORED_TESTS)"
%files
%doc README.md
%license LICENSE.md
%{_bindir}/%{module_name}
%{ansible_python_sitelib}/ansible_runner
%{ansible_python_sitelib}/ansible_runner-%{version}.dist-info
%changelog