forked from pool/python-ara
- Update to 1.5.7:
UI
--
- Added a new "hosts" page to browse and search reports by host name
- Improved page HTML titles to be dynamic based on the context
- Added a note highlighting if a task has been delegated to another host
(https://github.com/ansible-community/ara/issues/282)
- Improved how long file paths or playbook names are truncated and displayed
API
---
- Added a new read-only API endpoint: /api/v1/latesthosts
It provides the latest playbook result for each host name.
Under the hood, it implements the machinery for updating the latest host
every time a host is created or deleted and includes a SQL migration to
initially populate a new database table with the latest hosts.
- Added a `delegated_to` field to results in order to record a host id to which
a task has been delegated.
- Added support for finding results delegated to a specific host:
/api/v1/results?delegated_to=<host_id>
Callback plugin
---------------
- Fixed tasks and results being recorded out of order when using "strategy: free"
(https://github.com/ansible-community/ara/issues/260)
- Added support for recording 'delegate_to' on tasks
Documentation
-------------
- Removed an unused sphinx lexer to allow recent versions of sphinx>=4
- Created a new troubleshooting guide with common issues:
https://ara.readthedocs.io/en/latest/troubleshooting.html
- Added a database relationship graph to the endpoint documentation:
OBS-URL: https://build.opensuse.org/request/show/913964
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ara?expand=0&rev=23
113 lines
3.3 KiB
RPMSpec
113 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package python-ara
|
|
#
|
|
# Copyright (c) 2021 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/
|
|
#
|
|
|
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
%if "%{flavor}" == "test"
|
|
%define psuffix -test
|
|
%bcond_without test
|
|
%else
|
|
%define psuffix %{nil}
|
|
%bcond_with test
|
|
%endif
|
|
%define skip_python2 1
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
# plugin for Ansible package
|
|
%define pythons python3
|
|
Name: python-ara
|
|
Version: 1.5.7
|
|
Release: 0
|
|
Summary: ARA Records Ansible
|
|
License: GPL-3.0-or-later
|
|
URL: https://github.com/ansible-community/ara
|
|
Source: https://files.pythonhosted.org/packages/source/a/ara/ara-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module pbr}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-cliff
|
|
Requires: python-pbr >= 2.0.0
|
|
Requires: python-requests >= 2.14.2
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
Recommends: python-Django >= 2.1.5
|
|
Recommends: python-django-cors-headers
|
|
Recommends: python-django-filter
|
|
Recommends: python-djangorestframework >= 3.9.1
|
|
Recommends: python-dynaconf
|
|
Recommends: python-whitenoise
|
|
BuildArch: noarch
|
|
%if %{with test}
|
|
BuildRequires: %{python_module Django >= 2.1.5}
|
|
BuildRequires: %{python_module ara >= %{version}}
|
|
BuildRequires: %{python_module django-cors-headers}
|
|
BuildRequires: %{python_module django-filter}
|
|
BuildRequires: %{python_module django-health-check}
|
|
BuildRequires: %{python_module djangorestframework >= 3.9.1}
|
|
BuildRequires: %{python_module dynaconf}
|
|
BuildRequires: %{python_module factory_boy}
|
|
BuildRequires: %{python_module pyaml}
|
|
BuildRequires: %{python_module pygments}
|
|
BuildRequires: %{python_module tzlocal}
|
|
BuildRequires: %{python_module whitenoise}
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
ARA saves playbook results to a local or remote database by using an
|
|
Ansible callback plugin and provides an API to integrate this data in
|
|
tools and interfaces.
|
|
|
|
%prep
|
|
%setup -q -n ara-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%if !%{with test}
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/ara
|
|
%python_clone -a %{buildroot}%{_bindir}/ara-manage
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%endif
|
|
|
|
%check
|
|
%if %{with test}
|
|
ara-manage test ara
|
|
%endif
|
|
|
|
%if !%{with test}
|
|
%post
|
|
%python_install_alternative ara
|
|
%python_install_alternative ara-manage
|
|
|
|
%postun
|
|
%python_uninstall_alternative ara
|
|
%python_uninstall_alternative ara-manage
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%python_alternative %{_bindir}/ara
|
|
%python_alternative %{_bindir}/ara-manage
|
|
%{python_sitelib}/*
|
|
%endif
|
|
|
|
%changelog
|