import ansible-collection-microsoft-sql-1.3.0-2.el8
This commit is contained in:
parent
a7bfdf6ac4
commit
c9844f160c
@ -1,2 +1,2 @@
|
|||||||
06bdf4fd47cd57661f657fa4f29ec3031198ba11 SOURCES/auto-maintenance-73800682a3293ef5ab5ed5880329ce792cd34bbf.tar.gz
|
06bdf4fd47cd57661f657fa4f29ec3031198ba11 SOURCES/auto-maintenance-73800682a3293ef5ab5ed5880329ce792cd34bbf.tar.gz
|
||||||
8c3c482dcb82d92b662a8045f10e1f5f03a65f43 SOURCES/mssql-1.3.0.tar.gz
|
178972d35f088095707890c603410276418b8800 SOURCES/mssql-1.3.0.tar.gz
|
||||||
|
@ -25,7 +25,7 @@ Name: ansible-collection-microsoft-sql
|
|||||||
Url: https://github.com/linux-system-roles/mssql
|
Url: https://github.com/linux-system-roles/mssql
|
||||||
Summary: The Ansible collection for Microsoft SQL Server management
|
Summary: The Ansible collection for Microsoft SQL Server management
|
||||||
Version: 1.3.0
|
Version: 1.3.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
|
|
||||||
@ -161,13 +161,11 @@ cp %{rolename}/.collection/galaxy.yml ./
|
|||||||
mv galaxy.yml.tmp galaxy.yml
|
mv galaxy.yml.tmp galaxy.yml
|
||||||
|
|
||||||
%if 0%{?rhel}
|
%if 0%{?rhel}
|
||||||
# Replace fedora.linux_system_roles with redhat.rhel_system_roles
|
# Replace "fedora.linux_system_roles" with "redhat.rhel_system_roles"
|
||||||
sed -i 's/fedora\.linux_system_roles/redhat.rhel_system_roles/g' \
|
# This is for the "roles calling other roles" case
|
||||||
%{rolename}/CHANGELOG.md \
|
find %{rolename} -type f -exec \
|
||||||
%{rolename}/README.md \
|
sed -e "s/fedora[.]linux_system_roles[.]/redhat.rhel_system_roles./g" \
|
||||||
%{rolename}/tasks/*.yml \
|
-i {} \;
|
||||||
%{rolename}/tests/*.yml \
|
|
||||||
%{rolename}/meta/*.yml
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Convert to the collection format
|
# Convert to the collection format
|
||||||
@ -181,6 +179,11 @@ python3 lsr_role2collection.py --role "%{rolename}" \
|
|||||||
--new-role "%{collection_rolename}" \
|
--new-role "%{collection_rolename}" \
|
||||||
--meta-runtime lsr_role2collection/runtime.yml
|
--meta-runtime lsr_role2collection/runtime.yml
|
||||||
|
|
||||||
|
# Replace remnants of "linux-system-roles.mssql" with collection FQDN
|
||||||
|
find .collections/ansible_collections/%{collection_namespace}/%{collection_name}/ -type f -exec \
|
||||||
|
sed -e "s/linux-system-roles[.]%{rolename}\\>/%{collection_namespace}.%{collection_name}.%{collection_rolename}/g" \
|
||||||
|
-i {} \;
|
||||||
|
|
||||||
# removing dot files/dirs
|
# removing dot files/dirs
|
||||||
rm -r .collections/ansible_collections/%{collection_namespace}/%{collection_name}/.[A-Za-z]*
|
rm -r .collections/ansible_collections/%{collection_namespace}/%{collection_name}/.[A-Za-z]*
|
||||||
rm -r .collections/ansible_collections/%{collection_namespace}/%{collection_name}/tests/%{collection_rolename}/.[A-Za-z]*
|
rm -r .collections/ansible_collections/%{collection_namespace}/%{collection_name}/tests/%{collection_rolename}/.[A-Za-z]*
|
||||||
@ -202,8 +205,9 @@ mkdir -p %{buildroot}%{ansible_roles_dir}
|
|||||||
|
|
||||||
# Copy role in legacy format and rename rolename in tests
|
# Copy role in legacy format and rename rolename in tests
|
||||||
cp -pR "%{rolename}" "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}"
|
cp -pR "%{rolename}" "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}"
|
||||||
sed -i "s/linux-system-roles\.%{rolename}/microsoft\.%{legacy_rolename}/g" \
|
find %{buildroot}%{ansible_roles_dir}/%{legacy_rolename} -type f -exec \
|
||||||
%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/tests/*.yml
|
sed -e "s/linux-system-roles\.%{rolename}/%{legacy_rolename}/g" \
|
||||||
|
-i {} \;
|
||||||
|
|
||||||
# Copy README, COPYING, and LICENSE files to the corresponding directories
|
# Copy README, COPYING, and LICENSE files to the corresponding directories
|
||||||
mkdir -p %{buildroot}%{_pkglicensedir}
|
mkdir -p %{buildroot}%{_pkglicensedir}
|
||||||
@ -343,6 +347,13 @@ find %{buildroot}%{ansible_roles_dir} -mindepth 1 -maxdepth 1 | \
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 16 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-2
|
||||||
|
- Replace fedora.linux_system_roles/redhat.rhel_system_roles and
|
||||||
|
linux-system-roles.mssql with microsoft.sql.server in the role.
|
||||||
|
Resolves: rhbz#2129106
|
||||||
|
- Use latest 1.3.0 to fix ad_Integration issues
|
||||||
|
Resolves: rhbz#2163696
|
||||||
|
|
||||||
* Wed Feb 1 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-1
|
* Wed Feb 1 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-1
|
||||||
- Keep spec consistent with linux-system-roles
|
- Keep spec consistent with linux-system-roles
|
||||||
- Return conditionals related to EL to keep up- and downstream consistent
|
- Return conditionals related to EL to keep up- and downstream consistent
|
||||||
|
Loading…
Reference in New Issue
Block a user