Blame SPECS/rhel-system-roles.spec

a0bc34
# NOTE: ansible-core is in rhel-8.6 and newer, but not installable
a0bc34
# in buildroot as it depended on modular Python.
a0bc34
# It has been installable at buildtime in 8.8 and newer.
a0bc34
%if 0%{?fedora}
a0bc34
BuildRequires: ansible-packaging
6e715b
%else
a0bc34
%if 0%{?rhel} >= 8
a0bc34
BuildRequires: ansible-core >= 2.11.0
3754e5
%endif
6e715b
%endif
6e715b
6e715b
%bcond_with collection_artifact
6e715b
6e715b
%if 0%{?fedora} || 0%{?rhel} >= 8
6e715b
%bcond_without html
6e715b
%else
6e715b
# pandoc is not supported in rhel 7 and older,
6e715b
# which is needed for converting .md to .html.
6e715b
%bcond_with html
6e715b
%endif
6e715b
0d3d3b
%if 0%{?rhel}
617c05
Name: rhel-system-roles
0d3d3b
%else
0d3d3b
Name: linux-system-roles
0d3d3b
%endif
88a858
Url: https://github.com/linux-system-roles
617c05
Summary: Set of interfaces for unified system management
a0bc34
Version: 1.21.2
a0bc34
Release: 1%{?dist}
617c05
3754e5
License: GPLv3+ and MIT and BSD and Python
6e715b
%global _pkglicensedir %{_licensedir}/%{name}
a0bc34
%global roleinstprefix %{name}.
6e715b
%if 0%{?rhel}
6e715b
%global collection_namespace redhat
6e715b
%global collection_name rhel_system_roles
6e715b
%else
6e715b
%global collection_namespace fedora
6e715b
%global collection_name linux_system_roles
6e715b
%endif
6e715b
6e715b
%global collection_version %{version}
6e715b
a0bc34
# be compatible with the usual Fedora Provides:
a0bc34
Provides: ansible-collection-%{collection_namespace}-%{collection_name} = %{collection_version}-%{release}
6e715b
3754e5
# ansible-core is in rhel 8.6 and later - default to ansible-core, but allow
3754e5
# the use of ansible if present - we may revisit this if the automatic dependency
3754e5
# generator is added to ansible-core in RHEL
3754e5
# Fedora - the automatic generator will add this - no need to explicit declare
3754e5
# it in the spec file
3754e5
# EL7 - no dependency on ansible because there is no ansible in el7 - user is
3754e5
# responsible for knowing they have to install ansible
3754e5
%if 0%{?rhel} >= 8
3754e5
Requires: (ansible-core >= 2.11.0 or ansible >= 2.9.0)
3754e5
%endif
6e715b
0d3d3b
# For each role, call either defcommit() or deftag(). The other macros
0d3d3b
# (%%id and %%shortid) can be then used in the same way in both cases.
0d3d3b
# This way  the rest of the spec file des not need to know whether we are
0d3d3b
# dealing with a tag or a commit.
6e715b
%global archiveext tar.gz
6e715b
# list of role names
6e715b
%global rolenames %nil
6e715b
# list of assignments that can be used to populate a bash associative array variable
6e715b
%global rolestodir %nil
6e715b
%define getarchivedir() %(p=%{basename:%{S:%{1}}}; echo ${p%%.%{archiveext}})
6e715b
6e715b
%define defcommit() %{expand:%%global ref%{1} %{2}
6e715b
%%global shortcommit%{1} %%(c=%%{ref%{1}}; echo ${c:0:7})
6e715b
%%global extractdir%{1} %%{expand:%%getarchivedir %{1}}
6e715b
%%{!?repo%{1}:%%global repo%{1} %%{rolename%{1}}}
88a858
%%global archiveurl%{1} %%{?forgeorg%{1}}%%{!?forgeorg%{1}:%%{url}}/%%{repo%{1}}/archive/%%{ref%{1}}/%%{repo%{1}}-%%{ref%{1}}.tar.gz
6e715b
%%global rolenames %%{?rolenames} %%{rolename%{1}}
6e715b
%%global roletodir%{1} [%{rolename%{1}}]="%{extractdir%{1}}"
6e715b
%%global rolestodir %%{?rolestodir} %{roletodir%{1}}
0d3d3b
}
0d3d3b
6e715b
%define deftag() %{expand:%%global ref%{1} %{2}
6e715b
%%global extractdir%{1} %%{expand:%%getarchivedir %{1}}
6e715b
%%{!?repo%{1}:%%global repo%{1} %%{rolename%{1}}}
88a858
%%global archiveurl%{1} %%{?forgeorg%{1}}%%{!?forgeorg%{1}:%%{url}}/%%{repo%{1}}/archive/%%{ref%{1}}/%%{repo%{1}}-%%{ref%{1}}.tar.gz
6e715b
%%global rolenames %%{?rolenames} %%{rolename%{1}}
6e715b
%%global roletodir%{1} [%{rolename%{1}}]="%{extractdir%{1}}"
6e715b
%%global rolestodir %%{?rolestodir} %%{roletodir%{1}}
0d3d3b
}
0d3d3b
a0bc34
%global mainid f8932b3155a3cb7579a2b3c453578f7bee6bb837
a0bc34
Source: %{url}/auto-maintenance/archive/%{mainid}/auto-maintenance-%{mainid}.tar.gz
a0bc34
a0bc34
# BEGIN AUTOGENERATED SOURCES
617c05
%global rolename1 postfix
a0bc34
%deftag 1 1.3.6
617c05
617c05
%global rolename2 selinux
a0bc34
%deftag 2 1.5.9
617c05
617c05
%global rolename3 timesync
a0bc34
%deftag 3 1.7.5
6e715b
6e715b
%global rolename4 kdump
a0bc34
%deftag 4 1.2.9
617c05
617c05
%global rolename5 network
a0bc34
%deftag 5 1.11.4
48847c
48847c
%global rolename6 storage
a0bc34
%deftag 6 1.9.8
6e715b
6e715b
%global rolename7 metrics
a0bc34
%deftag 7 1.8.4
6e715b
6e715b
%global rolename8 tlog
a0bc34
%deftag 8 1.2.14
6e715b
6e715b
%global rolename9 kernel_settings
a0bc34
%deftag 9 1.1.15
6e715b
6e715b
%global rolename10 logging
a0bc34
%deftag 10 1.11.7
6e715b
6e715b
%global rolename11 nbde_server
a0bc34
%deftag 11 1.3.5
6e715b
6e715b
%global rolename12 nbde_client
a0bc34
%deftag 12 1.2.13
6e715b
6e715b
%global rolename13 certificate
a0bc34
%deftag 13 1.1.11
6e715b
6e715b
%global rolename14 crypto_policies
a0bc34
%deftag 14 1.2.9
6e715b
88a858
%global forgeorg15 https://github.com/willshersystems
6e715b
%global repo15 ansible-sshd
6e715b
%global rolename15 sshd
a0bc34
%deftag 15 v0.19.0
6e715b
6e715b
%global rolename16 ssh
a0bc34
%deftag 16 1.1.15
6e715b
6e715b
%global rolename17 ha_cluster
a0bc34
%deftag 17 1.9.2
6e715b
88a858
%global rolename18 vpn
a0bc34
%deftag 18 1.5.6
3754e5
3754e5
%global rolename19 firewall
a0bc34
%deftag 19 1.4.4
88a858
3754e5
%global rolename20 cockpit
a0bc34
%deftag 20 1.4.5
a0bc34
a0bc34
%global rolename21 podman
a0bc34
%deftag 21 1.1.5
a0bc34
a0bc34
%global rolename22 ad_integration
a0bc34
%deftag 22 1.1.0
a0bc34
a0bc34
%global rolename23 rhc
a0bc34
%deftag 23 1.1.2
a0bc34
a0bc34
%global rolename24 journald
a0bc34
%deftag 24 1.0.3
a0bc34
a0bc34
#%%global rolename25 postgresql
a0bc34
#%%deftag 25 1.0.3
3754e5
6e715b
Source1: %{archiveurl1}
6e715b
Source2: %{archiveurl2}
6e715b
Source3: %{archiveurl3}
6e715b
Source4: %{archiveurl4}
6e715b
Source5: %{archiveurl5}
6e715b
Source6: %{archiveurl6}
6e715b
Source7: %{archiveurl7}
6e715b
Source8: %{archiveurl8}
6e715b
Source9: %{archiveurl9}
6e715b
Source10: %{archiveurl10}
6e715b
Source11: %{archiveurl11}
6e715b
Source12: %{archiveurl12}
6e715b
Source13: %{archiveurl13}
6e715b
Source14: %{archiveurl14}
6e715b
Source15: %{archiveurl15}
6e715b
Source16: %{archiveurl16}
6e715b
Source17: %{archiveurl17}
88a858
Source18: %{archiveurl18}
3754e5
Source19: %{archiveurl19}
3754e5
Source20: %{archiveurl20}
a0bc34
Source21: %{archiveurl21}
a0bc34
Source22: %{archiveurl22}
a0bc34
Source23: %{archiveurl23}
a0bc34
Source24: %{archiveurl24}
a0bc34
#Source25: %{archiveurl25}
a0bc34
# END AUTOGENERATED SOURCES
3754e5
a0bc34
# Includes with definitions/tags that differ between RHEL and Fedora
a0bc34
Source1001: extrasources.inc
3754e5
a0bc34
%include %{SOURCE1001}
6e715b
a0bc34
# Includes with ansible_collection_build/_install that differ between RHEL versions
a0bc34
Source1002: ansible-packaging.inc
0d3d3b
a0bc34
%include %{SOURCE1002}
3754e5
a0bc34
Source1003: vendoring-prep.inc
a0bc34
Source1004: vendoring-build.inc
3754e5
a0bc34
Source995: CHANGELOG.md
48847c
617c05
BuildArch: noarch
617c05
6e715b
%if %{with html}
6e715b
# Requirements for md2html.sh to build the documentation
6e715b
%if 0%{?fedora} || 0%{?rhel} >= 9
6e715b
BuildRequires: rubygem-kramdown-parser-gfm
6e715b
%else
6e715b
BuildRequires: pandoc
6e715b
BuildRequires: asciidoc
6e715b
BuildRequires: highlight
6e715b
%endif
6e715b
%endif
6e715b
6e715b
# Requirements for galaxy_transform.py
6e715b
BuildRequires: python3
a0bc34
BuildRequires: python%{python3_pkgversion}-ruamel-yaml
0d3d3b
a0bc34
# We must put %%description within the if block to avoid empty lines showing up.
0d3d3b
%if 0%{?rhel}
617c05
%description
b30e92
Collection of Ansible roles and modules that provide a stable and
b30e92
consistent configuration interface for managing multiple versions
b30e92
of Red Hat Enterprise Linux.
0d3d3b
%else
0d3d3b
%description
0d3d3b
Collection of Ansible roles and modules that provide a stable and
0d3d3b
consistent configuration interface for managing multiple versions
0d3d3b
of Fedora, Red Hat Enterprise Linux & CentOS.
0d3d3b
%endif
617c05
6e715b
%if %{with collection_artifact}
6e715b
%package collection-artifact
6e715b
Summary: Collection artifact to import to Automation Hub / Ansible Galaxy
6e715b
6e715b
%description collection-artifact
6e715b
Collection artifact for %{name}. This package contains %{collection_namespace}-%{collection_name}-%{version}.tar.gz
0d3d3b
%endif
6e715b
a0bc34
# Fix issue with package update introduce with changing symlink to directory
a0bc34
# in 1.21.1-5
a0bc34
%pretrans -p <lua>
a0bc34
roles = {
a0bc34
    "certificate", "cockpit", "crypto_policies", "firewall", "ha_cluster",
a0bc34
    "kdump", "kernel_settings", "logging", "metrics", "nbde_client",
a0bc34
    "nbde_server", "network", "postfix", "selinux", "ssh", "sshd", "storage",
a0bc34
    "timesync", "tlog", "vpn"
a0bc34
}
a0bc34
for i,v in ipairs(roles) do
a0bc34
    path = "/usr/share/ansible/roles/linux-system-roles." .. v
a0bc34
    st = posix.stat(path)
a0bc34
    if st and st.type == "link" then
a0bc34
      os.remove(path)
a0bc34
    end
a0bc34
end
a0bc34
6e715b
%prep
a0bc34
# BEGIN AUTOGENERATED SETUP
a0bc34
%setup -q -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12 -a13 -a14 -a15 -a16 -a17 -a18 -a19 -a20 -a21 -a22 -a23 -a24 -n %{getarchivedir 0}
a0bc34
#%%setup -q -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12 -a13 -a14 -a15 -a16 -a17 -a18 -a19 -a20 -a21 -a22 -a23 -a24 -a25 -n %{getarchivedir 0}
a0bc34
# END AUTOGENERATED SETUP
a0bc34
a0bc34
# vendoring prep steps, if any
a0bc34
%include %{SOURCE1003}
6e715b
6e715b
declare -A ROLESTODIR=(%{rolestodir})
6e715b
for rolename in %{rolenames}; do
88a858
    dir_from_archive="${ROLESTODIR[${rolename}]}"
88a858
    if [ ! -d "$dir_from_archive" ]; then
88a858
        # ansible-sshd uses tags like vX.Y.Z
88a858
        # using the github archive/ link with a tag like this strips
88a858
        # the leading v from the tag used to construct the directory
88a858
        # name in the archive
88a858
        if [[ "$dir_from_archive" =~ %{repo15}-v([0-9]+[.][0-9]+.*) ]]; then
88a858
            dir_from_archive="%{repo15}-${BASH_REMATCH[1]}"
88a858
        fi
88a858
    fi
88a858
    mv "$dir_from_archive" ${rolename}
6e715b
done
6e715b
a0bc34
%if 0%{?rhel}
88a858
cd %{rolename2}/tests
88a858
# this test causes avcs we want to ignore
88a858
sed -r -i -e '/hosts: all/a\
88a858
  tags:\
88a858
    - tests::avc' tests_selinux_disabled.yml
88a858
cd ../..
a0bc34
%endif
88a858
6e715b
cd %{rolename15}
a0bc34
find -P tests examples -name \*.yml | while read file; do
a0bc34
  sed -r -i -e "s/willshersystems:ansible-sshd/system_role:sshd/" \
a0bc34
     -e "s/ansible-sshd/linux-system-roles.sshd/" \
a0bc34
     -e "s/ willshersystems.sshd/ linux-system-roles.sshd/" "$file"
a0bc34
done
a0bc34
sed -r -i -e "s/ willshersystems.sshd/ linux-system-roles.sshd/" README.md
a0bc34
sed -r -i -e 's/min_ansible_version: 2.8/min_ansible_version: "2.9"/' meta/main.yml
617c05
cd ..
617c05
3754e5
cd %{rolename7}
3754e5
# metrics roles dir is a symlink to the vendored dir.
3754e5
# rpm upgrade doesn't like the symlink.  Replace the
3754e5
# symlink with the real dir
3754e5
rolesdir=$(pwd)/roles
3754e5
realrolesdir=$(realpath "$rolesdir")
3754e5
if [ "$rolesdir" != "$realrolesdir" ]; then
3754e5
    rm -rf roles
3754e5
    mv "$realrolesdir" .
3754e5
    rm -rf vendor
3754e5
fi
3754e5
cd ..
3754e5
a0bc34
# vendoring build steps, if any
a0bc34
%include %{SOURCE1004}
6e715b
6e715b
# Removing symlinks in tests/roles
6e715b
for rolename in %{rolenames}; do
6e715b
    if [ -d ${rolename}/tests/roles ]; then
6e715b
        find ${rolename}/tests/roles -type l -exec rm {} \;
6e715b
        if [ -d ${rolename}/tests/roles/linux-system-roles.${rolename} ]; then
6e715b
            rm -r ${rolename}/tests/roles/linux-system-roles.${rolename}
6e715b
        fi
6e715b
    fi
6e715b
done
6e715b
rm %{rolename5}/tests/modules
6e715b
rm %{rolename5}/tests/module_utils
6e715b
rm %{rolename5}/tests/playbooks/roles
6e715b
# Drop network/{scripts/print_all_options.py,tests/ensure_provider_tests.py}
6e715b
# from rpm. These 2 files fail in brp-python-bytecompile due to f-strings
6e715b
# when python2 is default python.
6e715b
rm %{rolename5}/scripts/print_all_options.py
6e715b
rm %{rolename5}/tests/ensure_provider_tests.py
88a858
# Drop storage tests/scripts
88a858
rm -rf %{rolename6}/tests/scripts
6e715b
a0bc34
# fix system_roles fingerprint in "external" roles
a0bc34
python3 lsr_fingerprint.py
a0bc34
6e715b
# transform ambiguous #!/usr/bin/env python shebangs to python3 to stop brp-mangle-shebangs complaining
6e715b
find -type f -executable -name '*.py' -exec \
6e715b
     sed -i -r -e '1s@^(#! */usr/bin/env python)(\s|$)@#\13\2@' '{}' +
6e715b
617c05
%build
6e715b
%if %{with html}
a0bc34
# HACK HACK HACK
a0bc34
# pandoc/asciidoc on rhel 8.9 does not like the journald README badge links
a0bc34
# remove all of the badge links from all README.md files
a0bc34
# in the first 14 lines of the file, remove any line that looks like a
a0bc34
# github action badge
a0bc34
# HACK HACK HACK
6e715b
readmes=""
a0bc34
matchstr="actions/workflows/"
6e715b
for role in %{rolenames}; do
a0bc34
    sed -e "1,14 {\\,${matchstr},d; /\!\[/d}" -i $role/README.md
6e715b
    readmes="${readmes} $role/README.md"
6e715b
done
6e715b
sh md2html.sh $readmes
6e715b
%endif
6e715b
6e715b
mkdir .collections
6e715b
%if 0%{?rhel}
6e715b
# Convert the upstream collection readme to the downstream one
6e715b
%{SOURCE998} lsr_role2collection/collection_readme.md
a0bc34
%{python3} ./galaxy_transform.py "%{collection_namespace}" "%{collection_name}" "%{collection_version}" \
3754e5
                      "Red Hat Enterprise Linux System Roles Ansible Collection" \
3754e5
                      "https://linux-system-roles.github.io" \
3754e5
                      "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/administration_and_configuration_tasks_using_system_roles_in_rhel" \
3754e5
                      "https://access.redhat.com/articles/3050101" \
3754e5
                      "https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%208&component=rhel-system-roles" \
3754e5
                      > galaxy.yml.tmp
3754e5
# we vendor-in all of the dependencies on rhel, so remove them
3754e5
rm -f lsr_role2collection/collection_requirements.txt
3754e5
# but leave bindep.txt
3754e5
%else
3754e5
./galaxy_transform.py "%{collection_namespace}" "%{collection_name}" "%{collection_version}" \
3754e5
                      "Linux System Roles Ansible Collection" \
3754e5
                      > galaxy.yml.tmp
6e715b
%endif
6e715b
mv galaxy.yml.tmp galaxy.yml
6e715b
3754e5
includes=""
6e715b
for role in %{rolenames}; do
3754e5
    includes="$includes --include $role"
3754e5
%if 0%{?rhel}
3754e5
    # we vendor-in all of the dependencies on rhel, so remove them
a0bc34
    rm -f "$role/meta/requirements.yml" "$role/meta/collection-requirements.yml" \
a0bc34
      "$role/tests/collection-requirements.yml"
3754e5
%endif
6e715b
done
6e715b
a0bc34
# do not process changelogs on RHEL
a0bc34
%if 0%{?rhel}
a0bc34
extra_mapping="--extra-mapping fedora.linux_system_roles:%{collection_namespace}.%{collection_name}"
a0bc34
%else
a0bc34
extra_mapping=""
a0bc34
%endif
a0bc34
LANG=C.utf-8 LC_ALL=C.utf-8 %{python3} release_collection.py --galaxy-yml galaxy.yml \
3754e5
    --src-path $(pwd) --dest-path $(pwd)/.collections $includes --force --no-update \
a0bc34
    --src-owner %{name} --skip-git --skip-check --skip-changelog $extra_mapping --debug
6e715b
6e715b
# Remove table of contents from logging README.md
6e715b
# It is not needed for html and AH/Galaxy
6e715b
sed -i -e 's/^\(## Table of Contents\)/## Background\n\1/' \
6e715b
  .collections/ansible_collections/%{collection_namespace}/%{collection_name}/roles/logging/README.md
6e715b
sed -i -e '/^## Table of Contents/,/^## Background/d' \
6e715b
  .collections/ansible_collections/%{collection_namespace}/%{collection_name}/roles/logging/README.md
6e715b
6e715b
# Remove internal links from readme files
6e715b
# They are not rendered properly on AH.
6e715b
for role in %{rolenames}; do
88a858
    sed -r -i -e 's/\[([^[]+)\]\(#[^)]+\)/\1/g' \
6e715b
    .collections/ansible_collections/%{collection_namespace}/%{collection_name}/roles/$role/README.md
6e715b
done
617c05
a0bc34
# Remove test only collection dependencies
a0bc34
# NOTE: These should not be in meta/collection-requirements.yml, they should be
a0bc34
# in tests/collection-requirements.yml, but they can't be moved yet
a0bc34
sed -i -e '/community[.]mysql:/d' -e '/community[.]postgresql:/d' \
a0bc34
  .collections/ansible_collections/%{collection_namespace}/%{collection_name}/galaxy.yml
a0bc34
a0bc34
cp %{SOURCE995} \
a0bc34
    .collections/ansible_collections/%{collection_namespace}/%{collection_name}/docs/CHANGELOG.md
a0bc34
%if 0%{?rhel}
a0bc34
cp %{SOURCE996} \
a0bc34
    .collections/ansible_collections/%{collection_namespace}/%{collection_name}/CHANGELOG.rst
a0bc34
%endif
a0bc34
a0bc34
# Build the collection
a0bc34
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
a0bc34
%ansible_collection_build
a0bc34
popd
a0bc34
617c05
%install
a0bc34
mkdir -p %{buildroot}%{ansible_roles_dir}
617c05
6e715b
for role in %{rolenames}; do
a0bc34
    cp -pR "$role" "%{buildroot}%{ansible_roles_dir}/%{roleinstprefix}$role"
6e715b
done
1d7625
a0bc34
%if 0%{?rhel}
a0bc34
# Create symlinks for roles in /usr/share/ansible/roles/linux-system-roles.$rolename
a0bc34
# That's required to make roles work with upstream naming too
6e715b
for role in %{rolenames}; do
a0bc34
    ln -s "%{name}.$role" "%{buildroot}%{ansible_roles_dir}/linux-system-roles.$role"
6e715b
done
0d3d3b
%endif
617c05
a0bc34
mkdir -p %{buildroot}%{_pkglicensedir}
a0bc34
rm %{buildroot}%{ansible_roles_dir}/%{roleinstprefix}network/examples/roles
6e715b
for role in %{rolenames}; do
a0bc34
    mkdir -p "%{buildroot}%{_pkgdocdir}/$role"
a0bc34
    ln -sr "%{buildroot}%{ansible_roles_dir}/%{roleinstprefix}$role/CHANGELOG.md" \
a0bc34
       "%{buildroot}%{_pkgdocdir}/$role"
a0bc34
    ln -sr "%{buildroot}%{ansible_roles_dir}/%{roleinstprefix}$role/README.md" \
a0bc34
       "%{buildroot}%{_pkgdocdir}/$role"
6e715b
%if %{with html}
a0bc34
    ln -sr "%{buildroot}%{ansible_roles_dir}/%{roleinstprefix}$role/README.html" \
a0bc34
       "%{buildroot}%{_pkgdocdir}/$role"
6e715b
%endif
a0bc34
    if [ -f "%{buildroot}%{ansible_roles_dir}/%{roleinstprefix}$role/COPYING" ]; then
a0bc34
        ln -sr "%{buildroot}%{ansible_roles_dir}/%{roleinstprefix}$role/COPYING" \
a0bc34
           "%{buildroot}%{_pkglicensedir}/$role.COPYING"
6e715b
    fi
a0bc34
    if [ -f "%{buildroot}%{ansible_roles_dir}/%{roleinstprefix}$role/LICENSE" ]; then
a0bc34
        ln -sr "%{buildroot}%{ansible_roles_dir}/%{roleinstprefix}$role/LICENSE" \
a0bc34
           "%{buildroot}%{_pkglicensedir}/$role.LICENSE"
6e715b
    fi
a0bc34
    if [ -d "%{buildroot}%{ansible_roles_dir}/%{roleinstprefix}$role/examples" ]; then
a0bc34
        for file in "%{buildroot}%{ansible_roles_dir}/%{roleinstprefix}$role/examples/"* ; do
a0bc34
            if [[ "$file" == *.yml ]]; then
a0bc34
                basename=$(basename "$file" .yml)
a0bc34
                newname="$basename"
a0bc34
                if [[ "$newname" != example-* ]]; then
a0bc34
                    newname="example-$newname"
a0bc34
                fi
a0bc34
                if [[ "$newname" != *-playbook ]]; then
a0bc34
                    newname="${newname}-playbook"
a0bc34
                fi
a0bc34
                cp "$file" "%{buildroot}%{_pkgdocdir}/$role/${newname}.yml"
a0bc34
            else
a0bc34
                cp "$file" "%{buildroot}%{_pkgdocdir}/$role"
6e715b
            fi
6e715b
            rm "$file"
6e715b
        done
a0bc34
        if [ -f "%{buildroot}%{ansible_roles_dir}/%{roleinstprefix}$role/examples/inventory" ]; then
a0bc34
            cp "%{buildroot}%{ansible_roles_dir}/%{roleinstprefix}$role/examples/inventory" \
a0bc34
               "%{buildroot}%{_pkgdocdir}/$role/example-inventory"
a0bc34
            rm "%{buildroot}%{ansible_roles_dir}/%{roleinstprefix}$role/examples/inventory"
6e715b
        fi
6e715b
        # special case for network
6e715b
        # this will error if the directory is unexpectedly empty
a0bc34
        rmdir "%{buildroot}%{ansible_roles_dir}/%{roleinstprefix}$role/examples"
6e715b
    fi
6e715b
done
6e715b
a0bc34
rm -f %{buildroot}%{ansible_roles_dir}/%{roleinstprefix}*/semaphore
a0bc34
rm -r %{buildroot}%{ansible_roles_dir}/%{roleinstprefix}*/molecule
6e715b
a0bc34
rm -r %{buildroot}%{ansible_roles_dir}/%{roleinstprefix}*/.[A-Za-z]*
a0bc34
rm %{buildroot}%{ansible_roles_dir}/%{roleinstprefix}*/tests/.git*
6e715b
6e715b
# NOTE: sshd/examples/example-root-login.yml is
6e715b
# referenced in the configuring-openssh-servers-using-the-sshd-system-role documentation module
6e715b
# must be updated if changing the file path
6e715b
a0bc34
# Install the collection
6e715b
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
a0bc34
%ansible_collection_install
6e715b
popd
6e715b
a0bc34
mkdir -p %{buildroot}%{_pkgdocdir}/collection
a0bc34
mkdir -p %{buildroot}%{_pkgdocdir}/collection/roles
6e715b
a0bc34
ln -sr %{buildroot}%{ansible_collection_files}%{collection_name}/README.md \
a0bc34
   %{buildroot}%{_pkgdocdir}/collection
6e715b
6e715b
for rolename in %{rolenames}; do
a0bc34
  for file in CHANGELOG.md README.md; do
a0bc34
    if [ -f %{buildroot}%{ansible_collection_files}%{collection_name}/roles/${rolename}/$file ]; then
a0bc34
      if [ ! -d %{buildroot}%{_pkgdocdir}/collection/roles/${rolename} ]; then
a0bc34
        mkdir -p %{buildroot}%{_pkgdocdir}/collection/roles/${rolename}
a0bc34
      fi
a0bc34
      ln -sr %{buildroot}%{ansible_collection_files}%{collection_name}/roles/${rolename}/$file \
a0bc34
        %{buildroot}%{_pkgdocdir}/collection/roles/${rolename}
a0bc34
    fi
a0bc34
  done
6e715b
done
6e715b
6e715b
%if %{with html}
a0bc34
# converting README.md to README.html for collection in %%{buildroot}%%{_pkgdocdir}/collection
a0bc34
readmes="%{buildroot}%{_pkgdocdir}/collection/README.md"
6e715b
for role in %{rolenames}; do
a0bc34
    readmes="${readmes} %{buildroot}%{_pkgdocdir}/collection/roles/${role}/README.md"
6e715b
done
6e715b
sh md2html.sh $readmes
6e715b
%endif
6e715b
6e715b
%if %{with collection_artifact}
6e715b
# Copy collection artifact to /usr/share/ansible/collections/ for collection-artifact
6e715b
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
6e715b
    mv %{collection_namespace}-%{collection_name}-%{version}.tar.gz \
a0bc34
       %{buildroot}%{_datadir}/ansible/collections/
6e715b
popd
6e715b
%endif
6e715b
a0bc34
# Generate the %%files section in files_section.txt
a0bc34
# Bulk files inclusion is not possible because roles store doc and licence
a0bc34
# files together with other files
6e715b
format_item_for_files() {
6e715b
    # $1 is directory or file name in buildroot
a0bc34
    # $2 - if true, and item is a directory, use %%dir
6e715b
    local item
6e715b
    local files_item
a0bc34
    item="$1" # full path including buildroot
a0bc34
    files_item=${item##"%{buildroot}"} # path with cut buildroot to be added to %%files
6e715b
    if [ -L "$item" ]; then
6e715b
        echo "$files_item"
6e715b
    elif [ -d "$item" ]; then
6e715b
        if [[ "$item" == */doc* ]]; then
6e715b
            echo "%doc $files_item"
6e715b
        elif [ "${2:-false}" = true ]; then
6e715b
            echo "%dir $files_item"
6e715b
        else
6e715b
            echo "$files_item"
6e715b
        fi
a0bc34
    elif [[ "$item" == */README.md ]] || [[ "$item" == */README.html ]] || [[ "$item" == */CHANGELOG.md ]]; then
6e715b
        if [[ "$item" == */private_* ]]; then
a0bc34
            # mark as regular file, not %%doc
6e715b
            echo "$files_item"
6e715b
        else
6e715b
            echo "%doc $files_item"
6e715b
        fi
a0bc34
    elif [[ "$item" == */COPYING* ]] || [[ "$item" == */LICENSE* ]]; then
a0bc34
        echo "%""%""license" "$files_item"
a0bc34
    else
6e715b
        echo "$files_item"
6e715b
    fi
6e715b
}
6e715b
6e715b
files_section=files_section.txt
6e715b
rm -f $files_section
6e715b
touch $files_section
a0bc34
# Dynamically generate files section entries for %%{ansible_collection_files}
88a858
find %{buildroot}%{ansible_collection_files}%{collection_name} -mindepth 1 -maxdepth 1 | \
6e715b
    while read item; do
6e715b
        if [[ "$item" == */roles ]]; then
6e715b
            format_item_for_files "$item" true >> $files_section
6e715b
            find "$item" -mindepth 1 -maxdepth 1 | while read roles_dir; do
6e715b
                format_item_for_files "$roles_dir" true >> $files_section
6e715b
                find "$roles_dir" -mindepth 1 -maxdepth 1 | while read roles_item; do
6e715b
                    format_item_for_files "$roles_item" >> $files_section
6e715b
                done
6e715b
            done
6e715b
        else
6e715b
            format_item_for_files "$item" >> $files_section
6e715b
        fi
6e715b
    done
6e715b
a0bc34
# Dynamically generate files section entries for %%{ansible_roles_dir}
a0bc34
find %{buildroot}%{ansible_roles_dir} -mindepth 1 -maxdepth 1 | \
6e715b
    while read item; do
6e715b
        if [ -d "$item" ]; then
6e715b
            format_item_for_files "$item" true >> $files_section
6e715b
            find "$item" -mindepth 1 -maxdepth 1 | while read roles_item; do
6e715b
                format_item_for_files "$roles_item" >> $files_section
6e715b
            done
6e715b
        else
6e715b
            format_item_for_files "$item" >> $files_section
6e715b
        fi
6e715b
    done
6e715b
6e715b
%files -f files_section.txt
a0bc34
%dir %{_datadir}/ansible
a0bc34
%dir %{ansible_roles_dir}
a0bc34
%dir %{ansible_collection_files}
a0bc34
%dir %{ansible_collection_files}%{collection_name}
a0bc34
%doc %{_pkgdocdir}
a0bc34
%license %{_pkglicensedir}
a0bc34
a0bc34
%if 0%{?rhel} && 0%{?rhel} < 8
6e715b
# Needs to list excluded files in this hardcoded style since when
6e715b
# format_item_for_files is executed, brp-python-bytecompile is not
6e715b
# executed yet.
a0bc34
%exclude %{ansible_roles_dir}/*/*.py?
a0bc34
%exclude %{ansible_roles_dir}/*/*/*.py?
a0bc34
%exclude %{ansible_roles_dir}/*/*/*/*.py?
a0bc34
%exclude %{ansible_roles_dir}/*/*/*/*/*.py?
6e715b
%exclude %{ansible_collection_files}/%{collection_name}/*/*/*.py?
6e715b
%exclude %{ansible_collection_files}/%{collection_name}/*/*/*/*.py?
6e715b
%exclude %{ansible_collection_files}/%{collection_name}/*/*/*/*/*.py?
6e715b
%endif
6e715b
6e715b
%if %{with collection_artifact}
6e715b
%files collection-artifact
6e715b
%{_datadir}/ansible/collections/%{collection_namespace}-%{collection_name}-%{version}.tar.gz
0d3d3b
%endif
d2325c
d2325c
%changelog
a0bc34
* Wed May 10 2023 Rich Megginson <rmeggins@redhat.com> - 1.21.2-1
a0bc34
- Resolves:rhbz#2186913 : rhc - RHC system role: activation key registration fails if system is already registered
a0bc34
- Resolves:rhbz#2189194 : roles should support running with gather_facts: false
a0bc34
- Resolves:rhbz#2188332 : failing test podman/tests_basic.yml: Set per-container variables part 0
a0bc34
- Resolves:rhbz#2188384 : failing test - sshd/tests_firewall_selinux.yml - No package matching 'firewalld' found available, installed or updated
a0bc34
- move vendoring into included files
a0bc34
- Resolves:rhbz#2175324 : use ansible-galaxy collection build/install instead of tar
a0bc34
a0bc34
* Thu Apr 6 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.21.1-2
a0bc34
- Resolves: rhbz#2185002 : Remove doc fragments from vendored modules
a0bc34
- Build collection artifact in the same directory on Fedora and RHEL
a0bc34
a0bc34
* Thu Mar 16 2023 Rich Megginson <rmeggins@redhat.com> - 1.21.1-1
a0bc34
- Resolves:rhbz#2144877 : rhc - new role for subscription management/registration/insights
a0bc34
- includes the fix for tests_proxy.yml selinux and some test refactoring
a0bc34
a0bc34
* Wed Feb 22 2023 Rich Megginson <rmeggins@redhat.com> - 1.21.0-2
a0bc34
- Resolves:rhbz#2144877 : rhc - new role for subscription management/registration/insights
a0bc34
- remove role until https://bugzilla.redhat.com/show_bug.cgi?id=2171829 is fixed
a0bc34
a0bc34
* Mon Feb 20 2023 Rich Megginson <rmeggins@redhat.com> - 1.21.0-1
a0bc34
- Resolves:rhbz#2162617 : network - RedHat Role rhel-system-roles.network should route traffic via correct bond
a0bc34
a0bc34
* Thu Feb 16 2023 Rich Megginson <rmeggins@redhat.com> - 1.21.0-0.19
a0bc34
- Resolves:rhbz#2144877 : rhc - new role for subscription management/registration/insights
a0bc34
- vendor in modules required by rhc role
a0bc34
- Resolves:rhbz#2167941 : ha_cluster - Fix stonith watchdog timeout
a0bc34
a0bc34
* Wed Feb 15 2023 Rich Megginson <rmeggins@redhat.com> - 1.21.0-0.18
a0bc34
- Resolves:rhbz#2144877 : rhc - new role for subscription management/registration/insights
a0bc34
- ad_integration - fix issue with using the network role to configure DNS
a0bc34
a0bc34
* Thu Feb 09 2023 Rich Megginson <rmeggins@redhat.com> - 1.21.0-0.17
a0bc34
- Resolves:rhbz#2164879 : selinux - managing modules is not idempotent
a0bc34
- Fix nbde_server test issue
a0bc34
a0bc34
* Fri Feb 03 2023 Rich Megginson <rmeggins@redhat.com> - 1.21.0-0.16
a0bc34
- Resolves:rhbz#2165176 : journald - New role - journald - manage systemd-journald
a0bc34
- Resolves:rhbz#2159972 : nbde_client - nbde_client_clevis fails with a traceback and prints sensitive data
a0bc34
- Resolves:rhbz#2164879 : selinux - managing modules is not idempotent
a0bc34
- fix storage tests_swap and tests_misc - swap size < 128GB on EL7
a0bc34
- fix podman general-meta issue
a0bc34
- ha_cluster non-x86_64 tests issue
a0bc34
- certificate non-x86_64 tests issue
a0bc34
a0bc34
* Fri Jan 20 2023 Rich Megginson <rmeggins@redhat.com> - 1.21.0-0.15
a0bc34
- Resolves:rhbz#2162788 : network - role should support running tests with ANSIBLE_GATHERING=explicit
a0bc34
- Resolves:rhbz#2149683 : Synchronize automation-related changes from Fedora spec file
a0bc34
- Fix ansible-test issues in several roles
a0bc34
- Fix nbde_server tang test failure
a0bc34
a0bc34
* Fri Jan 13 2023 Rich Megginson <rmeggins@redhat.com> - 1.21.0-0.14
a0bc34
- Resolves:rhbz#2143814 : ha_cluster - Allow quorum device configuration
a0bc34
- Resolves:rhbz#2153081 : ha_cluster - Allow enabled SBD on disabled cluster
a0bc34
- Resolves:rhbz#2127497 : ha_cluster - use no_log in tasks looping over pot. secret parameters
a0bc34
- community.general 6.2.0
a0bc34
- replace community.general with namespace.name for rhc role
a0bc34
a0bc34
* Thu Jan 12 2023 Noriko Hosoi <nhosoi@redhat.com> - 1.20.1-4
a0bc34
- Resolves:rhbz#2138213: nbde_client - use fedora.linux_system_roles.nbde_server for tests
a0bc34
a0bc34
* Thu Dec 15 2022 Rich Megginson <rmeggins@redhat.com> - 1.21.0-0.13
a0bc34
- Resolves:rhbz#2151355 : storage - [RHEL8] disks_needed need to be set for the raid test cases
a0bc34
- Resolves:rhbz#2154143 : storage - [RHEL8] tests_create_thinp_then_remove_scsi_generated.yml failed at "assertion": "(storage_test_expected_size|int - storage_test_actual_size.bytes)|abs / storage_test_expected_size|int < 0.01"
a0bc34
- Resolves:rhbz#2151342 : storage - [RHEL9]  ansible.parsing.yaml.objects.AnsibleUnicode object' has no attribute 'bytes'
a0bc34
- Resolves:rhbz#2151351 : storage - [RHEL9 system role]  storage role vdo tests failed about  "VDO deduplication is off but it should not"
a0bc34
a0bc34
* Thu Dec 15 2022 Rich Megginson <rmeggins@redhat.com> - 1.21.0-0.12
a0bc34
- Resolves:rhbz#2153080 - tlog - Unconditionally enable the files provider
a0bc34
a0bc34
* Tue Dec 13 2022 Rich Megginson <rmeggins@redhat.com> - 1.21.0-0.11
a0bc34
- Resolves:rhbz#2130362 : logging - [RFE] convert logging role to use firewall, selinux role, and certificate role
a0bc34
  fix basic-smoke-test failures
a0bc34
a0bc34
* Mon Dec 12 2022 Rich Megginson <rmeggins@redhat.com> - 1.21.0-0.10
a0bc34
- Resolves:rhbz#2130019 : ha_cluster - [RFE] convert ha_cluster role to use firewall, selinux and certificate role
a0bc34
- Resolves:rhbz#2143458 : network - Support cloned MAC address
a0bc34
- Resolves:rhbz#2066864 : podman - [RFE] role for managing podman containers and systemd
a0bc34
a0bc34
* Tue Dec 06 2022 Rich Megginson <rmeggins@redhat.com> - 1.21.0-0.9
a0bc34
- Resolves:rhbz#2144876 : ad_integration - [RFE] new role to support AD integration, join to AD domain
a0bc34
a0bc34
* Mon Dec 05 2022 Rich Megginson <rmeggins@redhat.com> - 1.21.0-0.8
a0bc34
- Resolves:rhbz#2130362 : logging - [RFE] convert logging role to use firewall, selinux role, and certificate role
a0bc34
  fix tests - tests_relp now uses logging_purge_confs
a0bc34
a0bc34
* Tue Nov 29 2022 Rich Megginson <rmeggins@redhat.com> - 1.21.0-0.7
a0bc34
- Resolves:rhbz#2126960 : nbde_client - must handle clevis-luks-askpass and clevis-luks-askpass@ systemd unit names
a0bc34
a0bc34
* Tue Nov 29 2022 Rich Megginson <rmeggins@redhat.com> - 1.21.0-0.6
a0bc34
- Resolves:rhbz#2133931 : nbde_server - [RFE] convert nbde_server role to use firewall and selinux role
a0bc34
  previous fix was not complete - needed additional fixes - ansible-lint 6.x fixes
a0bc34
a0bc34
* Thu Nov 03 2022 Noriko Hosoi <nhosoi@redhat.com> - 1.20.1-3
a0bc34
- Resolves:rhbz#2138213: sshd - Fix the mismatched line numbers in the sshd patch.
a0bc34
- Resolves:rhbz#2094483: - metrics - document minimum supported redis version required by rhel-system-roles
a0bc34
a0bc34
* Tue Sep 27 2022 Rich Megginson <rmeggins@redhat.com> - 1.20.1-1
a0bc34
- Resolves:rhbz#2129875 : ssh,sshd - Sync on final OpenSSH option name RequiredRSASize in ssh and sshd roles
a0bc34
a0bc34
* Tue Aug 09 2022 Rich Megginson <rmeggins@redhat.com> - 1.20.0-1
a0bc34
- Resolves:rhbz#2115159 : cockpit - Add customization of port
a0bc34
- Resolves:rhbz#2100939 : firewall - RFE: firewall-system-role: add ability to add interface to zone by PCI device ID
a0bc34
- Resolves:rhbz#2115160 : firewall - support for firewall_config - gather firewall facts
a0bc34
- Resolves:rhbz#2112143 : logging - [RFE] Support startmsg.regex and endmsg.regex in the files inputs
a0bc34
- Resolves:rhbz#2115162 : selinux - Added setting of seuser and selevel for completeness
a0bc34
- Resolves:rhbz#2115161 : nbde_client - Sets proper spacing for parameter rd.neednet=1
a0bc34
- Resolves:rhbz#2115884 : network - fix IPRouteUtils.get_route_tables_mapping() to accept any whitespace sequence
a0bc34
- Resolves:rhbz#2109997 : ssh sshd - ssh, sshd: RSAMinSize parameter definition is missing
a0bc34
- Resolves:rhbz#2082391 : storage - [RHEL8] [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior.
a0bc34
a0bc34
* Fri Jul 01 2022 Rich Megginson <rmeggins@redhat.com> - 1.19.3-1
a0bc34
- min_ansible_version is string instead of float
a0bc34
a0bc34
- fix storage test failures
a0bc34
a0bc34
- support for ansible-core 2.13
a0bc34
a0bc34
- firewall - forward_port should accept list of string or list of dict
a0bc34
  Resolves: rhbz#2101607
a0bc34
a0bc34
- firewall - support add/modify/delete services
a0bc34
  Resolves: rhbz#2100297
a0bc34
a0bc34
- metrics - document minimum supported redis version required by rhel-system-roles
a0bc34
  Resolves: rhbz#2100285
a0bc34
a0bc34
- metrics - restart pmie, pmlogger if changed, do not wait for handler
a0bc34
  Resolves: rhbz#2100298
a0bc34
a0bc34
- network - Support managing the network through nmstate schema
a0bc34
  Resolves: rhbz#2100979
a0bc34
a0bc34
- storage - support for adding/removing disks to/from storage pools
a0bc34
  Resolves: rhbz#2066880
a0bc34
a0bc34
- storage - support for attaching cache volumes to existing volumes
a0bc34
  Resolves: rhbz#2066881
a0bc34
a0bc34
* Wed Jun 15 2022 Rich Megginson <rmeggins@redhat.com> - 1.19.2-1
a0bc34
- sshd - fix ansible 2.9 support in meta/main.yml
a0bc34
  Resolves: rhbz#2086935 (8.7.0)
a0bc34
a0bc34
* Mon Jun 13 2022 Rich Megginson <rmeggins@redhat.com> - 1.19.1-1
a0bc34
- storage - fix coverity scan issue in blivet.py
a0bc34
  Resolves: rhbz#2066876 (8.7.0)
a0bc34
a0bc34
- logging - fix gather_facts/set_vars issue
a0bc34
  Resolves: rhbz#2079008 (8.7.0)
a0bc34
a0bc34
- ha_cluster - Move tasks that set up CI environment to roles tasks/ dir
a0bc34
  Resolves: rhbz#2093500 (8.7.0)
a0bc34
a0bc34
- sshd - fix tests issue with rhel9 hosts
a0bc34
a0bc34
* Mon Jun 06 2022 Rich Megginson <rmeggins@redhat.com> - 1.19.0-1
a0bc34
- storage - support for creating and managing LVM thin pools/LVs
a0bc34
  Resolves: rhbz#2066876 (8.7.0)
a0bc34
a0bc34
- firewall - Update Ansible syntax in Firewall system role README.md file examples
a0bc34
  Resolves: rhbz#2081839 (8.7.0)
a0bc34
3754e5
- storage role raid_level "striped" is not supported
a0bc34
  Resolves: rhbz#2083426 (8.7.0)
a0bc34
a0bc34
- network: the controller device is not completely cleaned up in the bond tests.
a0bc34
  Resolves: rhbz#2089868 (8.7.0)
a0bc34
a0bc34
- firewall - state no longer required for masquerade and ICMP block inversion
a0bc34
  Resolves: rhbz#2093437 (8.7.0)
a0bc34
a0bc34
- ha_cluster - Move tasks that set up CI environment to roles tasks/ dir
a0bc34
  Resolves: rhbz#2093500 (8.7.0)
a0bc34
a0bc34
* Thu May 26 2022 Rich Megginson <rmeggins@redhat.com> - 1.18.0-1
a0bc34
- firewall - [Improvement] Allow System Role to reset to default Firewalld Settings
a0bc34
  Resolves: rhbz#2043009 (8.7.0)
a0bc34
a0bc34
- metrics - [RFE] add an option to the metrics role to enable postfix metric collection
a0bc34
  Resolves: rhbz#2079114 (8.7.0)
a0bc34
a0bc34
- network - Rework the infiniband support
a0bc34
  Resolves: rhbz#2086869 (8.7.0)
a0bc34
a0bc34
- sshd - recurse into tests and examples sub-directories when replacing string in files
a0bc34
  the sshd role latest version added sub-directories under tests that need
a0bc34
  role name replacement - so just use find
a0bc34
a0bc34
- sshd - sshd system role should not assume that RHEL 9 /etc/ssh/sshd_config has "Include > /etc/ssh/sshd_config.d/*.conf"
a0bc34
  Resolves: rhbz#2086934 (8.7.0)
a0bc34
a0bc34
- sshd - sshd system role should be able to optionally manage /etc/ssh/sshd_config on RHEL 9
a0bc34
  Resolves: rhbz#2086935 (8.7.0)
a0bc34
a0bc34
- storage - storage role cannot set mount_options for volumes
a0bc34
  Resolves: rhbz#2083378 (8.7.0)
a0bc34
a0bc34
* Mon Apr 25 2022 Rich Megginson <rmeggins@redhat.com> - 1.17.0-1
a0bc34
- All roles should support running with gather_facts: false
a0bc34
  Resolves: rhbz#2079008 (8.7.0)
a0bc34
a0bc34
- firewall - Firewall system role Ansible deprecation warning related to "include"
a0bc34
  Resolves: rhbz#2078650 (8.7.0)
a0bc34
a0bc34
- ha_cluster - ha_cluster - support advanced corosync configuration
a0bc34
  Resolves: rhbz#2065339 (8.7.0)
a0bc34
a0bc34
- ha_cluster - ha_cluster - support SBD fencing
a0bc34
  Resolves: rhbz#2066868 (8.7.0)
a0bc34
a0bc34
- ha_cluster - ha_cluster - add support for configuring bundle resources
a0bc34
  Resolves: rhbz#2073518 (8.7.0)
a0bc34
a0bc34
- kernel_settings - kernel_settings error configobj not found on RHEL 8.6 managed hosts
a0bc34
  Resolves: rhbz#2060378 (8.7.0)
a0bc34
a0bc34
- logging - logging tests fail during cleanup if no cloud-init on system
a0bc34
  Resolves: rhbz#2058807 (8.7.0)
a0bc34
a0bc34
- logging - Logging - RFE - support template, severity and facility options
a0bc34
  Resolves: rhbz#2075116 (8.7.0)
a0bc34
a0bc34
- metrics - Metrics role, with "metrics_from_mssql" option does not configure /var/lib/pcp/pmdas/mssql/mssql.conf on first run
a0bc34
  Resolves: rhbz#2060377 (8.7.0)
a0bc34
a0bc34
- metrics - metrics - consistently use ansible_managed in configuration files managed by role
a0bc34
  Resolves: rhbz#2065215 (8.7.0)
a0bc34
a0bc34
- metrics - [RFE] add an option to the metrics role to enable postfix metric collection
a0bc34
  Resolves: rhbz#2079114 (8.7.0)
a0bc34
a0bc34
- nbde_client - NBDE client system role does not support servers with static IP addresses
a0bc34
  Resolves: rhbz#2071011 (8.7.0)
a0bc34
a0bc34
- network - [RFE] Extend rhel-system-roles.network feature set to support routing rules
a0bc34
  Resolves: rhbz#1996731 (8.7.0)
a0bc34
a0bc34
- network - bond: fix typo in supporting the infiniband ports in active-backup mode
a0bc34
  Resolves: rhbz#2064067 (8.7.0)
a0bc34
a0bc34
- network - pytest failed when running with nm providers in the rhel-8.5 beaker machine
a0bc34
  Resolves: rhbz#2065217 (8.7.0)
a0bc34
a0bc34
- network - network - consistently use ansible_managed in configuration files managed by role
a0bc34
  Resolves: rhbz#2065670 (8.7.0)
a0bc34
a0bc34
- postfix - postfix - consistently use ansible_managed in configuration files managed by role
a0bc34
  Resolves: rhbz#2065216 (8.7.0)
a0bc34
a0bc34
- postfix - Postfix RHEL System Role should provide the ability to replace config and reset configuration back to default
a0bc34
  Resolves: rhbz#2065218 (8.7.0)
3754e5
3754e5
- sshd - FIPS mode detection in SSHD role is wrong
a0bc34
  Resolves: rhbz#2075338 (8.7.0)
3754e5
a0bc34
- storage - RFE storage Less verbosity by default
a0bc34
  Resolves: rhbz#2056480 (8.7.0)
3754e5
a0bc34
- timesync - timesync: basic-smoke test failure in timesync/tests_ntp.yml
a0bc34
  Resolves: rhbz#2060379 (8.7.0)
a0bc34
a0bc34
- tlog - Tlog role - Enabling session recording configuration does not work due to RHEL9 SSSD files provider default
a0bc34
  Resolves: rhbz#2072749 (8.7.0)
a0bc34
a0bc34
* Thu Apr 07 2022 Rich Megginson <rmeggins@redhat.com> - 1.16.3-1
a0bc34
- tlog - Enabling session recording configuration does not work due to RHEL9 SSSD files provider default
a0bc34
  Resolves rhbz#2072749 (EL8)
a0bc34
  Resolves rhbz#2071804 (EL9)
a0bc34
a0bc34
* Wed Apr 06 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.16.2-2
a0bc34
- Update community.general
a0bc34
a0bc34
* Thu Mar 31 2022 Rich Megginson <rmeggins@redhat.com> - 1.16.2-1
a0bc34
- nbde_client - NBDE client system role does not support servers with static IP addresses
a0bc34
  previous fix did not handle some other cases
a0bc34
  Resolves rhbz#1985022 (EL8)
a0bc34
  Resolves rhbz#2031555 (EL9)
a0bc34
a0bc34
* Tue Mar 29 2022 Rich Megginson <rmeggins@redhat.com> - 1.16.1-1
3754e5
- nbde_client - NBDE client system role does not support servers with static IP addresses
3754e5
  previous fix did not handle some cases
3754e5
  Resolves rhbz#1985022 (EL8)
3754e5
  Resolves rhbz#2031555 (EL9)
3754e5
a0bc34
* Tue Mar 22 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.16.0-2
a0bc34
- Update community.general
a0bc34
a0bc34
* Tue Mar 15 2022 Rich Megginson <rmeggins@redhat.com> - 1.16.0-1
3754e5
- network - pytest failed when running with nm providers in the rhel-8.5 beaker machine
3754e5
  Resolves rhbz#2064396 (EL8)
3754e5
  Resolves rhbz#2064401 (EL9)
3754e5
- network - bond: fix typo in supporting the infiniband ports in active-backup modekernel_settings error configobj not found on RHEL 8.6 managed hosts
3754e5
  Resolves rhbz#2064388 (EL8)
3754e5
  Resolves rhbz#2064391 (EL9)
3754e5
- network - consistently use ansible_managed in configuration files managed by role
3754e5
  Resolves rhbz#2057656 (EL8)
3754e5
  Resolves rhbz#2057657 (EL9)
3754e5
- metrics - consistently use ansible_managed in configuration files managed by role
3754e5
  Resolves rhbz#2057645 (EL8)
3754e5
  Resolves rhbz#2057647 (EL9)
3754e5
- postfix - consistently use ansible_managed in configuration files managed by role
3754e5
  Resolves rhbz#2057661 (EL8)
3754e5
  Resolves rhbz#2057662 (EL9)
3754e5
- postfix - provide the ability to replace config and reset configuration back to default
3754e5
  Resolves rhbz#2044657 (EL8)
3754e5
  Resolves rhbz#2058780 (EL9)
3754e5
- new tags required in galaxy.yml for Automation Hub
3754e5
3754e5
* Thu Mar 3 2022 Rich Megginson <rmeggins@redhat.com> - 1.15.1-1
3754e5
- kernel_settings error configobj not found on RHEL 8.6 managed hosts
3754e5
  Resolves rhbz#2058772 (EL8)
3754e5
  Resolves rhbz#2058756 (EL9)
3754e5
- timesync: basic-smoke test failure in timesync/tests_ntp.yml
3754e5
  Resolves rhbz#2059293 (EL8)
3754e5
  Resolves rhbz#2058645 (EL9)
3754e5
3754e5
* Tue Mar  1 2022 Noriko Hosoi <nhosoi@redhat.com> - 1.15.0-2
3754e5
- metrics - follow symlinks for the mssql and elasticsearch configuration paths
3754e5
  Resolves rhbz#2058655 (EL8)
3754e5
  Resolves rhbz#2058777 (EL9)
3754e5
a0bc34
* Thu Feb 24 2022 Rich Megginson <rmeggins@redhat.com> - 1.15.0-1
3754e5
- firewall - ensure target changes take effect immediately
3754e5
  Resolves rhbz#2057172 (EL8)
3754e5
  Resolves rhbz#2057164 (EL9)
3754e5
- firewall - Firewall RHEL System Role should be able to set default zone
3754e5
  Resolves rhbz#2022458 (EL8)
3754e5
  Resolves rhbz#2022461 (EL9)
3754e5
- network - tests_802_1x_nm, tests_802_1x_updated_nm fails because of missing hostapd in EPEL
3754e5
  Resolves rhbz#2053862 (EL8)
3754e5
  Resolves rhbz#2053861 (EL9)
3754e5
3754e5
* Mon Feb 14 2022 Rich Megginson <rmeggins@redhat.com> - 1.14.0-1
3754e5
- ha_cluster - set permissions for haclient group
3754e5
  Resolves rhbz#2049747 (EL8)
3754e5
  Resolves rhbz#2049754 (EL9)
3754e5
- network - Add more bonding options to rhel-system-roles.network
3754e5
  Resolves rhbz#2008931 (EL8)
3754e5
  Resolves rhbz#2054435 (EL9)
3754e5
- certificate - should consistently use ansible_managed in hook scripts
3754e5
  Resolves rhbz#2054364 (EL8)
3754e5
  Resolves rhbz#2054368 (EL9)
3754e5
- tlog - consistently use ansible_managed in configuration files managed by role
3754e5
  Resolves rhbz#2054363 (EL8)
3754e5
  Resolves rhbz#2054367 (EL9)
3754e5
- vpn - consistently use ansible_managed in configuration files managed by role
3754e5
  Resolves rhbz#2054365 (EL8)
3754e5
  Resolves rhbz#2054369 (EL9)
3754e5
3754e5
* Tue Feb 8 2022 Rich Megginson <rmeggins@redhat.com> - 1.13.1-1
3754e5
- vpn - template error while templating string: no filter named 'vpn_ipaddr'
3754e5
  Resolves rhbz#2052103 (EL8)
3754e5
  Resolves rhbz#2050341 (EL9)
3754e5
- kdump - Unable to start service kdump: Job for kdump.service failed because the control process exited with error code.
3754e5
  Resolves rhbz#2052105 (EL8)
3754e5
  Resolves rhbz#2050419 (EL9)
3754e5
- remove collection dependencies on rhel because we vendor them in
3754e5
3754e5
* Tue Feb 1 2022 Rich Megginson <rmeggins@redhat.com> - 1.13.0-1
3754e5
- storage - RFE: Add support for RAID volumes (lvm-only)
3754e5
  Resolves rhbz#2016514 (EL8)
3754e5
  Resolves rhbz#2016518 (EL9)
3754e5
- storage - RFE: Add support for cached volumes (lvm-only)
3754e5
  Resolves rhbz#2016511 (EL8)
3754e5
  Resolves rhbz#2016517 (EL9)
3754e5
- metrics - metrics role can't be re-run if the Grafana admin password has been changed
3754e5
  Resolves rhbz#1967321 (EL8)
3754e5
  Resolves rhbz#2041632 (EL9)
3754e5
- nbde_client - NBDE client system role does not support servers with static IP addresses
3754e5
  Resolves rhbz#1985022 (EL8)
3754e5
  Resolves rhbz#2031555 (EL9)
3754e5
- ha_cluster - [RFE] ha_cluster - Support for creating resource constraints (Location, Ordering, etc.)
3754e5
  Resolves rhbz#2041635 (EL8)
3754e5
  Resolves rhbz#2041634 (EL9)
3754e5
- firewall - ensure zone exists and can be used in subsequent operations
3754e5
  Resolves rhbz#2042541 (EL8)
3754e5
  Resolves rhbz#2024775 (EL9)
3754e5
- network - RFE: Support Routing Tables in static routes in Network Role
3754e5
  Resolves rhbz#2031521 (EL8)
3754e5
  Resolves rhbz#2049798 (EL9)
3754e5
- network - Failure to activate connection: nm-manager-error-quark: No suitable device found for this connection
3754e5
  Resolves rhbz#2034908 (EL8)
3754e5
  Resolves rhbz#2038957 (EL9)
3754e5
- network - Set DNS search setting only for enabled IP protocols
3754e5
  Resolves rhbz#2041627 (EL8)
3754e5
  Resolves rhbz#2004899 (EL9)
3754e5
3754e5
* Thu Jan 27 2022 Rich Megginson <rmeggins@redhat.com> - 1.12.0-1
3754e5
- vpn - use custom vpn_ipaddr filter to make role work on RHEL 8.6 with ansible-core
3754e5
  this is covered by "make roles work with ansible-core on all platforms" BZ
3754e5
- logging - Logging role "logging_purge_confs" option not properly working
3754e5
  Resolves rhbz#2040812 (EL8)
3754e5
  Resolves rhbz#2039106 (EL9)
3754e5
- kernel_settings role should use ansible_managed in its configuration file
3754e5
  Resolves rhbz#2047504 (EL8)
3754e5
  Resolves rhbz#2047506 (EL9)
3754e5
3754e5
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-3
3754e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
3754e5
3754e5
* Tue Dec 14 2021 Rich Megginson <rmeggins@redhat.com> - 1.11.0-2
3754e5
- RHEL8.6, 9 - add "Requires: ansible-core or ansible"
3754e5
3754e5
* Thu Dec 2 2021 Rich Megginson <rmeggins@redhat.com> - 1.11.0-1
3754e5
- timesync - fix ansible 2.12 issues, service_facts issues
3754e5
  Resolves rhbz#2012316 (EL8)
3754e5
  Resolves rhbz#2012298 (EL9)
3754e5
- timesync - Failure related to missing ntp/ntpd package/service on RHEL-9 host
3754e5
  Resolves rhbz#2029463 (EL9)
3754e5
- logging - add test case for immark quoting issue
3754e5
  Resolves rhbz#2021678 (EL8)
3754e5
  Resolves rhbz#2021676 (EL9)
3754e5
- cockpit - use existing cert - cockpit_cert, cockpit_private_key
3754e5
  Resolves rhbz#2021661 (EL8)
3754e5
  Resolves rhbz#2021028 (EL9)
3754e5
- storage - fix ansible 2.12 issues, service_facts issues; workaround lvm, udev issues in tests
3754e5
  Resolves rhbz#2012316 (EL8)
3754e5
  Resolves rhbz#2012298 (EL9)
3754e5
- ssh - tests_all_options.yml: "assertion": "'StdinNull yes' in config.content | b64decode ", failure
3754e5
  Resolves rhbz#2029614 (EL8)
3754e5
  Resolves rhbz#2029427 (EL9)
3754e5
- kdump - support reboot required and reboot ok
3754e5
  Resolves rhbz#2029605 (EL8)
3754e5
  Resolves rhbz#2029602 (EL9)
3754e5
- metrics - sync with latest ansible-pcp
3754e5
  Resolves rhbz#2012316 (EL8)
3754e5
  Resolves rhbz#2012298 (EL9)
3754e5
- sshd - should detect FIPS mode and handle tasks correctly in FIPS mode
3754e5
  Resolves rhbz#1979714 (EL8)
3754e5
  Resolves rhbz#2029634 (EL9)
3754e5
3754e5
* Mon Nov 8 2021 Rich Megginson <rmeggins@redhat.com> - 1.10.0-1
3754e5
- add cockpit role
3754e5
  Resolves rhbz#2021661 (EL8)
3754e5
  Resolves rhbz#2021028 (EL9)
3754e5
- add firewall role
3754e5
  Resolves rhbz#1854988 (EL8)
3754e5
  Resolves rhbz#2021665 (EL9)
3754e5
- firewall - add ability to add-source
3754e5
  Resolves rhbz#1932678 (EL8)
3754e5
  Resolves rhbz#2021667 (EL9)
3754e5
- firewall - allow user defined zones
3754e5
  Resolves rhbz#1850768 (EL8)
3754e5
  Resolves rhbz#2021669 (EL9)
3754e5
- firewall - allow specifying the zone
3754e5
  Resolves rhbz#1850753 (EL8)
3754e5
  Resolves rhbz#2021670 (EL9)
3754e5
- updates for ansible 2.12 support
3754e5
  Resolves rhbz#2012316 (EL8)
3754e5
  Resolves rhbz#2012298 (EL9)
3754e5
- update community.general to 4.0.1
3754e5
  Resolves rhbz#2006081 (EL8)
3754e5
  Resolves rhbz#2006076 (EL9)
3754e5
- network - Allow to specify PCI address to configure profiles
3754e5
  Resolves rhbz#1695634 (EL8)
3754e5
  Resolves rhbz#1999162 (EL9)
3754e5
- network - support wifi Enhanced Open (OWE)
3754e5
  Resolves rhbz#1993379 (EL8)
3754e5
  Resolves rhbz#1993377 (EL9)
3754e5
- network - support WPA3 Simultaneous Authentication of Equals(SAE)
3754e5
  Resolves rhbz#1993311 (EL8)
3754e5
  Resolves rhbz#1993304 (EL9)
3754e5
- network - RFE: Support ignoring default gateway retrieved by DHCP/IPv6-RA
3754e5
  Resolves rhbz#1897565 (EL8)
3754e5
  Resolves rhbz#1978773 (EL9)
3754e5
- network - Update network system role to reflect that network teaming is deprecated in RHEL 9
3754e5
  Resolves rhbz#1897565 (EL8)
3754e5
  Resolves rhbz#1999770 (EL9)
3754e5
- selinux - fails linit rules role-name and unnamed-task
3754e5
  Resolves rhbz#1974000 (EL8)
3754e5
  Resolves rhbz#2021675 (EL9)
3754e5
- kernel_settings - ansible_managed | comment BZs:
3754e5
  Resolves rhbz#2006230 (EL9)
3754e5
  Resolves rhbz#2006231 (EL8)
3754e5
  Resolves rhbz#2006233 (EL7)
3754e5
- logging - logging role missing quotes for immark module interval value
3754e5
  Resolves rhbz#2021678 (EL8)
3754e5
  Resolves rhbz#2021676 (EL9)
3754e5
- logging - Add user and password
3754e5
  Resolves rhbz#2010327 (EL8)
3754e5
  Resolves rhbz#1990490 (EL9)
3754e5
- logging - Performance improvement
3754e5
  Resolves rhbz#2005727 (EL8)
3754e5
  Resolves rhbz#2004303 (EL9)
3754e5
- nbde_client - add regenerate-all to the dracut command
3754e5
  Resolves rhbz#2021682 (EL8)
3754e5
  Resolves rhbz#2021681 (EL9)
3754e5
- certificate - Fix certificate permissions with "group" option
3754e5
  Resolves rhbz#2021683 (EL8)
3754e5
  Resolves rhbz#2021025 (EL9)
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.7.3-2
88a858
- selinux - tag tests_selinux_disabled.yml with tests::avc
88a858
  (Resolves rhbz#1996315 (EL9))
88a858
  (Resolves rhbz#1996317 (EL8))
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.7.3-1
88a858
- storage - revert the dm-vdo workaround fix for vdo testing
88a858
  (Resolves rhbz#1978488 (EL9))
88a858
  (Resolves rhbz#1991141 (EL8))
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.7.2-1
88a858
- logging - Update the certificates copy tasks
88a858
  (Resolves rhbz#1996777 (EL9))
88a858
  (Resolves rhbz#1994580 (EL8))
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.7.1-1
88a858
- metrics - the bpftrace role does not properly configure bpftrace agent
88a858
  (Resolves rhbz#1994180 (EL9))
88a858
  (Resolves rhbz#1993240 (EL8))
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.7.0-1
88a858
- drop support for Ansible 2.8 - min_ansible_version is now 2.9
88a858
  (Resolves rhbz#1989197 (EL9))
88a858
  (Resolves rhbz#1989199 (EL8))
88a858
- sshd - fix rhel6 support - failed to validate: error:Missing Match criteria for all Bad Match condition
88a858
  (Resolves rhbz#1991598 (EL9))
88a858
  (Resolves rhbz#1990947 (EL8))
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.6.7-1
88a858
- storage - tests_create_lvmvdo_then_remove fails - Module dm-vdo not found
88a858
  (Resolves rhbz#1991141 (EL8))
88a858
  (Resolves rhbz#1991062 (EL9))
88a858
- storage - Get syntax errors in tests_lvm_errors.yml
88a858
  (Resolves rhbz#1990793 (EL8))
88a858
  (Resolves rhbz#1991142 (EL9))
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.6.6-1
88a858
- logging, certificate - Instead of the archive module, use "tar" command for backup.
88a858
  (Resolves rhbz#1984182 (EL9))
88a858
  (Resolves rhbz#1987096 (EL8))
88a858
- logging - Add a support for list value to server_host in the elasticsearch output
88a858
  (Resolves rhbz#1986460 (EL9))
88a858
  (Resolves rhbz#1986463 (EL8))
88a858
- logging - tests_relp.yml; Can't detect any of the required Python libraries cryptography (>= 1.2.3) or PyOpenSSL (>= 0.6)
88a858
  (Resolves rhbz#1989962 (EL9))
88a858
  (Resolves rhbz#1990142 (EL8))
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.6.5-1
88a858
- kernel_settings - Disable bootloader testing on EL9
88a858
  (Resolves rhbz#1991017)
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.6.4-1
88a858
- sshd - support for rhel9 managed hosts
88a858
  (Resolves rhbz#1989221 (EL9))
88a858
  (Resolves rhbz#1989638 (EL8))
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.6.3-1
88a858
- storage - tag tests that use NVME and SCSI
88a858
  (Resolves rhbz#1989211 (EL9))
88a858
  (Resolves rhbz#1989638 (EL8))
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.6.2-1
88a858
- metrics - Grafana dashboard not working after metrics role run unless services manually restarted
88a858
  (Resolves rhbz#1984150 (EL9))
88a858
  (Resolves rhbz#1978357 (EL8))
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.6.1-1
88a858
- network - tests_provider_nm.yml fails with an error: Failure in test 'I can manage a veth interface with NM after I managed it with initscripts.
88a858
  (Resolves rhbz#1935919)
88a858
- network - _initscripts tests fail because "No package network-scripts available."
88a858
  (Resolves rhbz#1935916)
88a858
- network - Test tests_bond_initscripts.yml failed to create interface
88a858
  (Resolves rhbz#1980870)
88a858
- storage - covscan error - DEADCODE - vdopool if create_vdo else parent
88a858
  (Resolves rhbz#1985571 (EL9))
88a858
  (Resolves rhbz#1985572 (EL8))
88a858
- network - network: tests_bond_initscripts.yml leaves behind unusable resolv.conf in CI
88a858
  (Resolves rhbz#1915017)
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.6.0-1
88a858
- network - Skip tests on RHEL9 that use hostapd
88a858
  (Resolves rhbz#1945348)
88a858
- network - Fix the bond test on DHCP
88a858
  (Resolves rhbz#1918252)
88a858
- storage - Add support for percentage-based volume sizes
88a858
  (Resolves rhbz#1984583 (EL9))
88a858
  (Resolves rhbz#1894642 (EL8))
88a858
- storage -storage_test_actual_size != storage_test_requested_size observed with tests_lvm_auto_size_cap.yml
88a858
  (Resolves rhbz#1986284 (EL8))
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-1
88a858
- Error: device becoming unmanaged and pytest not reproducible in tests_integration_pytest.yl
88a858
  (Resolves rhbz#1985382 (EL9))
88a858
  (Resolves rhbz#1932699 (EL8))
88a858
- EPEL yum repository configuration for tests
88a858
  Rebasing to latest picks up this fix - see rhel7 bz1980439
88a858
- connections: workaround DeprecationWarning for NM.SettingEthtool.set_feature()
88a858
  Rebasing to latest picks up this fix
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.5.0-1
88a858
- ha_cluster - add pacemaker cluster properties configuration
88a858
  (Resolves rhbz#1982913 (EL8))
88a858
  (Resolves rhbz#1982906 (EL9))
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.4.3-1
88a858
- crypto_policies - rename 'policy modules' to 'subpolicies'
88a858
  (Resolves rhbz#1982896 (EL9))
88a858
  (Resolves rhbz#1982897 (EL8))
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.4.2-1
88a858
- storage - relabel doesn't support - Fixed volume relabeling
88a858
  (Resolves rhbz#1876315 (EL8))
88a858
  (Resolves rhbz#1982841 (EL9))
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.4.1-1
88a858
- network - Re-running the network system role results in "changed: true" when nothing has actually changed
88a858
  (Resolves rhbz#1943384)
88a858
- network - Test tests_bond_initscripts.yml failed to create interface
88a858
  (Resolves rhbz#1918210)
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.4.0-1
88a858
- storage - LVMVDO support
88a858
  (Resolves rhbz#1882475)
88a858
  (Resolves rhbz#1978488)
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.3.0-1
88a858
- ha_cluster - add pacemaker resources configuration
88a858
  (Resolves rhbz#1963283)
88a858
- ha_cluster - code cleanup
88a858
  (Resolves rhbz#1970666)
88a858
- Postfix RHEL system role README.md missing variables under the "Role Variables" section
88a858
  (Resolves rhbz#1961858)
88a858
- logging README.html examples are rendered incorrectly
88a858
  (Resolves rhbz#1962374)
88a858
- make postfix role idempotent - round 2
88a858
  (Resolves rhbz#1960375)
88a858
- selinux task for semanage says Fedora in name but also runs on RHEL/CentOS 8
88a858
  (Resolves rhbz#1966681)
88a858
  Resolves rhbz#1757857
88a858
- metrics role task to enable logging for targeted hosts not working
88a858
  (Resolves rhbz#1967335)
88a858
- network - Add 'auto_gateway' option
88a858
  (Resolves rhbz#1897565)
88a858
- network - Only show stderr_lines by default
88a858
  (Resolves rhbz#1970666)
88a858
- storage - LVMVDO support
88a858
  (Resolves rhbz#1882475)
88a858
- storage - fix several linter issues
88a858
  (Resolves rhbz#1970666)
88a858
- ssh - Fix variable precedence when invoked through roles
88a858
  (Resolves rhbz#1966711)
88a858
- ssh - Update configuration options list for OpenSSH 8.6
88a858
  (Resolves rhbz#1970666)
88a858
- sshd - Fix variable precedence when invoked through roles
88a858
  (Resolves rhbz#1966711)
88a858
- sshd - Update configuration options list for OpenSSH 8.6
88a858
  (Resolves rhbz#1970666)
88a858
- sshd - support for appending a snippet to configuration file
88a858
  (Resolves rhbz#1970642)
88a858
- timesync - add NTS support
88a858
  (Resolves rhbz#1970664)
88a858
- timesync - rebase to latest
88a858
  (Resolves rhbz#1970666)
88a858
- nbde_client - rebase to latest
88a858
  (Resolves rhbz#1970666)
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.2.3-3 
88a858
- Make the ansible_collection_files macro defined in Fedora automatically and
88a858
  in RHEL manually consistent - having slash at the end to clean double-slashes
88a858
88a858
* Tue Aug 31 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.2.3-2
88a858
- Remove slash (/) from the end of URLs to improve code readability
88a858
88a858
* Tue Aug 31 2021 Noriko Hosoi <nhosoi@redhat.com> - 1.2.3-1
88a858
- Add EL 9 support for timesync and network
88a858
  (Resolves rhbz#1952887)
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.2.2-3
88a858
- Fix HTML rendering of internal links when using pandoc/asciidoc
88a858
- Uses pandoc gfm instead of markdown_github
88a858
  (Resolves rhbz#1962976)
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Noriko Hosoi <nhosoi@redhat.com> - 1.2.2-2
88a858
- Make spec file available for older versions of OSes.
88a858
- Drop python3-six dependency which was used by lsr_role2collection.py.
88a858
- Drop html files from rpm if the version has no markdown parser.
88a858
- Drop unnecessary python scripts which include python3 only code, e.g.,
88a858
  f-strings.
88a858
- auto_maintenance - ability to convert "- ROLENAME" to "- FQCN" in the doc files such as README
88a858
- auto_maintenance - lsr_role2collection.py - Adding encoding="utf-8" to open.
88a858
  (Resolves rhbz#1957876)
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.2.2-1
88a858
- fix kdump tests_ssh for basic smoke test
88a858
  (Resolves rhbz#1957876)
88a858
- ha_cluster - cannot read preshared key in binary format
88a858
  (Resolves rhbz#1952620)
88a858
- Add hybrid_e2e option to PTP domain
88a858
  (Resolves rhbz#1957849)
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Noriko Hosoi <nhosoi@redhat.com> - 1.2.1-1
88a858
- fix logging README.html examples' rendering problems
88a858
  (Resolves rhbz#1962374)
88a858
- fix broken internal links in README.md files
88a858
  (Resolves rhbz#1962976)
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.2.0-2
88a858
- Add BuildRequires: rubygem-kramdown for Fedora and RHEL >= 9
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.2.0-1
88a858
- rebase roles to latest upstream
88a858
  (Resolves rhbz#1957876)
88a858
- use FQRN in postfix README
88a858
  (Resolves rhbz#1958963)
88a858
- use relayhost in postfix README
88a858
  (Resolves rhbz#1866544)
88a858
- network - Add support for ETHTOOL Ring option
88a858
  (Resolves rhbz#1959649)
88a858
- storage: calltrace observed when set type: partition for storage_pools
88a858
  (Resolves rhbz#1854187)
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Noriko Hosoi <nhosoi@redhat.com> - 1.1.0-2
88a858
- Dependencies in the collection packaging
88a858
  (Resolves rhbz#1954747)
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1
88a858
- rebase timesync role to latest upstream
88a858
  (Resolves rhbz#1937938)
88a858
- timesync - add timesync_chrony_custom_settings variable for free-form
88a858
  local configs
88a858
  (Resolves rhbz#1938023)
88a858
- do not use ignore_errors in timesync role
88a858
  (Resolves rhbz#1938014)
88a858
- support for timesync_max_distance to configure maxdistance/maxdist parameter
88a858
  (Resolves rhbz#1938016)
88a858
- support for ntp xleave, filter, and hw timestamping
88a858
  (Resolves rhbz#1938020)
88a858
- rebase selinux role to latest upstream
88a858
  (Resolves rhbz#1937938)
88a858
- should not reload the SELinux policy if its not changed
88a858
  (Resolves rhbz#1757869)
88a858
- Ability to install custom SELinux module via Ansible
88a858
  (Resolves rhbz#1848683)
88a858
- rebase storage role to latest upstream
88a858
  (Resolves rhbz#1937938)
88a858
- rebase network role to latest upstream
88a858
  (Resolves rhbz#1937938)
88a858
- support for ipv6_disabled to disable ipv6 for address
88a858
  (Resolves rhbz#1939711)
88a858
- rebase postfix role to latest upstream
88a858
  (Resolves rhbz#1937938)
88a858
- rebase metrics role to latest upstream
88a858
  (Resolves rhbz#1937938)
88a858
- rebase sshd role to latest upstream
88a858
  (Resolves rhbz#1937938)
88a858
- rebase remaining roles to latest upstream
88a858
  (Resolves rhbz#1937938)
88a858
- Generate %%files dynamically
88a858
- add vpn role
88a858
  (Resolves rhbz#1943679)
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Noriko Hosoi <nhosoi@redhat.com> - 1.0.1-5
88a858
- README.html files (main README for the collection and README
88a858
  for each role) are not located in /usr/share/ansible/collections,
88a858
  but just put in /usr/share/doc/linux-system-roles/collection in rpm.
88a858
- The README.html files are not included in the collection artifact.
88a858
- Fixing "sshd role README.md examples use incorrect role name".
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Noriko Hosoi <nhosoi@redhat.com> - 1.0.1-5
88a858
- Adding the -collection-artifact subpackage, enabled using
88a858
  "--with collection_artifact". It is used for importing to
88a858
  ansible galaxy/automation hub.
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Noriko Hosoi <nhosoi@redhat.com> - 1.0.1-5
88a858
- Start synchronizing with 8.5.0
88a858
  Related: rhbz#2029621
88a858
88a858
* Tue Aug 31 2021 Noriko Hosoi <nhosoi@redhat.com> - 1.0.1-5
88a858
- Respin for the next extra-rhel-7.9 release with bz1999708.
88a858
  Related: rhbz#1999708
88a858
6e715b
* Fri Jul 23 2021 Noriko Hosoi <nhosoi@redhat.com> - 1.0.1-4
6e715b
- Remove unnecessary dependency on python3-netaddr
6e715b
  Related: rhbz#1970165
6e715b
6e715b
* Fri Jul 16 2021 Noriko Hosoi <nhosoi@redhat.com> - 1.0.1-3
6e715b
- Fix the tier1 test failure in network due to the epel repo not enabled.
6e715b
  Related: rhbz#1970165
6e715b
6e715b
* Wed Jul  7 2021 Noriko Hosoi <nhosoi@redhat.com> - 1.0.1-2
6e715b
- Fix an invalid indentation in the spec file.
6e715b
  Related: rhbz#1970165
6e715b
- Mention bz1854189 here as it was fixed in backporting rhel-8.4.0.
6e715b
  Related: rhbz#1854189
6e715b
- Remove gating.yaml which was introduced in backporting rhel-8.4.0.
6e715b
  Related: rhbz#197016
6e715b
6e715b
* Tue Jun 29 2021 Noriko Hosoi <nhosoi@redhat.com> - 1.0.1-1
6e715b
- Synchronize roles with rhel-8.4.0.
6e715b
  Update roles kdump, selinux, timesync, network, and storage.
6e715b
  Add new roles metrics, tlog, kernel_settings, logging, nbde_server,
6e715b
  nbde_client, certificate, crypto_policies, sshd, ssh, and ha_cluster.
6e715b
- Synchronize spec file with rawhide's up to commit 6218fe9.
6e715b
  Related: rhbz#1970165
6e715b
48847c
* Tue Jun  9 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-12
48847c
- Rebase the network role
48847c
  Resolves rhbz#1767177, rhbz#1842605, rhbz#1789813, rhbz#1724280
48847c
- Tag tests suitable for Tier1 testing, rhbz#1732085
48847c
  In network role, do not use the tier1 tags, won't be needed.
48847c
- Fix or workaround test problems in network role,
48847c
  rhbz#1842614, rhbz#1842619, rhbz#1842621
48847c
- Set _python_bytecompile_errors_terminate_build to 0, otherwise
48847c
  brp-python-bytecompile chokes on network/tests/ensure_provider_tests.py
48847c
48847c
* Wed Jan 15 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-10
48847c
- Update tests for the network role
48847c
- Fix typo in a test for the timesync role
48847c
- Rebase the network role to add support for device features (PR#115,
48847c
  rhbz#1696703) and atomic changes (PR#119, rhbz#1695161)
48847c
- Add the storage role
48847c
- Depend on python-jmespath as Ansible>2.8 will not ship it, rhbz#1774096
48847c
e3da41
* Mon Jun  3 2019 Pavel Cahyna <pcahyna@redhat.com> - 1.0-8
e3da41
- Rebase the selinux role, fixes typo in tests, uncovered by Ansible 2.7,
e3da41
  (rhbz#1651285) and lists all input variables of the selinux role in defaults
e3da41
  to make Satellite aware of them (rhbz#1674000, PR#43)
e3da41
- Rebase the kdump role to fix check mode problems: rhbz#1716689
e3da41
- Rebase the timesync role: fixes check mode problems (rhbz#1716689)
e3da41
  and lists all input variables in defaults (rhbz#1674000)
e3da41
- Rebase the network role: keeps the interface up for state: up
e3da41
  if persistent_state is absent and solves problems with defining
e3da41
  VLAN and MACVLAN interface types (issue #19) (rhbz#1686866)
e3da41
e3da41
* Mon May 13 2019 Pavel Cahyna <pcahyna@redhat.com> - 1.0-7
e3da41
- kdump: copy the dump target's public host key to the managed node known_hosts
e3da41
  PR #22, rhbz#1651342
e3da41
0d3d3b
* Tue Nov  6 2018 Pavel Cahyna <pcahyna@redhat.com> - 1.0-5
0d3d3b
- spec file improvement: Unify the source macros with deftag() and defcommit()
0d3d3b
- Update to upstream released versions and drop unnecessary patches.
0d3d3b
- Unify the spec file with Fedora (no functional changes intended).
0d3d3b
- Misc spec file comments fixes (by Mike DePaulo)
0d3d3b
- Fix rpmlint error by escaping a previous changelog entry with a macro (by Mike DePaulo)
0d3d3b
- Comply with Fedora guidelines by always using "cp -p" in %%install (by Mike DePaulo)
0d3d3b
- Rebase network role - doc improvements, Fedora 29 and Ansible 2.7 support
0d3d3b
- Regenerate network role patch to apply without offset
0d3d3b
- Rebase kdump role to fix a forgotten edit, rhbz#1645633
0d3d3b
- Update timesync examples: add var prefix (rhbz#1642152), correct role prefix
0d3d3b
0d3d3b
* Thu Aug 16 2018 Pavel Cahyna <pcahyna@redhat.com> - 1.0-4
0d3d3b
- Add Obsoletes for the -techpreview subpackage
0d3d3b
0d3d3b
* Thu Aug 16 2018 Pavel Cahyna <pcahyna@redhat.com> - 1.0-3
0d3d3b
- Add warnings to role READMEs and other doc updates, rhbz#1616018
0d3d3b
- network: split the state setting into state and persistent_state, rhbz#1616014
0d3d3b
- Undo the -techpreview subpackage introduced in 1.0-1, rhbz#1616015
0d3d3b
b30e92
* Thu Aug  2 2018 Pavel Cahyna <pcahyna@redhat.com> - 1.0-2
b30e92
- Rebase the network role to the last revision (d866422).
b30e92
  Many improvements to tests, introduces autodetection of the current provider
b30e92
  and defaults to using profile name as interface name.
b30e92
- Update the description.
b30e92
b30e92
* Wed Aug  1 2018 Pavel Cahyna <pcahyna@redhat.com> - 1.0-1
b30e92
- Rebase the selinux, timesync and kdump roles to their 1.0rc1 versions.
b30e92
  Many changes to the role interfaces to make them more consistent
b30e92
  and conforming to Ansible best practices.
b30e92
- Split the postfix role into a -techpreview subpackage, we do not consider
b30e92
  it stable yet.
b30e92
0ecfb5
* Wed Mar 14 2018 Pavel Cahyna <pcahyna@redhat.com> - 0.6-3
0ecfb5
- Minor corrections of the previous change by Till Maas.
0ecfb5
0ecfb5
* Fri Mar  9 2018 Pavel Cahyna <pcahyna@redhat.com> - 0.6-2
0ecfb5
- Document network role options: static routes, ethernet, dns
0ecfb5
  Upstream PR#36, bz1550128, documents bz1487747 and bz1478576
0ecfb5
1a3b94
* Tue Jan 30 2018 Pavel Cahyna <pcahyna@redhat.com> - 0.6-1
1a3b94
- Drop hard dependency on ansible (#1525655), patch from Yaakov Selkowitz
1a3b94
- Update the network role to version 0.4, solves bz#1487747, bz#1478576
1a3b94
7185bc
* Tue Dec 19 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.5-3
7185bc
- kdump: fix the wrong conditional for ssh checking and improve test (PR#10)
7185bc
7185bc
* Tue Nov 07 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.5-2
7185bc
- kdump: add ssh support. upstream PR#9, rhbz1478707
7185bc
906ee8
* Tue Oct 03 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.5-1
906ee8
- SELinux: fix policy reload when SELinux is disabled on CentOS/RHEL 6
906ee8
  (bz#1493574)
906ee8
- network: update to b856c7481bf5274d419f71fb62029ea0044b3ec1 :
906ee8
  makes the network role idempotent (bz#1476053) and fixes manual
906ee8
  network provider selection (bz#1485074).
906ee8
1d7625
* Mon Aug 28 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.4-1
1d7625
- network: update to b9b6f0a7969e400d8d6ba0ac97f69593aa1e8fa5:
1d7625
  ensure that state:absent followed by state:up works (bz#1478910), and change
1d7625
  the example IP adresses to the IANA-assigned ones.
1d7625
- SELinux: fix the case when SELinux is disabled (bz#1479546).
1d7625
1d7625
* Tue Aug 8 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.3-2
1d7625
- We can't change directories to symlinks (rpm bug #447156) so keep the old
1d7625
  names and create the new names as symlinks.
1d7625
1d7625
* Tue Aug 8 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.3-1
1d7625
- Change the prefix to linux-system-roles., keeping compatibility
1d7625
  symlinks.
1d7625
- Update the network role to dace7654feb7b5629ded0734c598e087c2713265:
1d7625
  adds InfiniBand support and other fixes.
1d7625
- Drop a patch included upstream.
1d7625
617c05
* Mon Jun 26 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.2-2
617c05
- Leave a copy of README and COPYING in every role's directory, as suggested by T. Bowling.
617c05
- Move the network example inventory to the documentation directory together.
617c05
  with the example playbooks and delete the now empty "examples" directory.
617c05
- Use proper reserved (by RFC 7042) MAC addresses in the network examples.
617c05
617c05
* Tue Jun 6 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.2-1
617c05
- Update the networking role to version 0.2 (#1459203)
617c05
- Version every role and the package separately. They live in separate repos
617c05
  and upstream release tags are not coordinated.
617c05
617c05
* Mon May 22 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.1-2
617c05
- Prefix the roles in examples and documentation with rhel-system-roles.
617c05
617c05
* Thu May 18 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.1-1
617c05
- Update to 0.1 (first upstream release).
617c05
- Remove the tuned role, it is not ready yet.
617c05
- Move the example playbooks to /usr/share/doc/rhel-system-roles/$SUBSYSTEM
617c05
  directly to get rid of an extra directory.
617c05
- Depend on ansible.
617c05
617c05
* Thu May 4 2017  Pavel Cahyna <pcahyna@redhat.com> - 0-0.1.20170504
617c05
- Initial release.
617c05
- kdump r. fe8bb81966b60fa8979f3816a12b0c7120d71140
617c05
- postfix r. 43eec5668425d295dce3801216c19b1916df1f9b
617c05
- selinux r. 1e4a21f929455e5e76dda0b12867abaa63795ae7
617c05
- timesync r. 33a1a8c349de10d6281ed83d4c791e9177d7a141
617c05
- tuned r. 2e8bb068b9815bc84287e9b6dc6177295ffdf38b
617c05
- network r. 03ff040df78a14409a0d89eba1235b8f3e50a750
617c05