Compare commits
No commits in common. "c8-beta" and "imports/c9/ansible-collection-microsoft-sql-1.3.0-3.el9" have entirely different histories.
c8-beta
...
imports/c9
@ -1,2 +1,2 @@
|
|||||||
b0ee52fd3c4f8d57f2414bee6b1a944f9002b13f SOURCES/auto-maintenance-eadd06cfa98d244b096cff24cd11b668428b1613.tar.gz
|
06bdf4fd47cd57661f657fa4f29ec3031198ba11 SOURCES/auto-maintenance-73800682a3293ef5ab5ed5880329ce792cd34bbf.tar.gz
|
||||||
e8478bb22d373f545bb92ed83791b83c95fc29f7 SOURCES/mssql-2.2.3.tar.gz
|
43136931b6fa02984e7e0c30564f8202114ed2bd SOURCES/mssql-1.3.0.tar.gz
|
||||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
SOURCES/auto-maintenance-eadd06cfa98d244b096cff24cd11b668428b1613.tar.gz
|
SOURCES/auto-maintenance-73800682a3293ef5ab5ed5880329ce792cd34bbf.tar.gz
|
||||||
SOURCES/mssql-2.2.3.tar.gz
|
SOURCES/mssql-1.3.0.tar.gz
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
# Helper macros originally from macros.ansible by Igor Raits <ignatenkobrain>
|
|
||||||
# This file is for maintaining the compatibility with macros and other
|
|
||||||
# functionality (generators) provided by ansible-packaging on Fedora.
|
|
||||||
|
|
||||||
Provides: ansible-collection(%{collection_namespace}.%{collection_name}) = %{collection_version}
|
|
||||||
|
|
||||||
# ansible-galaxy is available by ansible-core on RHEL 8.6 and newer at buildtime.
|
|
||||||
%define ansible_collection_build() ansible-galaxy collection build
|
|
||||||
%define ansible_collection_install() ansible-galaxy collection install -n -p %{buildroot}%{_datadir}/ansible/collections %{collection_namespace}-%{collection_name}-%{version}.tar.gz
|
|
||||||
|
|
||||||
%define ansible_roles_dir %{_datadir}/ansible/roles
|
|
||||||
%define ansible_collections_dir %{_datadir}/ansible/collections/ansible_collections
|
|
||||||
|
|
||||||
# TODO: Officially deprecate this macro and add the following line to the macro
|
|
||||||
# def after the new approach has gotten more testing and adoption:
|
|
||||||
# %%{warn: %%{ansible_collection_files} is deprecated. Use %%files -f %%{ansible_collection_filelist} instead.}
|
|
||||||
%define ansible_collection_files %{shrink:
|
|
||||||
%{ansible_collections_dir}/%{collection_namespace}/
|
|
||||||
}
|
|
||||||
|
|
||||||
%define ansible_collection_filelist %{__ansible_builddir}/ansible_collection_files
|
|
@ -1,21 +1,31 @@
|
|||||||
# NOTE: ansible-core is in rhel-8.6 and newer, but not installable
|
# NOTE: Even though ansible-core is in 8.6, it is only available
|
||||||
# in buildroot as it depended on modular Python.
|
# at *runtime*, not at *buildtime* - so we can't have
|
||||||
# It has been installable at buildtime in 8.8 and newer.
|
# ansible-core as a build_dep on RHEL8
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
||||||
|
%bcond_without ansible
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora}
|
||||||
BuildRequires: ansible-packaging
|
BuildRequires: ansible-packaging
|
||||||
%else
|
%else
|
||||||
%if 0%{?rhel} >= 8
|
|
||||||
BuildRequires: ansible-core >= 2.11.0
|
BuildRequires: ansible-core >= 2.11.0
|
||||||
%endif
|
%endif
|
||||||
|
%else
|
||||||
|
%bcond_with ansible
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%bcond_with collection_artifact
|
%bcond_with collection_artifact
|
||||||
|
|
||||||
|
# Do not convert .md to .html on RHEL 7 because pandoc is not available
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||||
|
%bcond_without html
|
||||||
|
%else
|
||||||
|
%bcond_with html
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: ansible-collection-microsoft-sql
|
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: 2.2.3
|
Version: 1.3.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
|
|
||||||
@ -27,6 +37,24 @@ License: MIT
|
|||||||
%global legacy_rolename %{collection_namespace}.sql-server
|
%global legacy_rolename %{collection_namespace}.sql-server
|
||||||
%global _pkglicensedir %{_licensedir}/%{name}
|
%global _pkglicensedir %{_licensedir}/%{name}
|
||||||
|
|
||||||
|
# Helper macros originally from macros.ansible by Igor Raits <ignatenkobrain>
|
||||||
|
# On RHEL, not available, so we must define those macros locally
|
||||||
|
# On Fedora, provided by ansible-packager
|
||||||
|
# Not used (yet). Could be made to point to AH in RHEL - but what about CentOS Stream?
|
||||||
|
#%%{!?ansible_collection_url:%%define ansible_collection_url() https://galaxy.ansible.com/%%{collection_namespace}/%%{collection_name}}
|
||||||
|
%if 0%{?rhel}
|
||||||
|
Provides: ansible-collection(%{collection_namespace}.%{collection_name}) = %{collection_version}
|
||||||
|
%global ansible_collection_files %{_datadir}/ansible/collections/ansible_collections/%{collection_namespace}/
|
||||||
|
%define ansible_roles_dir %{_datadir}/ansible/roles
|
||||||
|
%if %{without ansible}
|
||||||
|
# Untar and copy everything instead of galaxy-installing the built artifact when ansible is not available
|
||||||
|
%define ansible_collection_build() tar -cf %{_tmppath}/%{collection_namespace}-%{collection_name}-%{version}.tar.gz .
|
||||||
|
%define ansible_collection_install() mkdir -p %{buildroot}%{ansible_collection_files}%{collection_name}; (cd %{buildroot}%{ansible_collection_files}%{collection_name}; tar -xf %{_tmppath}/%{collection_namespace}-%{collection_name}-%{version}.tar.gz)
|
||||||
|
%else
|
||||||
|
%define ansible_collection_build() ansible-galaxy collection build
|
||||||
|
%define ansible_collection_install() ansible-galaxy collection install -n -p %{buildroot}%{_datadir}/ansible/collections %{collection_namespace}-%{collection_name}-%{version}.tar.gz
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
# be compatible with the usual Fedora Provides:
|
# be compatible with the usual Fedora Provides:
|
||||||
Provides: ansible-collection-%{collection_namespace}-%{collection_name} = %{collection_version}-%{release}
|
Provides: ansible-collection-%{collection_namespace}-%{collection_name} = %{collection_version}-%{release}
|
||||||
|
|
||||||
@ -47,7 +75,7 @@ Requires: rhel-system-roles
|
|||||||
Requires: linux-system-roles
|
Requires: linux-system-roles
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global mainid eadd06cfa98d244b096cff24cd11b668428b1613
|
%global mainid 73800682a3293ef5ab5ed5880329ce792cd34bbf
|
||||||
# Use either hash or tag for source1id
|
# Use either hash or tag for source1id
|
||||||
# %%global source1id 50edba099ab2c8b25b225fe760cb5a459b320030
|
# %%global source1id 50edba099ab2c8b25b225fe760cb5a459b320030
|
||||||
%global source1id %{version}
|
%global source1id %{version}
|
||||||
@ -55,20 +83,18 @@ Requires: linux-system-roles
|
|||||||
Source: %{parenturl}/auto-maintenance/archive/%{mainid}/auto-maintenance-%{mainid}.tar.gz
|
Source: %{parenturl}/auto-maintenance/archive/%{mainid}/auto-maintenance-%{mainid}.tar.gz
|
||||||
Source1: %{parenturl}/%{rolename}/archive/%{source1id}/%{rolename}-%{source1id}.tar.gz
|
Source1: %{parenturl}/%{rolename}/archive/%{source1id}/%{rolename}-%{source1id}.tar.gz
|
||||||
|
|
||||||
# Includes with ansible_collection_build/_install that differ between RHEL versions
|
|
||||||
Source1002: ansible-packaging.inc
|
|
||||||
%include %{SOURCE1002}
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# there is no ansible on i686, so when we get a builder that uses
|
|
||||||
# this arch, the build fails with
|
%if %{with html}
|
||||||
# No matching package to install: 'ansible-core >= 2.11.0'
|
# Requirements for md2html.sh to build the documentation
|
||||||
# unfortunately, this causes the src rpm build tasks to be reported
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
||||||
# with the arch of the builder :-( which causes problems with internal
|
BuildRequires: rubygem-kramdown-parser-gfm
|
||||||
# test infrastructure - while we get those issues sorted out, revert
|
%else
|
||||||
# this change - this means that centpkg builds may fail and may have
|
BuildRequires: pandoc
|
||||||
# to be retried
|
BuildRequires: asciidoc
|
||||||
# ExcludeArch: i686
|
BuildRequires: highlight
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
# Requirements for galaxy_transform.py
|
# Requirements for galaxy_transform.py
|
||||||
BuildRequires: python3
|
BuildRequires: python3
|
||||||
@ -86,7 +112,7 @@ Summary: Collection artifact to import to Automation Hub / Ansible Galaxy
|
|||||||
|
|
||||||
%description collection-artifact
|
%description collection-artifact
|
||||||
Collection artifact for %{name}. This package contains
|
Collection artifact for %{name}. This package contains
|
||||||
%{collection_namespace}-%{collection_name}-%{collection_version}.tar.gz
|
%{collection_namespace}-%{collection_name}-%{version}.tar.gz
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%pretrans -p <lua>
|
%pretrans -p <lua>
|
||||||
@ -110,25 +136,28 @@ if [ -d %{rolename}/tests/roles ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Move a hidden .README.html to a not hidden README.html
|
%if %{with html}
|
||||||
mv %{rolename}/.README.html %{rolename}/README.html
|
# Convert README.md to README.html in the source roles
|
||||||
|
sh md2html.sh -t %{rolename}/README.md
|
||||||
|
%endif
|
||||||
|
|
||||||
mkdir .collections
|
mkdir .collections
|
||||||
|
# Copy README.md for the collection build
|
||||||
|
cp %{rolename}/.collection/README.md lsr_role2collection/collection_readme.md
|
||||||
# Copy galaxy.yml for the collection build
|
# Copy galaxy.yml for the collection build
|
||||||
cp %{rolename}/.collection/galaxy.yml ./
|
cp %{rolename}/.collection/galaxy.yml ./
|
||||||
|
|
||||||
%if 0%{?rhel}
|
%if 0%{?rhel}
|
||||||
# Ensure the correct entries in galaxy.yml
|
# Ensure the correct entries in galaxy.yml
|
||||||
./galaxy_transform.py "%{collection_namespace}" "%{collection_name}" "%{collection_version}" \
|
./galaxy_transform.py "%{collection_namespace}" "%{collection_name}" "%{version}" \
|
||||||
"Ansible collection for Microsoft SQL Server management" \
|
"Ansible collection for Microsoft SQL Server management" \
|
||||||
"https://github.com/linux-system-roles/mssql" \
|
"https://github.com/linux-system-roles/mssql" \
|
||||||
"https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/automating_system_administration_by_using_rhel_system_roles/assembly_configuring-microsoft-sql-server-using-microsoft-sql-server-ansible-role_automating-system-administration-by-using-rhel-system-roles" \
|
"https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/administration_and_configuration_tasks_using_system_roles_in_rhel/assembly_configuring-microsoft-sql-server-using-microsoft-sql-server-ansible-role_assembly_updating-packages-to-enable-automation-for-the-rhel-system-roles" \
|
||||||
"https://access.redhat.com/articles/3050101" \
|
"https://github.com/linux-system-roles/mssql/blob/main/README.md" \
|
||||||
"https://issues.redhat.com/secure/CreateIssueDetails!init.jspa?pid=12332745&summary=Your%20request%20summary&issuetype=1&priority=10200&labels=Partner-Feature-Request&components=12377164" \
|
"https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%208&component=ansible-collection-microsoft-sql" \
|
||||||
> galaxy.yml.tmp
|
> galaxy.yml.tmp
|
||||||
%else
|
%else
|
||||||
./galaxy_transform.py "%{collection_namespace}" "%{collection_name}" "%{collection_version}" \
|
./galaxy_transform.py "%{collection_namespace}" "%{collection_name}" "%{version}" \
|
||||||
"Ansible collection for Microsoft SQL Server management" \
|
"Ansible collection for Microsoft SQL Server management" \
|
||||||
> galaxy.yml.tmp
|
> galaxy.yml.tmp
|
||||||
%endif
|
%endif
|
||||||
@ -137,8 +166,8 @@ 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"
|
||||||
# This is for the "roles calling other roles" case
|
# This is for the "roles calling other roles" case
|
||||||
find . -type f -exec \
|
find %{rolename} -type f -exec \
|
||||||
sed -e "s/fedora\.linux_system_roles/redhat.rhel_system_roles/g" \
|
sed -e "s/fedora[.]linux_system_roles[.]/redhat.rhel_system_roles./g" \
|
||||||
-i {} \;
|
-i {} \;
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -147,7 +176,7 @@ python3 lsr_role2collection.py --role "%{rolename}" \
|
|||||||
--src-path "%{rolename}" \
|
--src-path "%{rolename}" \
|
||||||
--src-owner linux-system-roles \
|
--src-owner linux-system-roles \
|
||||||
--dest-path .collections \
|
--dest-path .collections \
|
||||||
--readme %{rolename}/.collection/README.md \
|
--readme lsr_role2collection/collection_readme.md \
|
||||||
--namespace %{collection_namespace} \
|
--namespace %{collection_namespace} \
|
||||||
--collection %{collection_name} \
|
--collection %{collection_name} \
|
||||||
--new-role "%{collection_rolename}" \
|
--new-role "%{collection_rolename}" \
|
||||||
@ -162,13 +191,13 @@ find .collections/ansible_collections/%{collection_namespace}/%{collection_name}
|
|||||||
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]*
|
||||||
|
|
||||||
# Copy CHANGELOG.md from collection role to parent collection dir
|
|
||||||
cp .collections/ansible_collections/%{collection_namespace}/%{collection_name}/roles/%{collection_rolename}/CHANGELOG.md \
|
|
||||||
.collections/ansible_collections/%{collection_namespace}/%{collection_name}
|
|
||||||
|
|
||||||
# Copy galaxy.yml to the collection directory
|
# Copy galaxy.yml to the collection directory
|
||||||
cp -p galaxy.yml .collections/ansible_collections/%{collection_namespace}/%{collection_name}
|
cp -p galaxy.yml .collections/ansible_collections/%{collection_namespace}/%{collection_name}
|
||||||
|
|
||||||
|
# Copy CHANGELOG.md from mssql to collection dir
|
||||||
|
mv .collections/ansible_collections/%{collection_namespace}/%{collection_name}/roles/%{collection_rolename}/CHANGELOG.md \
|
||||||
|
.collections/ansible_collections/%{collection_namespace}/%{collection_name}/
|
||||||
|
|
||||||
# Build collection
|
# Build collection
|
||||||
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
|
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
|
||||||
%ansible_collection_build
|
%ansible_collection_build
|
||||||
@ -177,22 +206,21 @@ popd
|
|||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{ansible_roles_dir}
|
mkdir -p %{buildroot}%{ansible_roles_dir}
|
||||||
|
|
||||||
# Step 1: Install the role in legacy format
|
|
||||||
# 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}"
|
||||||
find %{buildroot}%{ansible_roles_dir}/%{legacy_rolename} -type f -exec \
|
find %{buildroot}%{ansible_roles_dir}/%{legacy_rolename} -type f -exec \
|
||||||
sed -e "s/%{collection_namespace}\.%{collection_name}\.%{collection_rolename}/%{legacy_rolename}/g" \
|
sed -e "s/linux-system-roles\.%{rolename}/%{legacy_rolename}/g" \
|
||||||
-i {} \;
|
-i {} \;
|
||||||
|
|
||||||
# Copy README, COPYING, CHANGELOG 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}
|
||||||
mkdir -p "%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
|
mkdir -p "%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
|
||||||
ln -sr "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/README.md" \
|
ln -sr "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/README.md" \
|
||||||
"%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
|
"%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
|
||||||
|
%if %{with html}
|
||||||
ln -sr "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/README.html" \
|
ln -sr "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/README.html" \
|
||||||
"%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
|
"%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
|
||||||
ln -sr "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/CHANGELOG.md" \
|
%endif
|
||||||
"%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
|
|
||||||
if [ -f "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/COPYING" ]; then
|
if [ -f "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/COPYING" ]; then
|
||||||
ln -sr "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/COPYING" \
|
ln -sr "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/COPYING" \
|
||||||
"%{buildroot}%{_pkglicensedir}/%{legacy_rolename}.COPYING"
|
"%{buildroot}%{_pkglicensedir}/%{legacy_rolename}.COPYING"
|
||||||
@ -206,42 +234,43 @@ fi
|
|||||||
rm -r %{buildroot}%{ansible_roles_dir}/*/.[A-Za-z]*
|
rm -r %{buildroot}%{ansible_roles_dir}/*/.[A-Za-z]*
|
||||||
rm -r %{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/tests/.[A-Za-z]*
|
rm -r %{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/tests/.[A-Za-z]*
|
||||||
|
|
||||||
# Step 2: Remove molecule directory from all roles under ansible_roles_dir
|
# Remove the molecule directory
|
||||||
rm -r %{buildroot}%{ansible_roles_dir}/*/molecule
|
rm -r %{buildroot}%{ansible_roles_dir}/*/molecule
|
||||||
|
|
||||||
# Step 3: Install the role in collection format
|
# Install collection
|
||||||
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
|
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
|
||||||
%ansible_collection_install
|
%ansible_collection_install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_pkgdocdir}/collection/roles
|
mkdir -p %{buildroot}%{_pkgdocdir}/collection/roles
|
||||||
|
|
||||||
# Link collection README to /usr/share/doc/ansible-collection-microsoft-sql/collection.
|
# Copy the collection README files to the collection
|
||||||
ln -sr %{buildroot}%{ansible_collection_files}%{collection_name}/README.md \
|
ln -sr %{buildroot}%{ansible_collection_files}%{collection_name}/README.md \
|
||||||
%{buildroot}%{_pkgdocdir}/collection
|
%{buildroot}%{_pkgdocdir}/collection
|
||||||
|
|
||||||
# Link role READMEs to /usr/share/doc/ansible-collection-microsoft-sql/collection/roles/server
|
# Copy role's readme to /usr/share/doc/
|
||||||
mkdir -p %{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}
|
if [ -f "%{buildroot}%{ansible_collection_files}%{collection_name}/roles/%{collection_rolename}/README.md" ]; then
|
||||||
ln -sr %{buildroot}%{ansible_collection_files}%{collection_name}/roles/%{collection_rolename}/README.md \
|
mkdir -p %{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}
|
||||||
%{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}
|
ln -sr %{buildroot}%{ansible_collection_files}%{collection_name}/roles/%{collection_rolename}/README.md \
|
||||||
ln -sr %{buildroot}%{ansible_collection_files}%{collection_name}/roles/%{collection_rolename}/README.html \
|
|
||||||
%{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}
|
%{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}
|
||||||
|
fi
|
||||||
|
|
||||||
# Link role CHANGELOG.md to /usr/share/doc/ansible-collection-microsoft-sql/collection/roles/server
|
%if %{with html}
|
||||||
ln -sr %{buildroot}%{ansible_collection_files}%{collection_name}/roles/%{collection_rolename}/CHANGELOG.md \
|
# Convert README.md to README.html for collection in %%{buildroot}%%{_pkgdocdir}/collection
|
||||||
%{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}
|
sh md2html.sh -t %{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}/README.md
|
||||||
|
%endif
|
||||||
|
|
||||||
# Step 4: Copy collection artifact to /usr/share/ansible/collections/ for collection-artifact
|
|
||||||
%if %{with collection_artifact}
|
%if %{with collection_artifact}
|
||||||
|
# Copy collection artifact to /usr/share/ansible/collections/ for collection-artifact
|
||||||
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
|
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
|
||||||
if [ -f %{collection_namespace}-%{collection_name}-%{collection_version}.tar.gz ]; then
|
if [ -f %{collection_namespace}-%{collection_name}-%{version}.tar.gz ]; then
|
||||||
mv %{collection_namespace}-%{collection_name}-%{collection_version}.tar.gz \
|
mv %{collection_namespace}-%{collection_name}-%{version}.tar.gz \
|
||||||
%{buildroot}%{_datadir}/ansible/collections/
|
%{buildroot}%{_datadir}/ansible/collections/
|
||||||
fi
|
fi
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Step 5: Generate the %%files section in files_section.txt
|
# Generate the %%files section in files_section.txt
|
||||||
# Bulk files inclusion is not possible because roles store doc and licence
|
# Bulk files inclusion is not possible because roles store doc and licence
|
||||||
# files together with other files
|
# files together with other files
|
||||||
format_item_for_files() {
|
format_item_for_files() {
|
||||||
@ -317,91 +346,29 @@ find %{buildroot}%{ansible_roles_dir} -mindepth 1 -maxdepth 1 | \
|
|||||||
|
|
||||||
%if %{with collection_artifact}
|
%if %{with collection_artifact}
|
||||||
%files collection-artifact
|
%files collection-artifact
|
||||||
%{_datadir}/ansible/collections/%{collection_namespace}-%{collection_name}-%{collection_version}.tar.gz
|
%{_datadir}/ansible/collections/%{collection_namespace}-%{collection_name}-%{version}.tar.gz
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Feb 27 2024 Sergei Petrosian <spetrosi@redhat.com> - 2.2.3-2
|
|
||||||
- Revert ExcludeArch: i686 due to TFT-2460
|
|
||||||
Resolves: RHEL-17080
|
|
||||||
|
|
||||||
* Thu Feb 22 2024 Sergei Petrosian <spetrosi@redhat.com> - 2.2.3-1
|
|
||||||
- Add support for running SQL Server as a SELinux unconfined application with SELinux in enforcing mode on RHEL 9
|
|
||||||
Resolves: RHEL-17080
|
|
||||||
- ExcludeArch: i686
|
|
||||||
|
|
||||||
* Tue Feb 6 2024 Sergei Petrosian <spetrosi@redhat.com> - 2.2.2-1
|
|
||||||
- Update role to version 2.2.2 to fix HA
|
|
||||||
Resolves: RHEL-19202
|
|
||||||
- CHANGELOG.md was missing in some places
|
|
||||||
- In legacy role, sed repalced unexpected strings at some places
|
|
||||||
Resolves: RHEL-23456
|
|
||||||
|
|
||||||
* Wed Jan 31 2024 Sergei Petrosian <spetrosi@redhat.com> - 2.2.1-2
|
|
||||||
- Use latest auto-maintenance for updates in lsr_role2collection.py
|
|
||||||
- Remove with_html, instead use built-in .README.html
|
|
||||||
Resolves: RHEL-23456
|
|
||||||
|
|
||||||
* Mon Jan 29 2024 Sergei Petrosian <spetrosi@redhat.com> - 2.2.1-1
|
|
||||||
- Update role to version 2.2.1 to enhance running on EL 9
|
|
||||||
Resolves: RHEL-17080
|
|
||||||
|
|
||||||
* Mon Dec 11 2023 Sergei Petrosian <spetrosi@redhat.com> - 2.2.0-1
|
|
||||||
- Support installing SQL Server 2022 on RHEL 9 and running as a selinux-confined application
|
|
||||||
Resolves: RHEL-17080
|
|
||||||
- Remove unnecessary variable and RPM requirements for read-scale clusters
|
|
||||||
Resolves: RHEL-19202
|
|
||||||
- Add the mssql_ha_prep_for_pacemaker variable to configure SQL Server for Pacemaker
|
|
||||||
Resolves: RHEL-19204
|
|
||||||
- Deprecate `mssql_ha_cluster_run_role` for `mssql_manage_ha_cluster`
|
|
||||||
Resolves: RHEL-19203
|
|
||||||
|
|
||||||
* Thu Jul 27 2023 Sergei Petrosian <spetrosi@redhat.com> - 2.0.1-1
|
|
||||||
- Update role to version 2.0.1 to enhance AD integration
|
|
||||||
Resolves: RHEL-877
|
|
||||||
Resolves: RHEL-878
|
|
||||||
Resolves: RHEL-879
|
|
||||||
Resolves: RHEL-880
|
|
||||||
|
|
||||||
* Wed May 31 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.4.1-1
|
|
||||||
- Update BuiildRequires to use ansible-core on RHEL > 8.8
|
|
||||||
- Move RHEL related code into an include for spec readability
|
|
||||||
- Update role to version 1.4.1 to add customizable storage paths
|
|
||||||
Resolves: RHEL-528
|
|
||||||
|
|
||||||
* Thu Feb 23 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-3
|
* Thu Feb 23 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-3
|
||||||
- Spec: add functionality to build from a commit hash
|
- Spec: add functionality to build from a commit hash
|
||||||
- Use latest 1.3.0 to add flexibility to AD integration functionality
|
- Use latest 1.3.0 to add flexibility to AD integration functionality
|
||||||
Resolves: rhbz#2163696
|
Resolves: rhbz#2163709
|
||||||
|
|
||||||
* Thu Feb 16 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-2
|
* Fri Feb 17 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-2
|
||||||
- Replace fedora.linux_system_roles/redhat.rhel_system_roles and
|
- Replace fedora.linux_system_roles/redhat.rhel_system_roles and
|
||||||
linux-system-roles.mssql with microsoft.sql.server in the role.
|
linux-system-roles.mssql with microsoft.sql.server in the role.
|
||||||
Resolves: rhbz#2129106
|
Resolves: rhbz#2151281
|
||||||
- Use latest 1.3.0 to fix ad_Integration issues
|
- Use latest 1.3.0 to fix ad_Integration issues
|
||||||
Resolves: rhbz#2163696
|
Resolves: rhbz#2163709
|
||||||
|
|
||||||
* Wed Feb 1 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-1
|
* Thu Feb 2 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-1
|
||||||
- Keep spec consistent with linux-system-roles
|
- Keep spec consistent with linux-system-roles and simplify
|
||||||
- Return conditionals related to EL to keep up- and downstream consistent
|
- Return conditionals related to EL to keep up- and downstream consistent
|
||||||
- Add pretrans scriplet to remove symlinks if exist to fix issue with update
|
- Add pretrans scriplet to remove symlinks if exist to fix issue with update
|
||||||
- Instead of copying doc and license files create symlinks
|
- Instead of copying doc and license files create symlinks
|
||||||
- Dynamically generate %%files section
|
- Dynamically generate %%files section
|
||||||
- Add -t to md2html to generate TOC
|
- Add -t to md2html to generate TOC
|
||||||
Resolves: rhbz#2129106
|
|
||||||
- On SQL Server Enterprise Edition, support configuring asynchronous replication
|
|
||||||
Resolves: rhbz#2144820
|
|
||||||
- Support configuring a read-scale SQL server availability group (without pacemaker
|
|
||||||
Resolves: rhbz#2144821
|
|
||||||
- Use the certificate role to create the cert and the key
|
|
||||||
Resolves: rhbz#2144852
|
|
||||||
- Support SQL Server version 2022
|
|
||||||
Resolves: rhbz#2153427
|
|
||||||
- Support integrating with AD Server for authentication
|
|
||||||
Resolves: rhbz#2163696
|
|
||||||
|
|
||||||
* Thu Sep 22 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.4-2
|
|
||||||
- Simplify spec file
|
|
||||||
- Do not install roles to /usr/share/microsoft and then create symlinks
|
- Do not install roles to /usr/share/microsoft and then create symlinks
|
||||||
to /usr/share/ansible/roles/, instead install directly to
|
to /usr/share/ansible/roles/, instead install directly to
|
||||||
/usr/share/ansible/roles/
|
/usr/share/ansible/roles/
|
||||||
@ -412,69 +379,83 @@ find %{buildroot}%{ansible_roles_dir} -mindepth 1 -maxdepth 1 | \
|
|||||||
- Remove getarchivedir for simplicity
|
- Remove getarchivedir for simplicity
|
||||||
- Wrap description by 80 symbols and clarify it
|
- Wrap description by 80 symbols and clarify it
|
||||||
- Remove tests/.fmf dir from the RPM
|
- Remove tests/.fmf dir from the RPM
|
||||||
Resolves: rhbz#2129106
|
Resolves: rhbz#2151281
|
||||||
|
- On SQL Server Enterprise Edition, support configuring asynchronous replication
|
||||||
|
Resolves: rhbz#2151282
|
||||||
|
- Support configuring a read-scale SQL server availability group (without pacemaker
|
||||||
|
Resolves: rhbz#2151283
|
||||||
|
- Use the certificate role to create the cert and the key
|
||||||
|
Resolves: rhbz#2151284
|
||||||
|
- Support SQL Server version 2022
|
||||||
|
Resolves: rhbz#2153428
|
||||||
|
- Support integrating with AD Server for authentication
|
||||||
|
Resolves: rhbz#2163709
|
||||||
|
|
||||||
* Thu Sep 1 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.4-1
|
* Thu Sep 1 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.4-1
|
||||||
- Replicate all provided databases
|
- Replicate all provided databases
|
||||||
- This change fixes the bug where only the first database provided with
|
- This change fixes the bug where only the first database provided with
|
||||||
mssql_ha_db_names got replicated
|
mssql_ha_db_names got replicated
|
||||||
- Clarify that the role does not remove not listed databases
|
- Clarify that the role does not remove not listed databases
|
||||||
Resolves: rhbz#2129869
|
Resolves: rhbz#2066337
|
||||||
- Input multiple sql scripts
|
- Input multiple sql scripts
|
||||||
- Allow _input_sql_file vars to accept list of files
|
- Allow _input_sql_file vars to accept list of files
|
||||||
- Flush handlers prior to inputting post sql script
|
- Flush handlers prior to inputting post sql script
|
||||||
Resolves: rhbz#2129872
|
Resolves: rhbz#2120712
|
||||||
- Note that ha_cluster is not idempotent
|
- Note that ha_cluster is not idempotent
|
||||||
- SPEC: Do not update dates in CHANGELOG.md
|
- SPEC: Do not update dates in CHANGELOG.md
|
||||||
|
|
||||||
* Thu Aug 25 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.3-1
|
* Thu Aug 25 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.3-1
|
||||||
- Use firewall role to configure firewall for SQL Server
|
- Use firewall role to configure firewall for SQL Server
|
||||||
Resolves: rhbz#2120714
|
Resolves: rhbz#2120709
|
||||||
- Add mssql_ha_virtual_ip
|
- Add mssql_ha_virtual_ip
|
||||||
Replace mssql_ha_db_name with mssql_ha_db_names to let users replicate multiple DBs
|
Replace mssql_ha_db_name with mssql_ha_db_names to let users replicate multiple DBs
|
||||||
Resolves: rhbz#2066338
|
Resolves: rhbz#2066337
|
||||||
|
|
||||||
- Replace simple `mssql_input_sql_file` with `pre` and `post` variables
|
- Replace simple `mssql_input_sql_file` with `pre` and `post` variables
|
||||||
Resolves: rhbz#2120713
|
Resolves: rhbz#2120712
|
||||||
- Add Requires: linux-system-roles or rhel-system-roles
|
- Add Requires: linux-system-roles or rhel-system-roles
|
||||||
- Replace fedora.linux_system_roles:redhat.rhel_system_roles on RHEL
|
- Replace fedora.linux_system_roles:redhat.rhel_system_roles on RHEL
|
||||||
- Add downstream values to galaxy.yml
|
- Add downstream values to galaxy.yml
|
||||||
- Change defcommit to defsource that takes both tags and commits
|
- Change defcommit to defsource that takes both tags and commits
|
||||||
- Update CHANGELOG.md with the current date and copy it to collection dir
|
- Update CHANGELOG.md with the current date and copy it to collection dir
|
||||||
|
|
||||||
* Mon Jul 4 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.0-3
|
* Mon Jul 4 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.0-2
|
||||||
- Update mssql commit
|
- Update mssql commit
|
||||||
Resolves: rhbz#2066338
|
Resolves: rhbz#2066337
|
||||||
- Add condition for upstream spec build for galaxy_transform
|
- Add condition for upstream spec build for galaxy_transform
|
||||||
- Replace extra-mapping with replacing in the legacy format with sed
|
- Replace extra-mapping with replacing in the legacy format with sed
|
||||||
|
|
||||||
* Fri Jun 17 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.0-2
|
|
||||||
Return mistakenly deleted galaxy.yml string and bump release
|
|
||||||
|
|
||||||
* Fri Jun 17 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.0-1
|
* Fri Jun 17 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.0-1
|
||||||
- Add MVP HA functionality to the server role
|
- Add MVP HA functionality to the server role
|
||||||
Resolves: rhbz#2066338
|
Resolves: rhbz#2066337
|
||||||
- Add mssql_tls_remote_src to the server role
|
- Add mssql_tls_remote_src to the server role
|
||||||
Resolves: rhbz#2039990
|
Resolves: rhbz#2098212
|
||||||
- Add Requires: linux-system-roles or rhel-system-roles
|
- Add Requires: linux-system-roles or rhel-system-roles
|
||||||
- Add downstream values to galaxy.yml
|
- Add downstream values to galaxy.yml
|
||||||
|
|
||||||
* Mon Mar 21 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.1.1-3
|
* Mon Mar 21 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.1.1-3
|
||||||
- Fix inserting ansible_managed
|
- Fix inserting ansible_managed
|
||||||
Resolves: rhbz#2065206
|
Resolves: rhbz#2057652
|
||||||
- Users now can provide a custom URLs to pull packages and RPM key from
|
- Users now can provide a custom URLs to pull packages and RPM key from
|
||||||
Resolves: rhbz#2067175
|
Resolves: rhbz#2070452
|
||||||
|
- Add "Requires: ansible-core or ansible"
|
||||||
|
Resolves: rhbz#2067496
|
||||||
|
|
||||||
|
|
||||||
* Fri Mar 18 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.1.1-2
|
* Fri Mar 18 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.1.1-2
|
||||||
- RHEL8.6, 9 - add "Requires: ansible-core or ansible"
|
- RHEL8.6, 9 - add "Requires: ansible-core or ansible"
|
||||||
Resolves: rhbz#2067172
|
Resolves: rhbz#2065669 (EL9)
|
||||||
|
|
||||||
* Thu Mar 17 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.1.1-1
|
* Thu Mar 17 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.1.1-1
|
||||||
- Insert the "Ansible managed" comment to the /var/opt/mssql/mssql.conf file
|
- Insert the "Ansible managed" comment to the /var/opt/mssql/mssql.conf file
|
||||||
Resolves rhbz#2065206
|
Resolves rhbz#2064690 (EL9)
|
||||||
|
|
||||||
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Sep 23 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.1.0-2
|
||||||
|
- Bump release to build with gating.yaml added
|
||||||
|
|
||||||
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user