16582c0
# NOTE: ansible-core is in rhel-8.6 and newer, but not installable
16582c0
# in buildroot as it depended on modular Python.
16582c0
# It has been installable at buildtime in 8.8 and newer.
e063b4c
%if 0%{?fedora}
e063b4c
BuildRequires: ansible-packaging
e063b4c
%else
16582c0
%if 0%{?rhel} >= 8
e063b4c
BuildRequires: ansible-core >= 2.11.0
e063b4c
%endif
e063b4c
%endif
e063b4c
61fdc52
%bcond_with collection_artifact
61fdc52
61fdc52
Name: ansible-collection-microsoft-sql
61fdc52
Url: https://github.com/linux-system-roles/mssql
61fdc52
Summary: The Ansible collection for Microsoft SQL Server management
05b335f
Version: 2.1.0
05b335f
Release: 1%{?dist}
61fdc52
61fdc52
License: MIT
61fdc52
a8a0ccc
%global rolename mssql
61fdc52
%global collection_namespace microsoft
61fdc52
%global collection_name sql
a8a0ccc
%global collection_rolename server
e063b4c
%global collection_version %{version}
f3cba9f
%global legacy_rolename %{collection_namespace}.sql-server
a8a0ccc
%global _pkglicensedir %{_licensedir}/%{name}
e070603
e063b4c
# be compatible with the usual Fedora Provides:
e063b4c
Provides: ansible-collection-%{collection_namespace}-%{collection_name} = %{collection_version}-%{release}
e063b4c
e063b4c
# ansible-core is in rhel 8.6 and later - default to ansible-core, but allow
e063b4c
# the use of ansible if present - we may revisit this if the automatic dependency
e063b4c
# generator is added to ansible-core in RHEL
e063b4c
# Fedora - the automatic generator will add this - no need to explicit declare
e063b4c
# it in the spec file
e063b4c
# EL7 - no dependency on ansible because there is no ansible in el7 - user is
e063b4c
# responsible for knowing they have to install ansible
e063b4c
%if 0%{?rhel} >= 8
e063b4c
Requires: (ansible-core >= 2.11.0 or ansible >= 2.9.0)
e063b4c
%endif
e063b4c
e063b4c
%if 0%{?rhel}
e063b4c
Requires: rhel-system-roles
e063b4c
%else
e070603
Requires: linux-system-roles
e063b4c
%endif
e070603
50367bd
%global mainid eadd06cfa98d244b096cff24cd11b668428b1613
3d24c41
# Use either hash or tag for source1id
3d24c41
# %%global source1id 50edba099ab2c8b25b225fe760cb5a459b320030
3d24c41
%global source1id %{version}
a8a0ccc
%global parenturl https://github.com/linux-system-roles
61fdc52
Source: %{parenturl}/auto-maintenance/archive/%{mainid}/auto-maintenance-%{mainid}.tar.gz
3d24c41
Source1: %{parenturl}/%{rolename}/archive/%{source1id}/%{rolename}-%{source1id}.tar.gz
61fdc52
bce2c16
# Includes with ansible_collection_build/_install that differ between RHEL versions
bce2c16
Source1002: ansible-packaging.inc
bce2c16
%include %{SOURCE1002}
bce2c16
61fdc52
BuildArch: noarch
61fdc52
61fdc52
# Requirements for galaxy_transform.py
61fdc52
BuildRequires: python3
e063b4c
BuildRequires: python%{python3_pkgversion}-ruamel-yaml
61fdc52
61fdc52
%description
24db17a
This RPM installs the %{collection_namespace}.%{collection_name} Ansible
24db17a
collection that provides the %{collection_rolename} role for Microsoft SQL
24db17a
Server management. This RPM also installs the %{legacy_rolename} role
24db17a
in the legacy roles format for users of Ansible < 2.9.
61fdc52
61fdc52
%if %{with collection_artifact}
61fdc52
%package collection-artifact
61fdc52
Summary: Collection artifact to import to Automation Hub / Ansible Galaxy
61fdc52
61fdc52
%description collection-artifact
24db17a
Collection artifact for %{name}. This package contains
6471cf0
%{collection_namespace}-%{collection_name}-%{collection_version}.tar.gz
61fdc52
%endif
61fdc52
e063b4c
%pretrans -p <lua>
ca4e1c5
path = "%{ansible_roles_dir}/%{legacy_rolename}"
e063b4c
st = posix.stat(path)
e063b4c
if st and st.type == "link" then
e063b4c
  os.remove(path)
e063b4c
end
e063b4c
61fdc52
%prep
ff429a6
%setup -q -a1 -n auto-maintenance-%{mainid}
61fdc52
3d24c41
mv %{rolename}-%{source1id} %{rolename}
61fdc52
f3cba9f
# Remove symlinks in tests/roles
a8a0ccc
if [ -d %{rolename}/tests/roles ]; then
a8a0ccc
    find %{rolename}/tests/roles -type l -exec rm {} \;
a8a0ccc
    if [ -d %{rolename}/tests/roles/linux-system-roles.%{rolename} ]; then
a8a0ccc
        rm -r %{rolename}/tests/roles/linux-system-roles.%{rolename}
61fdc52
    fi
a8a0ccc
fi
61fdc52
61fdc52
%build
332909d
# Move a hidden .README.html to a not hidden README.html
332909d
mv %{rolename}/.README.html %{rolename}/README.html
61fdc52
61fdc52
mkdir .collections
332909d
61fdc52
# Copy galaxy.yml for the collection build
a8a0ccc
cp %{rolename}/.collection/galaxy.yml ./
e070603
e063b4c
%if 0%{?rhel}
61fdc52
# Ensure the correct entries in galaxy.yml
6471cf0
./galaxy_transform.py "%{collection_namespace}" "%{collection_name}" "%{collection_version}" \
e070603
                      "Ansible collection for Microsoft SQL Server management" \
e063b4c
                      "https://github.com/linux-system-roles/mssql" \
332909d
                      "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" \
332909d
                      "https://access.redhat.com/articles/3050101" \
332909d
                      "https://issues.redhat.com/secure/CreateIssueDetails!init.jspa?pid=12332745&summary=Your%20request%20summary&issuetype=1&priority=10200&labels=Partner-Feature-Request&components=12377164" \
e063b4c
                      > galaxy.yml.tmp
e063b4c
%else
6471cf0
./galaxy_transform.py "%{collection_namespace}" "%{collection_name}" "%{collection_version}" \
e063b4c
                      "Ansible collection for Microsoft SQL Server management" \
e070603
                      > galaxy.yml.tmp
e063b4c
%endif
61fdc52
mv galaxy.yml.tmp galaxy.yml
61fdc52
e063b4c
%if 0%{?rhel}
3d24c41
# Replace "fedora.linux_system_roles" with "redhat.rhel_system_roles"
3d24c41
# This is for the "roles calling other roles" case
6471cf0
find . -type f -exec \
6471cf0
     sed -e "s/fedora\.linux_system_roles/redhat.rhel_system_roles/g" \
3d24c41
         -i {} \;
e063b4c
%endif
e063b4c
e063b4c
# Convert to the collection format
a8a0ccc
python3 lsr_role2collection.py --role "%{rolename}" \
a8a0ccc
    --src-path "%{rolename}" \
a8a0ccc
    --src-owner linux-system-roles \
a8a0ccc
    --dest-path .collections \
332909d
    --readme %{rolename}/.collection/README.md \
a8a0ccc
    --namespace %{collection_namespace} \
a8a0ccc
    --collection %{collection_name} \
a8a0ccc
    --new-role "%{collection_rolename}" \
a8a0ccc
    --meta-runtime lsr_role2collection/runtime.yml
61fdc52
3d24c41
# Replace remnants of "linux-system-roles.mssql" with collection FQDN
3d24c41
find .collections/ansible_collections/%{collection_namespace}/%{collection_name}/ -type f -exec \
3d24c41
     sed -e "s/linux-system-roles[.]%{rolename}\\>/%{collection_namespace}.%{collection_name}.%{collection_rolename}/g" \
3d24c41
         -i {} \;
3d24c41
e063b4c
# removing dot files/dirs
61fdc52
rm -r .collections/ansible_collections/%{collection_namespace}/%{collection_name}/.[A-Za-z]*
8702f89
rm -r .collections/ansible_collections/%{collection_namespace}/%{collection_name}/tests/%{collection_rolename}/.[A-Za-z]*
61fdc52
332909d
# Copy CHANGELOG.md from collection role to parent collection dir
332909d
cp .collections/ansible_collections/%{collection_namespace}/%{collection_name}/roles/%{collection_rolename}/CHANGELOG.md \
332909d
    .collections/ansible_collections/%{collection_namespace}/%{collection_name}
332909d
61fdc52
# Copy galaxy.yml to the collection directory
61fdc52
cp -p galaxy.yml .collections/ansible_collections/%{collection_namespace}/%{collection_name}
61fdc52
f3cba9f
# Build collection
42a476d
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
42a476d
%ansible_collection_build
42a476d
popd
42a476d
61fdc52
%install
07382af
mkdir -p %{buildroot}%{ansible_roles_dir}
61fdc52
332909d
# Step 1: Install the role in legacy format
f3cba9f
# Copy role in legacy format and rename rolename in tests
e063b4c
cp -pR "%{rolename}" "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}"
3d24c41
find %{buildroot}%{ansible_roles_dir}/%{legacy_rolename} -type f -exec \
332909d
     sed -e "s/%{collection_namespace}.%{collection_name}.%{collection_rolename}/%{legacy_rolename}/g" \
3d24c41
         -i {} \;
61fdc52
61fdc52
# Copy README, COPYING, and LICENSE files to the corresponding directories
008cbd9
mkdir -p %{buildroot}%{_pkglicensedir}
008cbd9
mkdir -p "%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
e063b4c
ln -sr "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/README.md" \
008cbd9
    "%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
e063b4c
ln -sr "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/README.html" \
008cbd9
    "%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
07382af
if [ -f "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/COPYING" ]; then
e063b4c
    ln -sr "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/COPYING" \
008cbd9
        "%{buildroot}%{_pkglicensedir}/%{legacy_rolename}.COPYING"
a8a0ccc
fi
07382af
if [ -f "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/LICENSE" ]; then
e063b4c
    ln -sr "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/LICENSE" \
008cbd9
        "%{buildroot}%{_pkglicensedir}/%{legacy_rolename}.LICENSE"
a8a0ccc
fi
61fdc52
61fdc52
# Remove dot files
07382af
rm -r %{buildroot}%{ansible_roles_dir}/*/.[A-Za-z]*
07382af
rm -r %{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/tests/.[A-Za-z]*
61fdc52
332909d
# Step 2: Remove molecule directory from all roles under ansible_roles_dir
07382af
rm -r %{buildroot}%{ansible_roles_dir}/*/molecule
61fdc52
332909d
# Step 3: Install the role in collection format
61fdc52
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
42a476d
%ansible_collection_install
61fdc52
popd
61fdc52
008cbd9
mkdir -p %{buildroot}%{_pkgdocdir}/collection/roles
61fdc52
332909d
# Link collection README to /usr/share/doc/ansible-collection-microsoft-sql/collection.
e063b4c
ln -sr %{buildroot}%{ansible_collection_files}%{collection_name}/README.md \
008cbd9
   %{buildroot}%{_pkgdocdir}/collection
61fdc52
332909d
# Link role READMEs to /usr/share/doc/ansible-collection-microsoft-sql/collection/roles/server
332909d
mkdir -p %{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}
332909d
ln -sr %{buildroot}%{ansible_collection_files}%{collection_name}/roles/%{collection_rolename}/README.md \
332909d
    %{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}
332909d
ln -sr %{buildroot}%{ansible_collection_files}%{collection_name}/roles/%{collection_rolename}/README.html \
332909d
    %{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}
61fdc52
332909d
# Step 4: Copy collection artifact to /usr/share/ansible/collections/ for collection-artifact
61fdc52
%if %{with collection_artifact}
61fdc52
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
6471cf0
if [ -f %{collection_namespace}-%{collection_name}-%{collection_version}.tar.gz ]; then
6471cf0
    mv %{collection_namespace}-%{collection_name}-%{collection_version}.tar.gz \
008cbd9
       %{buildroot}%{_datadir}/ansible/collections/
61fdc52
fi
61fdc52
popd
61fdc52
%endif
61fdc52
332909d
# Step 5: Generate the %%files section in files_section.txt
e063b4c
# Bulk files inclusion is not possible because roles store doc and licence
e063b4c
# files together with other files
e063b4c
format_item_for_files() {
e063b4c
    # $1 is directory or file name in buildroot
e063b4c
    # $2 - if true, and item is a directory, use %%dir
e063b4c
    local item
e063b4c
    local files_item
e063b4c
    item="$1" # full path including buildroot
e063b4c
    files_item=${item##"%{buildroot}"} # path with cut buildroot to be added to %%files
e063b4c
    if [ -L "$item" ]; then
e063b4c
        echo "$files_item"
e063b4c
    elif [ -d "$item" ]; then
e063b4c
        if [[ "$item" == */doc* ]]; then
e063b4c
            echo "%doc $files_item"
e063b4c
        elif [ "${2:-false}" = true ]; then
e063b4c
            echo "%dir $files_item"
e063b4c
        else
e063b4c
            echo "$files_item"
e063b4c
        fi
e063b4c
    elif [[ "$item" == */README.md ]] || [[ "$item" == */README.html ]] || [[ "$item" == */CHANGELOG.md ]]; then
e063b4c
        if [[ "$item" == */private_* ]]; then
e063b4c
            # mark as regular file, not %%doc
e063b4c
            echo "$files_item"
e063b4c
        else
e063b4c
            echo "%doc $files_item"
e063b4c
        fi
e063b4c
    elif [[ "$item" == */COPYING* ]] || [[ "$item" == */LICENSE* ]]; then
e063b4c
        echo "%""%""license" "$files_item"
e063b4c
    else
e063b4c
        echo "$files_item"
e063b4c
    fi
e063b4c
}
e063b4c
e063b4c
files_section=files_section.txt
e063b4c
rm -f $files_section
e063b4c
touch $files_section
e063b4c
# Dynamically generate files section entries for %%{ansible_collection_files}
e063b4c
find %{buildroot}%{ansible_collection_files}%{collection_name} -mindepth 1 -maxdepth 1 | \
e063b4c
    while read item; do
e063b4c
        if [[ "$item" == */roles ]]; then
e063b4c
            format_item_for_files "$item" true >> $files_section
e063b4c
            find "$item" -mindepth 1 -maxdepth 1 | while read roles_dir; do
e063b4c
                format_item_for_files "$roles_dir" true >> $files_section
e063b4c
                find "$roles_dir" -mindepth 1 -maxdepth 1 | while read roles_item; do
e063b4c
                    format_item_for_files "$roles_item" >> $files_section
e063b4c
                done
e063b4c
            done
e063b4c
        else
e063b4c
            format_item_for_files "$item" >> $files_section
e063b4c
        fi
e063b4c
    done
e063b4c
e063b4c
# Dynamically generate files section entries for %%{ansible_roles_dir}
e063b4c
find %{buildroot}%{ansible_roles_dir} -mindepth 1 -maxdepth 1 | \
e063b4c
    while read item; do
e063b4c
        if [ -d "$item" ]; then
e063b4c
            format_item_for_files "$item" true >> $files_section
e063b4c
            find "$item" -mindepth 1 -maxdepth 1 | while read roles_item; do
e063b4c
                format_item_for_files "$roles_item" >> $files_section
e063b4c
            done
e063b4c
        else
e063b4c
            format_item_for_files "$item" >> $files_section
e063b4c
        fi
e063b4c
    done
e063b4c
e063b4c
%files -f files_section.txt
e063b4c
%dir %{_datadir}/ansible
e063b4c
%dir %{ansible_roles_dir}
e063b4c
%dir %{ansible_collection_files}
e063b4c
%dir %{ansible_collection_files}%{collection_name}
e063b4c
%doc %{_pkgdocdir}
222391e
%license %{_pkglicensedir}
61fdc52
61fdc52
%if %{with collection_artifact}
61fdc52
%files collection-artifact
6471cf0
%{_datadir}/ansible/collections/%{collection_namespace}-%{collection_name}-%{collection_version}.tar.gz
61fdc52
%endif
61fdc52
61fdc52
%changelog
05b335f
* Tue Nov 21 2023 Sergei Petrosian <spetrosi@redhat.com> - 2.1.0-1
05b335f
- Update role to 2.1.0 to add support for installing mssql on RHEL 9
05b335f
50367bd
* Mon Sep 18 2023 Sergei Petrosian <spetrosi@redhat.com> - 2.0.2-2
50367bd
- Use latest auto-maintenance for updates in lsr_role2collection.py
50367bd
332909d
* Wed Aug 16 2023 Sergei Petrosian <spetrosi@redhat.com> - 2.0.2-1
332909d
- Update role to version 2.0.2 to improve collection readme
332909d
- Remove with_html, instead use built-in .README.html
332909d
- Update galaxy fields
332909d
be2232c
* Fri Jul 28 2023 Sergei Petrosian <spetrosi@redhat.com> - 2.0.1-1
be2232c
- Update role to version 2.0.1 to fix issue in IDM CI
be2232c
5fcefbf
* Thu Jul 27 2023 Sergei Petrosian <spetrosi@redhat.com> - 2.0.0-1
5fcefbf
- Update role to version 2.0.0 to enhance AD integration
5fcefbf
Resolves: RHEL-877
5fcefbf
Resolves: RHEL-878
5fcefbf
Resolves: RHEL-879
5fcefbf
Resolves: RHEL-880
5fcefbf
7d51b2f
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org>
7d51b2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
7d51b2f
16582c0
* Wed May 31 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.4.1-1
16582c0
- Update BuiildRequires to use ansible-core on RHEL > 8.8
16582c0
- Update role to version 1.4.1 to add customizable storage paths
16582c0
bce2c16
* Tue May 30 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-4
bce2c16
- Move RHEL related code into an include for spec readability
bce2c16
3d24c41
* Mon Feb 27 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-3
3d24c41
- Spec: add functionality to build from a commit hash
3d24c41
- Use latest 1.3.0 to add flexibility to AD integration functionality
3d24c41
  Resolves: rhbz#2163709
3d24c41
ca4e1c5
* Fri Feb 3 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-1
ca4e1c5
- On SQL Server Enterprise Edition, support configuring asynchronous replication
ca4e1c5
  Resolves: rhbz#2144820
ca4e1c5
- Support configuring a read-scale SQL server availability group (without pacemaker
ca4e1c5
  Resolves: rhbz#2144821
ca4e1c5
- Use the certificate role to create the cert and the key
ca4e1c5
  Resolves: rhbz#2144852
ca4e1c5
- Support SQL Server version 2022
ca4e1c5
  Resolves: rhbz#2153427
ca4e1c5
- Support integrating with AD Server for authentication
ca4e1c5
  Resolves: rhbz#2163696
ca4e1c5
- md2html.sh - use -t to generate TOC
ca4e1c5
- Replace installbase with ansible_roles_dir in pretrans scriplet
ca4e1c5
efb09ad
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-5
efb09ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
efb09ad
e063b4c
* Fri Nov 11 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.4-4
e063b4c
- Keep spec consistent with linux-system-roles
e063b4c
  - Return conditionals related to EL to keep up- and downstream consistent
e063b4c
  - Add pretrans scriplet to remove symlinks if exist to fix issue with update
e063b4c
  - Instead of copying doc and license files create symlinks
e063b4c
  - Dynamically generate %%files section
e063b4c
f3cba9f
* Thu Sep 22 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.4-3
f3cba9f
- Further simplify spec file
f3cba9f
  - Do not install roles to /usr/share/microsoft and then create symlinks
f3cba9f
    to /usr/share/ansible/roles/, instead install directly to
f3cba9f
    /usr/share/ansible/roles/
f3cba9f
  - Remove unused removal of ambiguous python shebangs
f3cba9f
187290b
* Tue Sep 20 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.4-2
187290b
- Remove all code unrelated to Fedora to siplify the file
187290b
  - Remove bcond_with ansible because Fedora always have ansible
187290b
  - Replace the ansible_build_dep macro with simple ansible-packaging
abda616
  - Remove %%bcond_with html because Fedora always can convert md to html
187290b
  - Remove conditions related to RHEL
187290b
  - Replace ansible_collection_build_install with biult-in build & install
187290b
  - Remove unrelated to Fedora Provides
187290b
  - Remove all loops because this RPM contains only one role
187290b
  - Remove definition of ansible_collection_files as its part of ansible-packaging
abda616
  - Clean up %%files section
abda616
    - Use ansible_collection_files in %%files section
abda616
    - Remove duplicated lines and wildcards
187290b
  - Remove defsource - simply define the source for mssql
abda616
  - Escape macros in comments with a second %
abda616
  - 's|$RPM_BUILD_ROOT|%%{buildroot}|' for consistency
abda616
  -  Remove getarchivedir for simplicity
abda616
  - Wrap description by 80 symbols and clarify it
abda616
  - Remove tests/.fmf dir from the RPM
187290b
  Resolves: rhbz#2126901
187290b
7d65ef6
* Thu Sep 1 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.4-1
7d65ef6
- Replicate all provided databases
7d65ef6
  - This change fixes the bug where only the first database provided with
7d65ef6
mssql_ha_db_names got replicated
7d65ef6
  - Clarify that the role does not remove not listed databases
7d65ef6
  Resolves: rhbz#2066337
7d65ef6
- Input multiple sql scripts
7d65ef6
  - Allow _input_sql_file vars to accept list of files
7d65ef6
  - Flush handlers prior to inputting post sql script
7d65ef6
  Resolves: rhbz#2120712
7d65ef6
- Note that ha_cluster is not idempotent
7d65ef6
- SPEC: Do not update dates in CHANGELOG.md
7d65ef6
e070603
* Thu Aug 25 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.3-1
e070603
- Use firewall role to configure firewall for SQL Server
e070603
  Resolves: rhbz#2120709
e070603
- Add mssql_ha_virtual_ip
e070603
  Replace mssql_ha_db_name with mssql_ha_db_names to let users replicate multiple DBs
e070603
  Resolves: rhbz#2066337
e070603
e070603
- Replace simple `mssql_input_sql_file` with `pre` and `post` variables
e070603
  Resolves: rhbz#2120712
e070603
- Add Requires: linux-system-roles or rhel-system-roles
e070603
- Replace fedora.linux_system_roles:redhat.rhel_system_roles on RHEL
e070603
- Add downstream values to galaxy.yml
e070603
- Change defcommit to defsource that takes both tags and commits
e070603
- Update CHANGELOG.md with the current date and copy it to collection dir
e070603
881ad23
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-4
881ad23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
881ad23
d670ba4
* Mon Mar 21 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.1.1-3
d670ba4
- Fix inserting ansible_managed
d670ba4
  Resolves: rhbz#2057651 (EL8)
d670ba4
  Resolves: rhbz#2064690 (EL9)
d670ba4
- Users now can provide a custom URLs to pull packages and RPM key from
d670ba4
  Resolves: rhbz#2038256 (EL8)
d670ba4
  Resolves: rhbz#2064648 (EL9)
d670ba4
53d39de
* Fri Mar 18 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.1.1-2
53d39de
- RHEL8.6, 9 - add "Requires: ansible-core or ansible"
53d39de
  Resolves: rhbz#2065664 (EL8)
53d39de
  Resolves: rhbz#2065669 (EL8)
53d39de
f06b943
* Thu Mar 17 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.1.1-1
f06b943
- Insert the "Ansible managed" comment to the /var/opt/mssql/mssql.conf file
f06b943
  Resolves rhbz#2057651 (EL8)
f06b943
  Resolves rhbz#2064690 (EL9)
f06b943
a849cbf
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
a849cbf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
a849cbf
148ea0c
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
148ea0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
148ea0c
dfb58b5
* Wed Jul 21 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.1.0-1
dfb58b5
- Add support for Microsoft SQL Server 2017
dfb58b5
8e9e8fc
* Mon Jul 19 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.0.12-2
8e9e8fc
- Copy fix for RHEL 7 builds from rhel-system-roles
8e9e8fc
  Link to the original fix:
8e9e8fc
  https://src.fedoraproject.org/rpms/linux-system-roles/c/093981119f99ac51a6e06a2714b587e4e2fe287c
8e9e8fc
fff6eb0
* Tue Jul 13 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.0.12-1
fff6eb0
- Add the meta-runtime option from the latest auto-maintenance
fff6eb0
- Use the latest mssql that ships fixes for issues #24,#25,#26,#27,#28,35
fff6eb0
33ee3ab
* Tue Jun 29 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.0.11-3
b36467e
- Add a missing slash at the {ansible_collection_files} definition for rhel 7
b36467e
b36467e
* Thu Jun 17 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.0.11-2
9a59731
- Make the ansible_collection_files macro defined in Fedora automatically and
9a59731
  in RHEL manually consistent - having slash at the end to clean double-slashes
9a59731
ba384e7
* Thu Jun 17 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.0.11-1
ba384e7
- Update the version to be consistent with the Galaxy collection at
ba384e7
  https://galaxy.ansible.com/microsoft/sql
ba384e7
c484cfc
* Wed Jun 16 2021 Sergei Petrosian <spetrosi@redhat.com> - 0.0.1-5
c484cfc
- Update commit hash for mssql
c484cfc
3c2d8d7
* Wed Jun 16 2021 Sergei Petrosian <spetrosi@redhat.com> - 0.0.1-4
3c2d8d7
- Generate symlinks for roles in /usr/share/ansible/roles
3c2d8d7
efcfdf9
* Wed Jun 16 2021 Sergei Petrosian <spetrosi@redhat.com> - 0.0.1-3
efcfdf9
- Copy changes made to linux-system-roles in this PR:
efcfdf9
  https://src.fedoraproject.org/rpms/linux-system-roles/pull-request/13#
efcfdf9
- Make spec file available for older versions of OSes.
efcfdf9
- Drop python3-six dependency which was used by lsr_role2collection.py.
efcfdf9
- Drop html files from rpm if the version has no markdown parser.
efcfdf9
- Drop unnecessary python scripts which include python3 only code, e.g.,
efcfdf9
  f-strings.
efcfdf9
  Resolves rhbz#1970165
efcfdf9
74ec52c
* Mon Jun 14 2021 Sergei Petrosian <spetrosi@redhat.com> - 0.0.1-2
74ec52c
- Fix long description lines
74ec52c
- Fix incorrect role includes in microsoft/sql-server/tests/
74ec52c
61fdc52
* Thu Jun 3 2021 Sergei Petrosian <spetrosi@redhat.com> - 0.0.1-1
61fdc52
- Initial release