Blame SPECS/ansible-collection-microsoft-sql.spec

151d7a
# NOTE: Even though ansible-core is in 8.6, it is only available
151d7a
# at *runtime*, not at *buildtime* - so we can't have
151d7a
# ansible-core as a build_dep on RHEL8
151d7a
%if 0%{?fedora} || 0%{?rhel} >= 9
151d7a
%bcond_without ansible
b0cb28
%if 0%{?fedora}
b0cb28
BuildRequires: ansible-packaging
24e3c4
%else
b0cb28
BuildRequires: ansible-core >= 2.11.0
151d7a
%endif
b0cb28
%else
b0cb28
%bcond_with ansible
24e3c4
%endif
24e3c4
24e3c4
%bcond_with collection_artifact
24e3c4
b0cb28
# Do not convert .md to .html on RHEL 7 because pandoc is not available
24e3c4
%if 0%{?fedora} || 0%{?rhel} >= 8
24e3c4
%bcond_without html
24e3c4
%else
24e3c4
%bcond_with html
24e3c4
%endif
24e3c4
24e3c4
Name: ansible-collection-microsoft-sql
24e3c4
Url: https://github.com/linux-system-roles/mssql
24e3c4
Summary: The Ansible collection for Microsoft SQL Server management
b0cb28
Version: 1.3.0
b0cb28
Release: 3%{?dist}
24e3c4
24e3c4
License: MIT
24e3c4
b0cb28
%global rolename mssql
24e3c4
%global collection_namespace microsoft
24e3c4
%global collection_name sql
b0cb28
%global collection_rolename server
24e3c4
%global collection_version %{version}
b0cb28
%global legacy_rolename %{collection_namespace}.sql-server
b0cb28
%global _pkglicensedir %{_licensedir}/%{name}
24e3c4
24e3c4
# Helper macros originally from macros.ansible by Igor Raits <ignatenkobrain>
b0cb28
# On RHEL, not available, so we must define those macros locally
b0cb28
# On Fedora, provided by ansible-packager
24e3c4
# Not used (yet). Could be made to point to AH in RHEL - but what about CentOS Stream?
24e3c4
#%%{!?ansible_collection_url:%%define ansible_collection_url() https://galaxy.ansible.com/%%{collection_namespace}/%%{collection_name}}
b0cb28
%if 0%{?rhel}
b0cb28
Provides: ansible-collection(%{collection_namespace}.%{collection_name}) = %{collection_version}
b0cb28
%global ansible_collection_files %{_datadir}/ansible/collections/ansible_collections/%{collection_namespace}/
b0cb28
%define ansible_roles_dir %{_datadir}/ansible/roles
b0cb28
%if %{without ansible}
b0cb28
# Untar and copy everything instead of galaxy-installing the built artifact when ansible is not available
b0cb28
%define ansible_collection_build() tar -cf %{_tmppath}/%{collection_namespace}-%{collection_name}-%{version}.tar.gz .
b0cb28
%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)
24e3c4
%else
b0cb28
%define ansible_collection_build() ansible-galaxy collection build
b0cb28
%define ansible_collection_install() ansible-galaxy collection install -n -p %{buildroot}%{_datadir}/ansible/collections %{collection_namespace}-%{collection_name}-%{version}.tar.gz
24e3c4
%endif
24e3c4
%endif
b0cb28
# be compatible with the usual Fedora Provides:
b0cb28
Provides: ansible-collection-%{collection_namespace}-%{collection_name} = %{collection_version}-%{release}
24e3c4
151d7a
# ansible-core is in rhel 8.6 and later - default to ansible-core, but allow
151d7a
# the use of ansible if present - we may revisit this if the automatic dependency
151d7a
# generator is added to ansible-core in RHEL
151d7a
# Fedora - the automatic generator will add this - no need to explicit declare
151d7a
# it in the spec file
151d7a
# EL7 - no dependency on ansible because there is no ansible in el7 - user is
151d7a
# responsible for knowing they have to install ansible
151d7a
%if 0%{?rhel} >= 8
151d7a
Requires: (ansible-core >= 2.11.0 or ansible >= 2.9.0)
151d7a
%endif
151d7a
b0cb28
%if 0%{?rhel}
151d7a
Requires: rhel-system-roles
24e3c4
%else
b0cb28
Requires: linux-system-roles
24e3c4
%endif
24e3c4
b0cb28
%global mainid 73800682a3293ef5ab5ed5880329ce792cd34bbf
b0cb28
# Use either hash or tag for source1id
b0cb28
# %%global source1id 50edba099ab2c8b25b225fe760cb5a459b320030
b0cb28
%global source1id %{version}
24e3c4
%global parenturl https://github.com/linux-system-roles
24e3c4
Source: %{parenturl}/auto-maintenance/archive/%{mainid}/auto-maintenance-%{mainid}.tar.gz
b0cb28
Source1: %{parenturl}/%{rolename}/archive/%{source1id}/%{rolename}-%{source1id}.tar.gz
24e3c4
24e3c4
BuildArch: noarch
24e3c4
24e3c4
%if %{with html}
24e3c4
# Requirements for md2html.sh to build the documentation
24e3c4
%if 0%{?fedora} || 0%{?rhel} >= 9
24e3c4
BuildRequires: rubygem-kramdown-parser-gfm
24e3c4
%else
24e3c4
BuildRequires: pandoc
24e3c4
BuildRequires: asciidoc
24e3c4
BuildRequires: highlight
24e3c4
%endif
24e3c4
%endif
24e3c4
24e3c4
# Requirements for galaxy_transform.py
24e3c4
BuildRequires: python3
b0cb28
BuildRequires: python%{python3_pkgversion}-ruamel-yaml
24e3c4
24e3c4
%description
b0cb28
This RPM installs the %{collection_namespace}.%{collection_name} Ansible
b0cb28
collection that provides the %{collection_rolename} role for Microsoft SQL
b0cb28
Server management. This RPM also installs the %{legacy_rolename} role
b0cb28
in the legacy roles format for users of Ansible < 2.9.
24e3c4
24e3c4
%if %{with collection_artifact}
24e3c4
%package collection-artifact
24e3c4
Summary: Collection artifact to import to Automation Hub / Ansible Galaxy
24e3c4
24e3c4
%description collection-artifact
b0cb28
Collection artifact for %{name}. This package contains
b0cb28
%{collection_namespace}-%{collection_name}-%{version}.tar.gz
24e3c4
%endif
24e3c4
b0cb28
%pretrans -p <lua>
b0cb28
path = "%{ansible_roles_dir}/%{legacy_rolename}"
b0cb28
st = posix.stat(path)
b0cb28
if st and st.type == "link" then
b0cb28
  os.remove(path)
b0cb28
end
b0cb28
24e3c4
%prep
b0cb28
%setup -q -a1 -n auto-maintenance-%{mainid}
24e3c4
b0cb28
mv %{rolename}-%{source1id} %{rolename}
b0cb28
b0cb28
# Remove symlinks in tests/roles
b0cb28
if [ -d %{rolename}/tests/roles ]; then
b0cb28
    find %{rolename}/tests/roles -type l -exec rm {} \;
b0cb28
    if [ -d %{rolename}/tests/roles/linux-system-roles.%{rolename} ]; then
b0cb28
        rm -r %{rolename}/tests/roles/linux-system-roles.%{rolename}
b0cb28
    fi
b0cb28
fi
24e3c4
24e3c4
%build
24e3c4
%if %{with html}
24e3c4
# Convert README.md to README.html in the source roles
b0cb28
sh md2html.sh -t %{rolename}/README.md
24e3c4
%endif
24e3c4
24e3c4
mkdir .collections
24e3c4
# Copy README.md for the collection build
b0cb28
cp %{rolename}/.collection/README.md lsr_role2collection/collection_readme.md
24e3c4
# Copy galaxy.yml for the collection build
b0cb28
cp %{rolename}/.collection/galaxy.yml ./
151d7a
151d7a
%if 0%{?rhel}
b0cb28
# Ensure the correct entries in galaxy.yml
b0cb28
./galaxy_transform.py "%{collection_namespace}" "%{collection_name}" "%{version}" \
151d7a
                      "Ansible collection for Microsoft SQL Server management" \
151d7a
                      "https://github.com/linux-system-roles/mssql" \
151d7a
                      "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" \
b0cb28
                      "https://github.com/linux-system-roles/mssql/blob/main/README.md" \
151d7a
                      "https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%208&component=ansible-collection-microsoft-sql" \
151d7a
                      > galaxy.yml.tmp
151d7a
%else
b0cb28
./galaxy_transform.py "%{collection_namespace}" "%{collection_name}" "%{version}" \
151d7a
                      "Ansible collection for Microsoft SQL Server management" \
151d7a
                      > galaxy.yml.tmp
151d7a
%endif
24e3c4
mv galaxy.yml.tmp galaxy.yml
24e3c4
151d7a
%if 0%{?rhel}
b0cb28
# Replace "fedora.linux_system_roles" with "redhat.rhel_system_roles"
b0cb28
# This is for the "roles calling other roles" case
b0cb28
find %{rolename} -type f -exec \
b0cb28
     sed -e "s/fedora[.]linux_system_roles[.]/redhat.rhel_system_roles./g" \
b0cb28
         -i {} \;
151d7a
%endif
151d7a
b0cb28
# Convert to the collection format
b0cb28
python3 lsr_role2collection.py --role "%{rolename}" \
b0cb28
    --src-path "%{rolename}" \
b0cb28
    --src-owner linux-system-roles \
b0cb28
    --dest-path .collections \
b0cb28
    --readme lsr_role2collection/collection_readme.md \
b0cb28
    --namespace %{collection_namespace} \
b0cb28
    --collection %{collection_name} \
b0cb28
    --new-role "%{collection_rolename}" \
b0cb28
    --meta-runtime lsr_role2collection/runtime.yml
b0cb28
b0cb28
# Replace remnants of "linux-system-roles.mssql" with collection FQDN
b0cb28
find .collections/ansible_collections/%{collection_namespace}/%{collection_name}/ -type f -exec \
b0cb28
     sed -e "s/linux-system-roles[.]%{rolename}\\>/%{collection_namespace}.%{collection_name}.%{collection_rolename}/g" \
b0cb28
         -i {} \;
24e3c4
24e3c4
# removing dot files/dirs
24e3c4
rm -r .collections/ansible_collections/%{collection_namespace}/%{collection_name}/.[A-Za-z]*
b0cb28
rm -r .collections/ansible_collections/%{collection_namespace}/%{collection_name}/tests/%{collection_rolename}/.[A-Za-z]*
24e3c4
24e3c4
# Copy galaxy.yml to the collection directory
24e3c4
cp -p galaxy.yml .collections/ansible_collections/%{collection_namespace}/%{collection_name}
24e3c4
b0cb28
# Copy CHANGELOG.md from mssql to collection dir
b0cb28
mv .collections/ansible_collections/%{collection_namespace}/%{collection_name}/roles/%{collection_rolename}/CHANGELOG.md \
151d7a
    .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
151d7a
b0cb28
# Build collection
b0cb28
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
b0cb28
%ansible_collection_build
b0cb28
popd
24e3c4
b0cb28
%install
b0cb28
mkdir -p %{buildroot}%{ansible_roles_dir}
24e3c4
b0cb28
# Copy role in legacy format and rename rolename in tests
b0cb28
cp -pR "%{rolename}" "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}"
b0cb28
find %{buildroot}%{ansible_roles_dir}/%{legacy_rolename} -type f -exec \
b0cb28
     sed -e "s/linux-system-roles\.%{rolename}/%{legacy_rolename}/g" \
b0cb28
         -i {} \;
24e3c4
24e3c4
# Copy README, COPYING, and LICENSE files to the corresponding directories
b0cb28
mkdir -p %{buildroot}%{_pkglicensedir}
b0cb28
mkdir -p "%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
b0cb28
ln -sr "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/README.md" \
b0cb28
    "%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
24e3c4
%if %{with html}
b0cb28
ln -sr "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/README.html" \
b0cb28
    "%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
24e3c4
%endif
b0cb28
if [ -f "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/COPYING" ]; then
b0cb28
    ln -sr "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/COPYING" \
b0cb28
        "%{buildroot}%{_pkglicensedir}/%{legacy_rolename}.COPYING"
b0cb28
fi
b0cb28
if [ -f "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/LICENSE" ]; then
b0cb28
    ln -sr "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/LICENSE" \
b0cb28
        "%{buildroot}%{_pkglicensedir}/%{legacy_rolename}.LICENSE"
b0cb28
fi
24e3c4
24e3c4
# Remove dot files
b0cb28
rm -r %{buildroot}%{ansible_roles_dir}/*/.[A-Za-z]*
b0cb28
rm -r %{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/tests/.[A-Za-z]*
24e3c4
24e3c4
# Remove the molecule directory
b0cb28
rm -r %{buildroot}%{ansible_roles_dir}/*/molecule
24e3c4
b0cb28
# Install collection
24e3c4
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
b0cb28
%ansible_collection_install
24e3c4
popd
24e3c4
b0cb28
mkdir -p %{buildroot}%{_pkgdocdir}/collection/roles
24e3c4
24e3c4
# Copy the collection README files to the collection
b0cb28
ln -sr %{buildroot}%{ansible_collection_files}%{collection_name}/README.md \
b0cb28
   %{buildroot}%{_pkgdocdir}/collection
b0cb28
b0cb28
# Copy role's readme to /usr/share/doc/
b0cb28
if [ -f "%{buildroot}%{ansible_collection_files}%{collection_name}/roles/%{collection_rolename}/README.md" ]; then
b0cb28
    mkdir -p %{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}
b0cb28
    ln -sr %{buildroot}%{ansible_collection_files}%{collection_name}/roles/%{collection_rolename}/README.md \
b0cb28
        %{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}
b0cb28
fi
24e3c4
24e3c4
%if %{with html}
b0cb28
# Convert README.md to README.html for collection in %%{buildroot}%%{_pkgdocdir}/collection
b0cb28
sh md2html.sh -t %{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}/README.md
24e3c4
%endif
24e3c4
24e3c4
%if %{with collection_artifact}
24e3c4
# Copy collection artifact to /usr/share/ansible/collections/ for collection-artifact
24e3c4
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
24e3c4
if [ -f %{collection_namespace}-%{collection_name}-%{version}.tar.gz ]; then
24e3c4
    mv %{collection_namespace}-%{collection_name}-%{version}.tar.gz \
b0cb28
       %{buildroot}%{_datadir}/ansible/collections/
24e3c4
fi
24e3c4
popd
24e3c4
%endif
24e3c4
b0cb28
# Generate the %%files section in files_section.txt
b0cb28
# Bulk files inclusion is not possible because roles store doc and licence
b0cb28
# files together with other files
24e3c4
format_item_for_files() {
24e3c4
    # $1 is directory or file name in buildroot
b0cb28
    # $2 - if true, and item is a directory, use %%dir
24e3c4
    local item
24e3c4
    local files_item
b0cb28
    item="$1" # full path including buildroot
b0cb28
    files_item=${item##"%{buildroot}"} # path with cut buildroot to be added to %%files
24e3c4
    if [ -L "$item" ]; then
24e3c4
        echo "$files_item"
24e3c4
    elif [ -d "$item" ]; then
24e3c4
        if [[ "$item" == */doc* ]]; then
24e3c4
            echo "%doc $files_item"
24e3c4
        elif [ "${2:-false}" = true ]; then
24e3c4
            echo "%dir $files_item"
24e3c4
        else
24e3c4
            echo "$files_item"
24e3c4
        fi
b0cb28
    elif [[ "$item" == */README.md ]] || [[ "$item" == */README.html ]] || [[ "$item" == */CHANGELOG.md ]]; then
24e3c4
        if [[ "$item" == */private_* ]]; then
b0cb28
            # mark as regular file, not %%doc
24e3c4
            echo "$files_item"
24e3c4
        else
24e3c4
            echo "%doc $files_item"
24e3c4
        fi
b0cb28
    elif [[ "$item" == */COPYING* ]] || [[ "$item" == */LICENSE* ]]; then
b0cb28
        echo "%""%""license" "$files_item"
b0cb28
    else
24e3c4
        echo "$files_item"
24e3c4
    fi
24e3c4
}
24e3c4
24e3c4
files_section=files_section.txt
24e3c4
rm -f $files_section
24e3c4
touch $files_section
b0cb28
# Dynamically generate files section entries for %%{ansible_collection_files}
24e3c4
find %{buildroot}%{ansible_collection_files}%{collection_name} -mindepth 1 -maxdepth 1 | \
24e3c4
    while read item; do
24e3c4
        if [[ "$item" == */roles ]]; then
24e3c4
            format_item_for_files "$item" true >> $files_section
24e3c4
            find "$item" -mindepth 1 -maxdepth 1 | while read roles_dir; do
24e3c4
                format_item_for_files "$roles_dir" true >> $files_section
24e3c4
                find "$roles_dir" -mindepth 1 -maxdepth 1 | while read roles_item; do
24e3c4
                    format_item_for_files "$roles_item" >> $files_section
24e3c4
                done
24e3c4
            done
24e3c4
        else
24e3c4
            format_item_for_files "$item" >> $files_section
24e3c4
        fi
24e3c4
    done
24e3c4
b0cb28
# Dynamically generate files section entries for %%{ansible_roles_dir}
b0cb28
find %{buildroot}%{ansible_roles_dir} -mindepth 1 -maxdepth 1 | \
24e3c4
    while read item; do
24e3c4
        if [ -d "$item" ]; then
24e3c4
            format_item_for_files "$item" true >> $files_section
24e3c4
            find "$item" -mindepth 1 -maxdepth 1 | while read roles_item; do
24e3c4
                format_item_for_files "$roles_item" >> $files_section
24e3c4
            done
24e3c4
        else
24e3c4
            format_item_for_files "$item" >> $files_section
24e3c4
        fi
24e3c4
    done
24e3c4
24e3c4
%files -f files_section.txt
b0cb28
%dir %{_datadir}/ansible
b0cb28
%dir %{ansible_roles_dir}
b0cb28
%dir %{ansible_collection_files}
b0cb28
%dir %{ansible_collection_files}%{collection_name}
b0cb28
%doc %{_pkgdocdir}
b0cb28
%license %{_pkglicensedir}
24e3c4
24e3c4
%if %{with collection_artifact}
24e3c4
%files collection-artifact
24e3c4
%{_datadir}/ansible/collections/%{collection_namespace}-%{collection_name}-%{version}.tar.gz
24e3c4
%endif
24e3c4
24e3c4
%changelog
b0cb28
* Thu Feb 23 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-3
b0cb28
- Spec: add functionality to build from a commit hash
b0cb28
- Use latest 1.3.0 to add flexibility to AD integration functionality
b0cb28
  Resolves: rhbz#2163696
b0cb28
b0cb28
* Thu Feb 16 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-2
b0cb28
- Replace fedora.linux_system_roles/redhat.rhel_system_roles and
b0cb28
  linux-system-roles.mssql with microsoft.sql.server in the role.
b0cb28
  Resolves: rhbz#2129106
b0cb28
- Use latest 1.3.0 to fix ad_Integration issues
b0cb28
  Resolves: rhbz#2163696
b0cb28
b0cb28
* Wed Feb 1 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-1
b0cb28
- Keep spec consistent with linux-system-roles
b0cb28
  - Return conditionals related to EL to keep up- and downstream consistent
b0cb28
  - Add pretrans scriplet to remove symlinks if exist to fix issue with update
b0cb28
  - Instead of copying doc and license files create symlinks
b0cb28
  - Dynamically generate %%files section
b0cb28
  - Add -t to md2html to generate TOC
b0cb28
  Resolves: rhbz#2129106
b0cb28
- On SQL Server Enterprise Edition, support configuring asynchronous replication
b0cb28
  Resolves: rhbz#2144820
b0cb28
- Support configuring a read-scale SQL server availability group (without pacemaker
b0cb28
  Resolves: rhbz#2144821
b0cb28
- Use the certificate role to create the cert and the key
b0cb28
  Resolves: rhbz#2144852
b0cb28
- Support SQL Server version 2022
b0cb28
  Resolves: rhbz#2153427
b0cb28
- Support integrating with AD Server for authentication
b0cb28
  Resolves: rhbz#2163696
b0cb28
b0cb28
* Thu Sep 22 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.4-2
b0cb28
- Simplify spec file
b0cb28
  - Do not install roles to /usr/share/microsoft and then create symlinks
b0cb28
    to /usr/share/ansible/roles/, instead install directly to
b0cb28
    /usr/share/ansible/roles/
b0cb28
  - Remove unused removal of ambiguous python shebangs
b0cb28
  - Remove all loops because this RPM contains only one role
b0cb28
  - Remove defsource - simply define the source for mssql
b0cb28
  - 's|$RPM_BUILD_ROOT|%%{buildroot}|' for consistency
b0cb28
  - Remove getarchivedir for simplicity
b0cb28
  - Wrap description by 80 symbols and clarify it
b0cb28
  - Remove tests/.fmf dir from the RPM
b0cb28
  Resolves: rhbz#2129106
b0cb28
b0cb28
* Thu Sep 1 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.4-1
b0cb28
- Replicate all provided databases
b0cb28
  - This change fixes the bug where only the first database provided with
b0cb28
mssql_ha_db_names got replicated
b0cb28
  - Clarify that the role does not remove not listed databases
b0cb28
  Resolves: rhbz#2129869
b0cb28
- Input multiple sql scripts
b0cb28
  - Allow _input_sql_file vars to accept list of files
b0cb28
  - Flush handlers prior to inputting post sql script
b0cb28
  Resolves: rhbz#2129872
b0cb28
- Note that ha_cluster is not idempotent
b0cb28
- SPEC: Do not update dates in CHANGELOG.md
b0cb28
151d7a
* Thu Aug 25 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.3-1
151d7a
- Use firewall role to configure firewall for SQL Server
151d7a
  Resolves: rhbz#2120714
151d7a
- Add mssql_ha_virtual_ip
151d7a
  Replace mssql_ha_db_name with mssql_ha_db_names to let users replicate multiple DBs
151d7a
  Resolves: rhbz#2066338
151d7a
- Replace simple `mssql_input_sql_file` with `pre` and `post` variables
151d7a
  Resolves: rhbz#2120713
151d7a
- Add Requires: linux-system-roles or rhel-system-roles
151d7a
- Replace fedora.linux_system_roles:redhat.rhel_system_roles on RHEL
151d7a
- Add downstream values to galaxy.yml
151d7a
- Change defcommit to defsource that takes both tags and commits
151d7a
- Update CHANGELOG.md with the current date and copy it to collection dir
151d7a
151d7a
* Mon Jul 4 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.0-3
151d7a
- Update mssql commit
151d7a
  Resolves: rhbz#2066338
151d7a
- Add condition for upstream spec build for galaxy_transform
151d7a
- Replace extra-mapping with replacing in the legacy format with sed
151d7a
151d7a
* Fri Jun 17 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.0-2
151d7a
  Return mistakenly deleted galaxy.yml string and bump release
151d7a
151d7a
* Fri Jun 17 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.0-1
151d7a
- Add MVP HA functionality to the server role
151d7a
  Resolves: rhbz#2066338
151d7a
- Add mssql_tls_remote_src to the server role
151d7a
  Resolves: rhbz#2039990
151d7a
- Add Requires: linux-system-roles or rhel-system-roles
151d7a
- Add downstream values to galaxy.yml
151d7a
151d7a
* Mon Mar 21 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.1.1-3
151d7a
- Fix inserting ansible_managed
151d7a
  Resolves: rhbz#2065206
151d7a
- Users now can provide a custom URLs to pull packages and RPM key from
151d7a
  Resolves: rhbz#2067175
151d7a
151d7a
* Fri Mar 18 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.1.1-2
151d7a
- RHEL8.6, 9 - add "Requires: ansible-core or ansible"
151d7a
  Resolves: rhbz#2067172
151d7a
151d7a
* Thu Mar 17 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.1.1-1
151d7a
- Insert the "Ansible managed" comment to the /var/opt/mssql/mssql.conf file
151d7a
  Resolves rhbz#2065206
151d7a
151d7a
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
151d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
151d7a
151d7a
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
151d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
151d7a
24e3c4
* Wed Jul 21 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.1.0-1
24e3c4
- Add support for Microsoft SQL Server 2017
24e3c4
24e3c4
* Mon Jul 19 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.0.12-2
24e3c4
- Copy fix for RHEL 7 builds from rhel-system-roles
24e3c4
  Link to the original fix:
24e3c4
  https://src.fedoraproject.org/rpms/linux-system-roles/c/093981119f99ac51a6e06a2714b587e4e2fe287c
24e3c4
24e3c4
* Tue Jul 13 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.0.12-1
24e3c4
- Add the meta-runtime option from the latest auto-maintenance
24e3c4
- Use the latest mssql that ships fixes for issues #24,#25,#26,#27,#28,35
24e3c4
24e3c4
* Tue Jun 29 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.0.11-3
24e3c4
- Add a missing slash at the {ansible_collection_files} definition for rhel 7
24e3c4
24e3c4
* Thu Jun 17 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.0.11-2
24e3c4
- Make the ansible_collection_files macro defined in Fedora automatically and
24e3c4
  in RHEL manually consistent - having slash at the end to clean double-slashes
24e3c4
24e3c4
* Thu Jun 17 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.0.11-1
24e3c4
- Update the version to be consistent with the Galaxy collection at
24e3c4
  https://galaxy.ansible.com/microsoft/sql
24e3c4
24e3c4
* Wed Jun 16 2021 Sergei Petrosian <spetrosi@redhat.com> - 0.0.1-5
24e3c4
- Update commit hash for mssql
24e3c4
24e3c4
* Wed Jun 16 2021 Sergei Petrosian <spetrosi@redhat.com> - 0.0.1-4
24e3c4
- Generate symlinks for roles in /usr/share/ansible/roles
24e3c4
24e3c4
* Wed Jun 16 2021 Sergei Petrosian <spetrosi@redhat.com> - 0.0.1-3
24e3c4
- Copy changes made to linux-system-roles in this PR:
24e3c4
  https://src.fedoraproject.org/rpms/linux-system-roles/pull-request/13#
24e3c4
- Make spec file available for older versions of OSes.
24e3c4
- Drop python3-six dependency which was used by lsr_role2collection.py.
24e3c4
- Drop html files from rpm if the version has no markdown parser.
24e3c4
- Drop unnecessary python scripts which include python3 only code, e.g.,
24e3c4
  f-strings.
24e3c4
  Resolves rhbz#1970165
24e3c4
24e3c4
* Mon Jun 14 2021 Sergei Petrosian <spetrosi@redhat.com> - 0.0.1-2
24e3c4
- Fix long description lines
24e3c4
- Fix incorrect role includes in microsoft/sql-server/tests/
24e3c4
24e3c4
* Thu Jun 3 2021 Sergei Petrosian <spetrosi@redhat.com> - 0.0.1-1
24e3c4
- Initial release