- Update to version 1.13.1

https://github.com/freeipa/ansible-freeipa/releases/tag/v1.13.0
  https://github.com/freeipa/ansible-freeipa/releases/tag/v1.13.1
  Resolves: RHEL-35566
- New inventory plugin
  Resolves: RHEL-38947
- Enable batch command as backend
  Resolves: RHEL-38944
- New collection sub package
  Resolves: RHEL-38930
This commit is contained in:
Thomas Woerner 2024-05-28 15:02:46 +02:00
parent 613d5a1d92
commit 2aca1c96c6
2 changed files with 41 additions and 53 deletions

View File

@ -5,18 +5,28 @@
%global python %{__python3}
%global collection_namespace freeipa
%global collection_name ansible_freeipa
%global ansible_collections_dir %{_datadir}/ansible/collections/ansible_collections
Summary: Roles and playbooks to deploy FreeIPA servers, replicas and clients
Name: ansible-freeipa
Version: 1.12.1
Version: 1.13.1
Release: 1%{?dist}
URL: https://github.com/freeipa/ansible-freeipa
License: GPL-3.0-or-later
Source: https://github.com/freeipa/ansible-freeipa/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: ansible-core
BuildRequires: python
Provides: ansible-collection-%{collection_namespace}-%{collection_name} = %{version}-%{release}
Provides: ansible-freeipa-tests
Obsoletes: ansible-freeipa-tests < 1.12.1-2
%description
Ansible roles to install and uninstall FreeIPA servers, replicas and clients,
roles for backups and SmartCard configuration, modules for management and also
Ansible collection %{collection_namespace}.%{collection_name} providing
roles to install and uninstall FreeIPA servers, replicas and clients, roles
for backups and SmartCard configuration, modules for management and also
playbooks for all roles and modules.
Note: The Ansible playbooks and roles require a configured Ansible environment
@ -31,6 +41,7 @@ Features
- Repair mode for clients
- Backup and restore, also to and from controller
- Smartcard setup for servers and clients
- Inventory plugin freeipa
- Modules for automembership rule management
- Modules for automount key management
- Modules for automount location management
@ -104,17 +115,6 @@ Work is planned to have a new method to handle CSR for external signed CAs in
a separate step before starting the server installation.
%package tests
Summary: ansible-freeipa tests
Requires: %{name} = %{version}-%{release}
%description tests
ansible-freeipa tests.
Please have a look at %{_datadir}/ansible-freeipa/requirements-tests.txt
to get the needed requrements to run the tests.
%prep
%setup -q
# Do not create backup files with patches
@ -139,50 +139,38 @@ done
%build
%install
install -m 755 -d %{buildroot}%{_datadir}/ansible/roles/
cp -rp roles/ipaserver %{buildroot}%{_datadir}/ansible/roles/
cp -rp roles/ipaserver/README.md README-server.md
cp -rp roles/ipareplica %{buildroot}%{_datadir}/ansible/roles/
cp -rp roles/ipareplica/README.md README-replica.md
cp -rp roles/ipaclient %{buildroot}%{_datadir}/ansible/roles/
cp -rp roles/ipaclient/README.md README-client.md
cp -rp roles/ipabackup %{buildroot}%{_datadir}/ansible/roles/
cp -rp roles/ipabackup/README.md README-backup.md
cp -rp roles/ipasmartcard_server %{buildroot}%{_datadir}/ansible/roles/
cp -rp roles/ipasmartcard_server/README.md README-smartcard_server.md
cp -rp roles/ipasmartcard_client %{buildroot}%{_datadir}/ansible/roles/
cp -rp roles/ipasmartcard_client/README.md README-smartcard_client.md
install -m 755 -d %{buildroot}%{_datadir}/ansible/plugins/
cp -rp plugins/* %{buildroot}%{_datadir}/ansible/plugins/
# Create collection and install to %{buildroot}%{ansible_collections_dir}
# ansible-galaxy collection install creates ansible_collections directory
# automatically in given path, therefore /..
utils/build-galaxy-release.sh -o "%{version}" -p %{buildroot}%{ansible_collections_dir}/.. %{collection_namespace} %{collection_name}
install -m 755 -d %{buildroot}%{_datadir}/ansible-freeipa
cp requirements*.txt %{buildroot}%{_datadir}/ansible-freeipa/
cp -rp utils %{buildroot}%{_datadir}/ansible-freeipa/
install -m 755 -d %{buildroot}%{_datadir}/ansible-freeipa/tests
cp -rp tests %{buildroot}%{_datadir}/ansible-freeipa/
cp %{buildroot}/%{ansible_collections_dir}/%{collection_namespace}/%{collection_name}/README.md .
%files
%license COPYING
%{_datadir}/ansible/roles/ipaserver
%{_datadir}/ansible/roles/ipareplica
%{_datadir}/ansible/roles/ipaclient
%{_datadir}/ansible/roles/ipabackup
%{_datadir}/ansible/roles/ipasmartcard_server
%{_datadir}/ansible/roles/ipasmartcard_client
%{_datadir}/ansible/plugins/doc_fragments
%{_datadir}/ansible/plugins/module_utils
%{_datadir}/ansible/plugins/modules
%doc README*.md
%doc playbooks
%{_datadir}/ansible-freeipa/requirements.txt
%{_datadir}/ansible-freeipa/requirements-dev.txt
%{_datadir}/ansible-freeipa/utils
%files tests
%{_datadir}/ansible-freeipa/tests
%{_datadir}/ansible-freeipa/requirements-tests.txt
%doc README.md
%dir %{ansible_collections_dir}/%{collection_namespace}
%{ansible_collections_dir}/%{collection_namespace}/%{collection_name}
%changelog
* Tue May 28 2024 Thomas Woerner <twoerner@redhat.com> - 1.13.1-1
- Update to version 1.13.1
https://github.com/freeipa/ansible-freeipa/releases/tag/v1.13.0
https://github.com/freeipa/ansible-freeipa/releases/tag/v1.13.1
Resolves: RHEL-35566
- New inventory plugin
Resolves: RHEL-38947
- Enable batch command as backend
Resolves: RHEL-38944
- New collection sub package
Resolves: RHEL-38930
* Thu Apr 4 2024 Thomas Woerner <twoerner@redhat.com> - 1.12.1-2
- The package now provides the Ansible collection freeipa.ansible_freeipa
- New build requires for ansible-core and python
- The tests are part of the collection, new provides and obsoletes for the
-tests sub package
* Mon Feb 12 2024 Thomas Woerner <twoerner@redhat.com> - 1.12.1-1
- Update to version 1.12.1
https://github.com/freeipa/ansible-freeipa/releases/tag/v1.12.1

View File

@ -1 +1 @@
SHA512 (ansible-freeipa-1.12.1.tar.gz) = 9e1a3ff9fe3b9d7bd6bc30096d89e0d7e1a60fb22b66efc272c3e3561c977f9c13dc0645eb734f2d5a5b2a11115bc81671cfc9e615b5cacbc06724d4ea4dd44c
SHA512 (ansible-freeipa-1.13.1.tar.gz) = 9bf1670dcb56362f8720fa6d30902fc41b147cd7e0e068a5aa17488140403bb1d6c2815668501f4ac302425f98e220ccc9834e1294691968fa7416dd09641f7f