From 9fefeb5a0c8ad345fdb0d8fd7de296d8b2ec7ce4 Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Fri, 9 Oct 2020 15:40:06 +0200 Subject: [PATCH] - Update to version 0.2.1 https://github.com/freeipa/ansible-freeipa/releases/tag/v0.2.1 - Update to version 0.2.0 https://github.com/freeipa/ansible-freeipa/releases/tag/v0.2.0 - New tests sub package providing upstream tests - Utils in /usr/share/ansible-freeipa/utils --- .gitignore | 1 + ansible-freeipa.spec | 61 ++++++++++++++++++++++++++++++++++++-------- sources | 2 +- 3 files changed, 53 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index d856ad2..c7caa69 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /ansible-freeipa-0.1.10.tar.gz /ansible-freeipa-0.1.11.tar.gz /ansible-freeipa-0.1.12.tar.gz +/ansible-freeipa-0.2.1.tar.gz diff --git a/ansible-freeipa.spec b/ansible-freeipa.spec index e9ba97a..9eac74a 100644 --- a/ansible-freeipa.spec +++ b/ansible-freeipa.spec @@ -1,23 +1,22 @@ # Turn off automatic python byte compilation because these are Ansible # roles and the files are transferred to the node and compiled there with -# the python verison used in the node +# the python version used in the node %define __brp_python_bytecompile %{nil} +%global python %{__python3} + Summary: Roles and playbooks to deploy FreeIPA servers, replicas and clients Name: ansible-freeipa -Version: 0.1.12 -Release: 2%{?dist} +Version: 0.2.1 +Release: 1%{?dist} URL: https://github.com/freeipa/ansible-freeipa License: GPLv3+ Source: https://github.com/freeipa/ansible-freeipa/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildArch: noarch -#Requires: ansible - %description ansible-freeipa provides Ansible roles and playbooks to install and uninstall -FreeIPA servers, replicas and clients. Also modules for group, host, topology -and user management. +FreeIPA servers, replicas and clients. Also modules for management. Note: The ansible playbooks and roles require a configured ansible environment where the ansible nodes are reachable and are properly set up to have an IP @@ -29,6 +28,9 @@ Features - Cluster deployments: Server, replicas and clients in one playbook - One-time-password (OTP) support for client installation - Repair mode for clients +- Modules for config management +- Modules for delegation management +- Modules for dns config management - Modules for dns forwarder management - Modules for dns record management - Modules for dns zone management @@ -38,12 +40,17 @@ Features - Modules for hbacsvcgroup management - Modules for host management - Modules for hostgroup management +- Modules for location management +- Modules for privilege management - Modules for pwpolicy management +- Modules for role management +- Modules for self service management - Modules for service management - Modules for sudocmd management - Modules for sudocmdgroup management - Modules for sudorule management - Modules for topology management +- Modules fot trust management - Modules for user management - Modules for vault management @@ -85,6 +92,17 @@ 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 @@ -92,11 +110,13 @@ a separate step before starting the server installation. # - Remove shebang # - Remove execute flag for i in roles/ipa*/library/*.py roles/ipa*/module_utils/*.py plugins/*/*.py; do - sed -i '/\/usr\/bin\/python*/d' $i + sed -i '1{/\/usr\/bin\/python*/d;}' $i chmod a-x $i done -# Add execute flag to py3test.py scripts -chmod a+x roles/ipa*/files/py3test.py + +for i in utils/*.py utils/ansible-ipa-*-install utils/new_module; do + sed -i '{s@/usr/bin/python*@%{python}@}' $i +done %build @@ -111,6 +131,12 @@ cp -rp roles/ipaclient/README.md README-client.md install -m 755 -d %{buildroot}%{_datadir}/ansible/plugins/ cp -rp plugins/* %{buildroot}%{_datadir}/ansible/plugins/ +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/ + %files %license COPYING %{_datadir}/ansible/roles/ipaserver @@ -120,8 +146,23 @@ cp -rp plugins/* %{buildroot}%{_datadir}/ansible/plugins/ %{_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 %changelog +* Fri Oct 09 2020 Thomas Woerner - 0.2.1-1 +- Update to version 0.2.1 + https://github.com/freeipa/ansible-freeipa/releases/tag/v0.2.1 +- Update to version 0.2.0 + https://github.com/freeipa/ansible-freeipa/releases/tag/v0.2.0 +- New tests sub package providing upstream tests +- Utils in /usr/share/ansible-freeipa/utils + * Mon Jul 27 2020 Fedora Release Engineering - 0.1.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 9f6396c..49ad644 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ansible-freeipa-0.1.12.tar.gz) = 63268388f4c66e50993f275a9b55868adf99f9fae6c97f1f907db06d24492a2a24d8260af0f439cdbb87d13c9066ccbadf95b8f9c908539ff9c3bfcc435cd886 +SHA512 (ansible-freeipa-0.2.1.tar.gz) = bd52e79117f6120e9f1ba256fcfd3d33c6e1405156d02083cc20e1891cf1169fd4b1c65643bb6bd409ad70b9adfd7b745d5f9175e84fb8a7dd1a72ada5b1dd53