Blame SPECS/rhel-system-roles.spec

e662d2
%if 0%{?rhel} && ! 0%{?epel}
e662d2
%bcond_with ansible
e662d2
%else
e662d2
%bcond_without ansible
e662d2
%endif
e662d2
cc4018
%if 0%{?rhel}
cc4018
Name: rhel-system-roles
cc4018
%else
cc4018
Name: linux-system-roles
cc4018
%endif
e662d2
Url: https://github.com/linux-system-roles/
cc4018
Summary: Set of interfaces for unified system management
e662d2
Version: 1.0.0
e662d2
Release: 31%{?dist}
cc4018
cc4018
#Group: Development/Libraries
cc4018
License: GPLv3+ and MIT and BSD
e662d2
%global installbase %{_datadir}/linux-system-roles
e662d2
%global _pkglicensedir %{_licensedir}/%{name}
cc4018
%global rolealtprefix linux-system-roles.
cc4018
%global roleprefix %{name}.
e662d2
%global roleinstprefix %{nil}
e662d2
%global rolealtrelpath ../../linux-system-roles/
e662d2
%if 0%{?rhel}
e662d2
%global roleinstprefix %{roleprefix}
e662d2
%global installbase %{_datadir}/ansible/roles
e662d2
%global rolealtrelpath %{nil}
e662d2
%endif
e662d2
e662d2
%if 0%{?rhel}
e662d2
%global collection_namespace redhat
e662d2
%global collection_name rhel_system_roles
e662d2
%else
e662d2
%global collection_namespace fedora
e662d2
%global collection_name linux_system_roles
e662d2
%endif
e662d2
%global subrole_prefix "private_${role}_subrole_"
e662d2
e662d2
%global collection_version %{version}
e662d2
e662d2
# Helper macros originally from macros.ansible by Igor Raits <ignatenkobrain>
e662d2
# Not available on RHEL, so we must define those macros locally here without using ansible-galaxy
e662d2
e662d2
# Not used (yet). Could be made to point to AH in RHEL - but what about CentOS Stream?
e662d2
#%%{!?ansible_collection_url:%%define ansible_collection_url() https://galaxy.ansible.com/%%{collection_namespace}/%%{collection_name}}
e662d2
e662d2
%{!?ansible_collection_files:%define ansible_collection_files %{_datadir}/ansible/collections/ansible_collections/%{collection_namespace}/}
e662d2
e662d2
%if %{with ansible}
e662d2
BuildRequires: ansible >= 2.9.10
e662d2
%endif
e662d2
e662d2
%if %{undefined ansible_collection_build}
e662d2
%if %{without ansible}
e662d2
# Empty command. We don't have ansible-galaxy.
e662d2
%define ansible_collection_build() :
e662d2
%else
e662d2
%define ansible_collection_build() ansible-galaxy collection build
e662d2
%endif
e662d2
%endif
e662d2
e662d2
%if %{undefined ansible_collection_install}
e662d2
%if %{without ansible}
e662d2
# Simply copy everything instead of galaxy-installing the built artifact.
e662d2
%define ansible_collection_install() mkdir -p %{buildroot}%{ansible_collection_files}; cp -a . %{buildroot}%{ansible_collection_files}/%{collection_name}/
e662d2
%else
e662d2
%define ansible_collection_install() ansible-galaxy collection install -n -p %{buildroot}%{_datadir}/ansible/collections %{collection_namespace}-%{collection_name}-%{version}.tar.gz
e662d2
%endif
e662d2
%endif
cc4018
cc4018
# For each role, call either defcommit() or deftag(). The other macros
cc4018
# (%%id and %%shortid) can be then used in the same way in both cases.
cc4018
# This way  the rest of the spec file des not need to know whether we are
cc4018
# dealing with a tag or a commit.
e662d2
%global archiveext tar.gz
e662d2
# list of role names
e662d2
%global rolenames %nil
e662d2
# list of assignments that can be used to populate a bash associative array variable
e662d2
%global rolestodir %nil
e662d2
%define getarchivedir() %(p=%{basename:%{S:%{1}}}; echo ${p%%.%{archiveext}})
e662d2
e662d2
%define defcommit() %{expand:%%global ref%{1} %{2}
e662d2
%%global shortcommit%{1} %%(c=%%{ref%{1}}; echo ${c:0:7})
e662d2
%%global extractdir%{1} %%{expand:%%getarchivedir %{1}}
e662d2
%%{!?repo%{1}:%%global repo%{1} %%{rolename%{1}}}
e662d2
%%global archiveurl%{1} %%{?forgeorg%{1}}%%{!?forgeorg%{1}:%%{url}}%%{repo%{1}}/archive/%%{ref%{1}}/%%{repo%{1}}-%%{ref%{1}}.tar.gz
e662d2
%%global rolenames %%{?rolenames} %%{rolename%{1}}
e662d2
%%global roletodir%{1} [%{rolename%{1}}]="%{extractdir%{1}}"
e662d2
%%global rolestodir %%{?rolestodir} %{roletodir%{1}}
cc4018
}
cc4018
e662d2
%define deftag() %{expand:%%global ref%{1} %{2}
e662d2
%%global extractdir%{1} %%{expand:%%getarchivedir %{1}}
e662d2
%%{!?repo%{1}:%%global repo%{1} %%{rolename%{1}}}
e662d2
%%global archiveurl%{1} %%{?forgeorg%{1}}%%{!?forgeorg%{1}:%%{url}}%%{repo%{1}}/archive/%%{ref%{1}}/%%{repo%{1}}-%%{ref%{1}}.tar.gz
e662d2
%%global rolenames %%{?rolenames} %%{rolename%{1}}
e662d2
%%global roletodir%{1} [%{rolename%{1}}]="%{extractdir%{1}}"
e662d2
%%global rolestodir %%{?rolestodir} %%{roletodir%{1}}
cc4018
}
cc4018
cc4018
#%%defcommit 1 43eec5668425d295dce3801216c19b1916df1f9b
cc4018
%global rolename1 postfix
cc4018
%deftag 1 0.1
cc4018
e662d2
#%%defcommit 2 6cd1ec8fdebdb92a789b14e5a44fe77f0a3d8ecd
cc4018
%global rolename2 selinux
e662d2
%deftag 2 1.1.1
cc4018
cc4018
%defcommit 3 924650d0cd4117f73a7f0413ab745a8632bc5cec
cc4018
%global rolename3 timesync
cc4018
#%%deftag 3 1.0.0
cc4018
e662d2
%defcommit 4 77596fdd976c6160d6152c200a5432c609725a14
e662d2
%global rolename4 kdump
e662d2
#%%deftag 4 1.0.0
e662d2
e662d2
%defcommit 5 bda206d45c87ee8c1a5284de84f5acf5e629de97
cc4018
%global rolename5 network
cc4018
#%%deftag 5 1.0.0
cc4018
e662d2
%defcommit 6 485de47b0dc0787aea077ba448ecb954f53e40c4
8971e9
%global rolename6 storage
e662d2
#%%deftag 6 1.2.2
8971e9
e662d2
%defcommit 7 e81b2650108727f38b1c856699aad26af0f44a46
583029
%global rolename7 metrics
583029
#%%deftag 7 0.1.0
583029
e662d2
#%%defcommit 8 cfa70b6b5910b3198aba2679f8fc36aad45ca45a
583029
%global rolename8 tlog
e662d2
%deftag 8 1.1.0
583029
e662d2
%defcommit 9 e5e5abb35fb695e22ccffa855c98ab882650480e
583029
%global rolename9 kernel_settings
e662d2
#%%deftag 9 1.0.1
583029
e662d2
%defcommit 10 4b07edf4e84882c9d0fb979092ba5953aac0b4d5
583029
%global rolename10 logging
583029
#%%deftag 10 0.2.0
583029
e662d2
#%%defcommit 11 4b6cfca4dd24e53a4bc4e07635601d7c104346c1
583029
%global rolename11 nbde_server
e662d2
%deftag 11 1.0.1
583029
e662d2
%defcommit 12 3af7452e4861ee2363b29b23bf78bf11e06be142
583029
%global rolename12 nbde_client
e662d2
#%%deftag 12 1.0.1
583029
e662d2
%defcommit 13 50041ce55348fcce34aba4cbe3ea160c5d890ab3
583029
%global rolename13 certificate
e662d2
#%%deftag 13 1.0.1
e662d2
e662d2
%defcommit 14 76b2d5b0460dba22c5d290c1af96e4fdb3434cb9
e662d2
%global rolename14 crypto_policies
e662d2
e662d2
%global forgeorg15 https://github.com/willshersystems/
e662d2
%global repo15 ansible-sshd
e662d2
%global rolename15 sshd
e662d2
%defcommit 15 e1de59b3c54e9d48a010eeca73755df339c7e628
e662d2
e662d2
%defcommit 16 effa0a0d993832dee726290f263a2182cf3eacda
e662d2
%global rolename16 ssh
e662d2
e662d2
%defcommit 17 779bb78559de58bb5a1f25a4b92039c373ef59a4
e662d2
%global rolename17 ha_cluster
e662d2
e662d2
%global mainid e5ed203b2d7224c0bf0c3fd55452456c8f468cad
e662d2
Source: %{url}auto-maintenance/archive/%{mainid}/auto-maintenance-%{mainid}.tar.gz
e662d2
Source1: %{archiveurl1}
e662d2
Source2: %{archiveurl2}
e662d2
Source3: %{archiveurl3}
e662d2
Source4: %{archiveurl4}
e662d2
Source5: %{archiveurl5}
e662d2
Source6: %{archiveurl6}
e662d2
Source7: %{archiveurl7}
e662d2
Source8: %{archiveurl8}
e662d2
Source9: %{archiveurl9}
e662d2
Source10: %{archiveurl10}
e662d2
Source11: %{archiveurl11}
e662d2
Source12: %{archiveurl12}
e662d2
Source13: %{archiveurl13}
e662d2
Source14: %{archiveurl14}
e662d2
Source15: %{archiveurl15}
e662d2
Source16: %{archiveurl16}
e662d2
Source17: %{archiveurl17}
e662d2
e662d2
# Script to convert the collection README to Automation Hub.
e662d2
# Not used on Fedora.
e662d2
Source998: collection_readme.sh
cc4018
cc4018
Patch11: rhel-system-roles-postfix-pr5.diff
e662d2
Patch12: postfix-meta-el8.diff
cc4018
cc4018
Patch21: selinux-tier1-tags.diff
e662d2
Patch22: selinux-bz-1926947-no-variable-named-present.diff
cc4018
cc4018
Patch31: timesync-tier1-tags.diff
cc4018
e662d2
Patch41: rhel-system-roles-kdump-pr22.diff
e662d2
Patch42: kdump-tier1-tags.diff
e662d2
Patch43: kdump-meta-el8.diff
e662d2
Patch44: kdump-fix-newline.diff
e662d2
e662d2
Patch51: network-epel-minimal.diff
e662d2
# Not suitable for upstream, since the files need to be executable there
cc4018
Patch52: network-permissions.diff
cc4018
Patch53: network-tier1-tags.diff
e662d2
Patch55: network-disable-bondtests.diff
cc4018
e662d2
Patch62: storage-partition-name.diff
e662d2
Patch63: storage-no-disks-existing.diff
e662d2
Patch64: storage-trim-volume-size.diff
e662d2
e662d2
Patch71: metrics-mssql-x86.diff
e662d2
e662d2
Patch151: sshd-example.diff
e662d2
Patch152: sshd-work-on-ansible28-jinja27.diff
8971e9
cc4018
BuildArch: noarch
cc4018
e662d2
# These are needed for md2html.sh to build the documentation
cc4018
BuildRequires: asciidoc
cc4018
BuildRequires: pandoc
cc4018
BuildRequires: highlight
e662d2
BuildRequires: python3
e662d2
BuildRequires: python3-six
e662d2
BuildRequires: python3dist(ruamel.yaml)
cc4018
cc4018
Requires: python3-jmespath
cc4018
cc4018
Obsoletes: rhel-system-roles-techpreview < 1.0-3
cc4018
e662d2
%if %{undefined __ansible_provides}
e662d2
Provides: ansible-collection(%{collection_namespace}.%{collection_name}) = %{collection_version}
e662d2
%endif
e662d2
# be compatible with the usual Fedora Provides:
e662d2
Provides: ansible-collection-%{collection_namespace}-%{collection_name} = %{version}-%{release}
e662d2
cc4018
# We need to put %%description within the if block to avoid empty
cc4018
# lines showing up.
cc4018
%if 0%{?rhel}
cc4018
%description
cc4018
Collection of Ansible roles and modules that provide a stable and
cc4018
consistent configuration interface for managing multiple versions
cc4018
of Red Hat Enterprise Linux.
cc4018
%else
cc4018
%description
cc4018
Collection of Ansible roles and modules that provide a stable and
cc4018
consistent configuration interface for managing multiple versions
cc4018
of Fedora, Red Hat Enterprise Linux & CentOS.
cc4018
%endif
cc4018
cc4018
%prep
e662d2
%setup -q -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12 -a13 -a14 -a15 -a16 -a17 -n %{getarchivedir 0}
e662d2
e662d2
declare -A ROLESTODIR=(%{rolestodir})
e662d2
for rolename in %{rolenames}; do
e662d2
    mv "${ROLESTODIR[${rolename}]}" ${rolename}
e662d2
done
e662d2
e662d2
cd %{rolename1}
cc4018
%patch11 -p1
e662d2
%patch12 -p1
cc4018
cd ..
e662d2
cd %{rolename2}
cc4018
%patch21 -p1
e662d2
%patch22 -p1
cc4018
cd ..
e662d2
cd %{rolename3}
cc4018
%patch31 -p1
cc4018
cd ..
e662d2
cd %{rolename4}
e662d2
%patch41 -p1
e662d2
%patch42 -p1
e662d2
%patch43 -p1
e662d2
%patch44 -p1
e662d2
cd ..
e662d2
cd %{rolename5}
e662d2
%patch51 -p1
cc4018
%patch52 -p1
cc4018
%patch53 -p1
e662d2
%patch55 -p1
cc4018
cd ..
e662d2
cd %{rolename6}
e662d2
%patch62 -p1
e662d2
%patch63 -p1
e662d2
%patch64 -p1
e662d2
cd ..
e662d2
cd %{rolename7}
e662d2
%patch71 -p1
e662d2
cd ..
e662d2
cd %{rolename15}
e662d2
%patch151 -p1
e662d2
%patch152 -p1
e662d2
sed -r -i -e "s/ansible-sshd/linux-system-roles.sshd/" tests/*.yml examples/*.yml README.md
8971e9
cd ..
cc4018
e662d2
# Replacing "linux-system-roles.rolename" with "rhel-system-roles.rolename" in each role
583029
%if "%{roleprefix}" != "linux-system-roles."
e662d2
for rolename in %{rolenames}; do
e662d2
    find $rolename -type f -exec \
e662d2
         sed "s/linux-system-roles[.]${rolename}\\>/%{roleprefix}${rolename}/g" -i {} \;
583029
done
583029
%endif
583029
e662d2
# Removing symlinks in tests/roles
e662d2
for rolename in %{rolenames}; do
e662d2
    if [ -d ${rolename}/tests/roles ]; then
e662d2
        find ${rolename}/tests/roles -type l -exec rm {} \;
e662d2
        if [ -d ${rolename}/tests/roles/linux-system-roles.${rolename} ]; then
e662d2
            rm -r ${rolename}/tests/roles/linux-system-roles.${rolename}
e662d2
        fi
e662d2
    fi
e662d2
done
e662d2
rm %{rolename5}/tests/modules
e662d2
rm %{rolename5}/tests/module_utils
e662d2
rm %{rolename5}/tests/playbooks/roles
e662d2
e662d2
# transform ambiguous #!/usr/bin/env python shebangs to python3 to stop brp-mangle-shebangs complaining
e662d2
find -type f -executable -name '*.py' -exec \
e662d2
     sed -i -r -e '1s@^(#! */usr/bin/env python)(\s|$)@#\13\2@' '{}' +
e662d2
cc4018
%build
e662d2
sh md2html.sh \
e662d2
%{rolename1}/README.md \
e662d2
%{rolename2}/README.md \
e662d2
%{rolename3}/README.md \
e662d2
%{rolename4}/README.md \
e662d2
%{rolename5}/README.md \
e662d2
%{rolename6}/README.md \
e662d2
%{rolename7}/README.md \
e662d2
%{rolename8}/README.md \
e662d2
%{rolename9}/README.md \
e662d2
%{rolename10}/README.md \
e662d2
%{rolename11}/README.md \
e662d2
%{rolename12}/README.md \
e662d2
%{rolename13}/README.md \
e662d2
%{rolename14}/README.md \
e662d2
%{rolename15}/README.md \
e662d2
%{rolename16}/README.md \
e662d2
%{rolename17}/README.md
e662d2
e662d2
mkdir .collections
e662d2
%if 0%{?rhel}
e662d2
# Convert the upstream collection readme to the downstream one
e662d2
%{SOURCE998} lsr_role2collection/collection_readme.md
e662d2
%endif
e662d2
./galaxy_transform.py "%{collection_namespace}" "%{collection_name}" "%{collection_version}" > galaxy.yml.tmp
e662d2
mv galaxy.yml.tmp galaxy.yml
e662d2
e662d2
for role in %{rolename1} %{rolename2} %{rolename3} \
e662d2
    %{rolename4} %{rolename5} %{rolename6} \
e662d2
    %{rolename7} %{rolename8} %{rolename9} \
e662d2
    %{rolename10} %{rolename11} %{rolename12} \
e662d2
    %{rolename13} %{rolename14} %{rolename15} \
e662d2
    %{rolename16} %{rolename17}; do
e662d2
    python3 lsr_role2collection.py --role "$role" --src-path "$role" \
e662d2
        --src-owner %{name} --subrole-prefix %{subrole_prefix} --dest-path .collections \
e662d2
        --readme lsr_role2collection/collection_readme.md \
e662d2
        --namespace %{collection_namespace} --collection %{collection_name}
e662d2
done
e662d2
e662d2
cp -p galaxy.yml lsr_role2collection/.ansible-lint \
e662d2
    .collections/ansible_collections/%{collection_namespace}/%{collection_name}
e662d2
mkdir -p .collections/ansible_collections/%{collection_namespace}/%{collection_name}/tests/sanity
e662d2
cp -p lsr_role2collection/ignore-2.9.txt \
e662d2
    .collections/ansible_collections/%{collection_namespace}/%{collection_name}/tests/sanity
e662d2
e662d2
cd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
e662d2
%ansible_collection_build
cc4018
cc4018
%install
e662d2
mkdir -p $RPM_BUILD_ROOT%{installbase}
cc4018
mkdir -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles
cc4018
e662d2
cp -pR %{rolename1}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename1}
e662d2
cp -pR %{rolename2}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename2}
e662d2
cp -pR %{rolename3}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename3}
e662d2
cp -pR %{rolename4}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename4}
e662d2
cp -pR %{rolename5}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename5}
e662d2
cp -pR %{rolename6}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename6}
e662d2
cp -pR %{rolename7}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename7}
e662d2
cp -pR %{rolename8}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename8}
e662d2
cp -pR %{rolename9}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename9}
e662d2
cp -pR %{rolename10}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename10}
e662d2
cp -pR %{rolename11}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename11}
e662d2
cp -pR %{rolename12}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename12}
e662d2
cp -pR %{rolename13}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename13}
e662d2
cp -pR %{rolename14}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename14}
e662d2
cp -pR %{rolename15}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename15}
e662d2
cp -pR %{rolename16}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename16}
e662d2
cp -pR %{rolename17}      $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}%{rolename17}
cc4018
cc4018
%if 0%{?rolealtprefix:1}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename1}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename1}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename2}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename2}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename3}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename3}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename4}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename4}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename5}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename5}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename6}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename6}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename7}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename7}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename8}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename8}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename9}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename9}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename10}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename10}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename11}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename11}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename12}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename12}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename13}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename13}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename14}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename14}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename15}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename15}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename16}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename16}
e662d2
ln -s    %{rolealtrelpath}%{roleinstprefix}%{rolename17}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename17}
cc4018
%endif
cc4018
cc4018
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/kdump
cc4018
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/postfix
cc4018
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/selinux
cc4018
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/timesync
cc4018
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/network
8971e9
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/storage
583029
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/metrics
583029
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/tlog
583029
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/kernel_settings
583029
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/logging
583029
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/nbde_server
583029
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/nbde_client
583029
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/certificate
e662d2
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/crypto_policies
e662d2
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/sshd
e662d2
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/ssh
e662d2
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/ha_cluster
e662d2
mkdir -p $RPM_BUILD_ROOT%{_pkglicensedir}
e662d2
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}kdump/README.md \
e662d2
    $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}kdump/README.html \
cc4018
    $RPM_BUILD_ROOT%{_pkgdocdir}/kdump
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}kdump/COPYING \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/kdump.COPYING
cc4018
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}postfix/README.md \
e662d2
    $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}postfix/README.html \
cc4018
    $RPM_BUILD_ROOT%{_pkgdocdir}/postfix
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}postfix/COPYING \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/postfix.COPYING
cc4018
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}selinux/README.md \
e662d2
    $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}selinux/README.html \
cc4018
    $RPM_BUILD_ROOT%{_pkgdocdir}/selinux
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}selinux/COPYING \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/selinux.COPYING
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}selinux/selinux-playbook.yml \
cc4018
    $RPM_BUILD_ROOT%{_pkgdocdir}/selinux/example-selinux-playbook.yml
cc4018
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}timesync/README.md \
e662d2
    $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}timesync/README.html \
cc4018
    $RPM_BUILD_ROOT%{_pkgdocdir}/timesync
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}timesync/COPYING \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/timesync.COPYING
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}timesync/examples/multiple-ntp-servers.yml \
cc4018
    $RPM_BUILD_ROOT%{_pkgdocdir}/timesync/example-timesync-playbook.yml
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}timesync/examples/single-pool.yml \
cc4018
    $RPM_BUILD_ROOT%{_pkgdocdir}/timesync/example-timesync-pool-playbook.yml
cc4018
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/README.md \
e662d2
    $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/README.html \
cc4018
    $RPM_BUILD_ROOT%{_pkgdocdir}/network
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/LICENSE \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/network.LICENSE
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/bond_with_vlan.yml \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-bond_with_vlan-playbook.yml
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/bridge_with_vlan.yml \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-bridge_with_vlan-playbook.yml
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/eth_simple_auto.yml \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-eth_simple_auto-playbook.yml
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/eth_with_vlan.yml \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-eth_with_vlan-playbook.yml
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/infiniband.yml \
cc4018
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-infiniband-playbook.yml
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/macvlan.yml \
cc4018
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-macvlan-playbook.yml
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/remove_profile.yml \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-remove_profile-playbook.yml
e662d2
rm $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/remove_profile.yml
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/down_profile.yml \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-down_profile-playbook.yml
e662d2
rm $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/down_profile.yml
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/inventory \
cc4018
   $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-inventory
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/ethtool_features.yml \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-ethtool_features-playbook.yml
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/ethtool_features_default.yml \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-ethtool_features_default-playbook.yml
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/bond_simple.yml \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-bond_simple-playbook.yml
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/eth_with_802_1x.yml \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-eth_with_802_1x-playbook.yml
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/wireless_wpa_psk.yml \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-wireless_wpa_psk-playbook.yml
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/remove+down_profile.yml \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-remove+down_profile-playbook.yml
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/dummy_simple.yml \
e662d2
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-dummy_simple-playbook.yml
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/ethtool_coalesce.yml \
e662d2
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-ethtool_coalesce-playbook.yml
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/team_simple.yml \
e662d2
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-team_simple-playbook.yml
e662d2
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/eth_dns_support.yml \
e662d2
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-eth_dns_support-playbook.yml
e662d2
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}storage/README.md \
e662d2
    $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}storage/README.html \
8971e9
    $RPM_BUILD_ROOT%{_pkgdocdir}/storage
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}storage/LICENSE \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/storage.LICENSE
e662d2
e662d2
rm $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}*/semaphore
e662d2
rm -r $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}*/molecule
8971e9
e662d2
rm -r $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}*/.[A-Za-z]*
e662d2
rm $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}*/tests/.git*
cc4018
e662d2
rm $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples/roles
e662d2
rmdir $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}network/examples
cc4018
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}metrics/README.md \
e662d2
    $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}metrics/README.html \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/metrics
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}metrics/LICENSE \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/metrics.LICENSE
583029
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}tlog/README.md \
e662d2
    $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}tlog/README.html \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/tlog
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}tlog/LICENSE \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/tlog.LICENSE
583029
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}kernel_settings/README.md \
e662d2
    $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}kernel_settings/README.html \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/kernel_settings
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}kernel_settings/LICENSE \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/kernel_settings.LICENSE
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}kernel_settings/COPYING \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/kernel_settings.COPYING
583029
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}logging/README.md \
e662d2
    $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}logging/README.html \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/logging
e662d2
cp -p  $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}logging/LICENSE \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/logging.LICENSE
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}logging/COPYING \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/logging.COPYING
583029
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}nbde_server/README.md \
e662d2
    $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}nbde_server/README.html \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/nbde_server
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}nbde_server/LICENSE \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/nbde_server.LICENSE
583029
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}nbde_client/README.md \
e662d2
    $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}nbde_client/README.html \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/nbde_client
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}nbde_client/LICENSE \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/nbde_client.LICENSE
583029
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}certificate/README.md \
e662d2
    $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}certificate/README.html \
583029
    $RPM_BUILD_ROOT%{_pkgdocdir}/certificate
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}certificate/LICENSE \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/certificate.LICENSE
e662d2
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}crypto_policies/README.md \
e662d2
    $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}crypto_policies/README.html \
e662d2
    $RPM_BUILD_ROOT%{_pkgdocdir}/crypto_policies
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}crypto_policies/LICENSE \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/crypto_policies.LICENSE
e662d2
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}sshd/README.md \
e662d2
    $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}sshd/README.html \
e662d2
    $RPM_BUILD_ROOT%{_pkgdocdir}/sshd
e662d2
cp -p $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}sshd/LICENSE \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/sshd.LICENSE
e662d2
# referenced in the configuring-openssh-servers-using-the-sshd-system-role documentation module
e662d2
# must be updated if changing the file path
e662d2
mv $RPM_BUILD_ROOT%{installbase}/%{roleinstprefix}sshd/examples/example-root-login.yml \
e662d2
    $RPM_BUILD_ROOT%{_pkgdocdir}/sshd/example-root-login-playbook.yml
e662d2
rmdir $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}sshd/examples
e662d2
e662d2
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}ssh/README.md \
e662d2
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}ssh/README.html \
e662d2
    $RPM_BUILD_ROOT%{_pkgdocdir}/ssh
e662d2
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}ssh/LICENSE \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/ssh.LICENSE
e662d2
e662d2
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}ha_cluster/README.md \
e662d2
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}ha_cluster/README.html \
e662d2
    $RPM_BUILD_ROOT%{_pkgdocdir}/ha_cluster
e662d2
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}ha_cluster/LICENSE \
e662d2
    $RPM_BUILD_ROOT%{_pkglicensedir}/ha_cluster.LICENSE
e662d2
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}ha_cluster/examples/simple.yml \
e662d2
    $RPM_BUILD_ROOT%{_pkgdocdir}/ha_cluster/example-simple-playbook.yml
e662d2
rmdir $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}ha_cluster/examples
e662d2
e662d2
cd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
e662d2
%ansible_collection_install
e662d2
583029
cc4018
%files
e662d2
%if %{without ansible}
cc4018
%dir %{_datadir}/ansible
cc4018
%dir %{_datadir}/ansible/roles
e662d2
%endif
e662d2
%if "%{installbase}" != "%{_datadir}/ansible/roles"
e662d2
%dir %{installbase}
e662d2
%endif
cc4018
%if 0%{?rolealtprefix:1}
cc4018
%{_datadir}/ansible/roles/%{rolealtprefix}kdump
cc4018
%{_datadir}/ansible/roles/%{rolealtprefix}postfix
cc4018
%{_datadir}/ansible/roles/%{rolealtprefix}selinux
cc4018
%{_datadir}/ansible/roles/%{rolealtprefix}timesync
cc4018
%{_datadir}/ansible/roles/%{rolealtprefix}network
8971e9
%{_datadir}/ansible/roles/%{rolealtprefix}storage
583029
%{_datadir}/ansible/roles/%{rolealtprefix}metrics
583029
%{_datadir}/ansible/roles/%{rolealtprefix}tlog
583029
%{_datadir}/ansible/roles/%{rolealtprefix}kernel_settings
583029
%{_datadir}/ansible/roles/%{rolealtprefix}logging
583029
%{_datadir}/ansible/roles/%{rolealtprefix}nbde_server
583029
%{_datadir}/ansible/roles/%{rolealtprefix}nbde_client
583029
%{_datadir}/ansible/roles/%{rolealtprefix}certificate
e662d2
%{_datadir}/ansible/roles/%{rolealtprefix}crypto_policies
e662d2
%{_datadir}/ansible/roles/%{rolealtprefix}sshd
e662d2
%{_datadir}/ansible/roles/%{rolealtprefix}ssh
e662d2
%{_datadir}/ansible/roles/%{rolealtprefix}ha_cluster
cc4018
%endif
e662d2
%{installbase}/%{roleinstprefix}kdump
e662d2
%{installbase}/%{roleinstprefix}postfix
e662d2
%{installbase}/%{roleinstprefix}selinux
e662d2
%{installbase}/%{roleinstprefix}timesync
e662d2
%{installbase}/%{roleinstprefix}network
e662d2
%{installbase}/%{roleinstprefix}storage
e662d2
%{installbase}/%{roleinstprefix}metrics
e662d2
%{installbase}/%{roleinstprefix}tlog
e662d2
%{installbase}/%{roleinstprefix}kernel_settings
e662d2
%{installbase}/%{roleinstprefix}logging
e662d2
%{installbase}/%{roleinstprefix}nbde_server
e662d2
%{installbase}/%{roleinstprefix}nbde_client
e662d2
%{installbase}/%{roleinstprefix}certificate
e662d2
%{installbase}/%{roleinstprefix}crypto_policies
e662d2
%{installbase}/%{roleinstprefix}sshd
e662d2
%{installbase}/%{roleinstprefix}ssh
e662d2
%{installbase}/%{roleinstprefix}ha_cluster
e662d2
%{_pkgdocdir}/*/example-*-playbook.yml
e662d2
%{_pkgdocdir}/network/example-inventory
e662d2
%{_pkgdocdir}/*/README.md
e662d2
%{_pkgdocdir}/*/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}kdump/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}postfix/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}selinux/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}timesync/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}network/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}storage/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}metrics/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}tlog/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}kernel_settings/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}logging/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}nbde_server/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}nbde_client/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}certificate/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}crypto_policies/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}sshd/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}ssh/README.md
e662d2
%doc %{installbase}/%{roleinstprefix}kdump/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}postfix/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}selinux/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}timesync/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}network/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}storage/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}metrics/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}tlog/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}kernel_settings/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}logging/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}nbde_server/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}nbde_client/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}certificate/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}crypto_policies/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}sshd/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}ssh/README.html
e662d2
%doc %{installbase}/%{roleinstprefix}ha_cluster/README.html
e662d2
e662d2
%license %{_pkglicensedir}/*
e662d2
%license %{installbase}/%{roleinstprefix}kdump/COPYING
e662d2
%license %{installbase}/%{roleinstprefix}postfix/COPYING
e662d2
%license %{installbase}/%{roleinstprefix}selinux/COPYING
e662d2
%license %{installbase}/%{roleinstprefix}timesync/COPYING
e662d2
%license %{installbase}/%{roleinstprefix}network/LICENSE
e662d2
%license %{installbase}/%{roleinstprefix}storage/LICENSE
e662d2
%license %{installbase}/%{roleinstprefix}metrics/LICENSE
e662d2
%license %{installbase}/%{roleinstprefix}tlog/LICENSE
e662d2
%license %{installbase}/%{roleinstprefix}kernel_settings/LICENSE
e662d2
%license %{installbase}/%{roleinstprefix}kernel_settings/COPYING
e662d2
%license %{installbase}/%{roleinstprefix}logging/LICENSE
e662d2
%license %{installbase}/%{roleinstprefix}logging/COPYING
e662d2
%license %{installbase}/%{roleinstprefix}nbde_server/LICENSE
e662d2
%license %{installbase}/%{roleinstprefix}nbde_client/LICENSE
e662d2
%license %{installbase}/%{roleinstprefix}certificate/LICENSE
e662d2
%license %{installbase}/%{roleinstprefix}crypto_policies/LICENSE
e662d2
%license %{installbase}/%{roleinstprefix}sshd/LICENSE
e662d2
%license %{installbase}/%{roleinstprefix}ssh/LICENSE
e662d2
%license %{installbase}/%{roleinstprefix}ha_cluster/LICENSE
e662d2
e662d2
%{ansible_collection_files}
cc4018
cc4018
%changelog
e662d2
* Mon Feb 22 2021 Pavel Cahyna <pcahyna@redhat.com> - 1.0.0-31
e662d2
- Rebase certificate role to pick up a test fix, Resolves rhbz#1931568
e662d2
- Rebase logging role to fix default private key path,
e662d2
  upstream PR #218
e662d2
e662d2
* Mon Feb 22 2021 Pavel Cahyna <pcahyna@redhat.com> - 1.0.0-30
e662d2
- Correct merge botch in previous (ssh/README.md is a doc file)
e662d2
- Update galaxy.yml even on Fedora, auto-maintenance may not have
e662d2
  a consistent version number
e662d2
- Update collection doc transformation to match a modified text
e662d2
  and include the Tech Preview note again
e662d2
e662d2
* Thu Feb 18 2021 Pavel Cahyna <pcahyna@redhat.com> - 1.0.0-29
e662d2
- Change internal role prefix to more descriptive private_${role}_subrole_
e662d2
- Sync spec improvements from Fedora and introduce helper macros
e662d2
  No functional change except for license files location
e662d2
- Disable mssql metrics test on non-x86_64 where the packages
e662d2
  are not available. Upstream PR #73
e662d2
e662d2
* Wed Feb 17 2021 Rich Megginson <rmeggins@redhat.com> - 1.0.0-28
e662d2
- Add patch for sshd https://github.com/willshersystems/ansible-sshd/pull/155
e662d2
  for ansible 2.8/jinja 2.7 support for sshd role
e662d2
- Rebase certificate, kernel_settings, nbde_client for jinja27
e662d2
- Rebase the logging role, Resolves rhbz#1927943
e662d2
- Rebase storage role, Resolves rhbz#1894651 - interpreatation of
e662d2
  omitted parameters
e662d2
- Apply storage PR #201 to dispense with the need of listing all disks
e662d2
  in existing pools, Resolves rhbz1894676
e662d2
- Apply storage PR #199 to allow reducing the requested volume sizes
e662d2
  if needed to fit, Resolves rhbz1894647
e662d2
- Rebase the network role, Resolves rhbz1893959, rhbz1893957
e662d2
- Add the ssh client role, Resolves rhbz1893712
e662d2
- Minor issue in selinux - no variable named present
e662d2
  Resolves rhbz1926947
e662d2
- Prefix internal roles with private_, resolves rhbz#1927417
e662d2
- Add the ha_cluster role, Resolves rhbz#1893743
e662d2
e662d2
* Thu Feb 11 2021 Pavel Cahyna <pcahyna@redhat.com> - 1.0.0-27
e662d2
- Rebase the logging role, Resolves rhbz#1889484
e662d2
- Fixes to collection docs and galaxy metadata from nhosoi
e662d2
- Apply network PR #350 Resolves rhbz#1927392
e662d2
e662d2
* Wed Feb  3 2021 Pavel Cahyna <pcahyna@redhat.com> - 1.0.0-26
e662d2
- Rebase the metrics role, Resolves rhbz#1895188, rhbz#1893908
e662d2
e662d2
* Tue Jan 26 2021 Pavel Cahyna <pcahyna@redhat.com> - 1.0.0-25
e662d2
- Apply storage PR #153 to fix a problem with partition name on NVMe devices
e662d2
  Resolves: rhbz1865990
e662d2
- Remove symlinks to roles under tests
e662d2
- Cleanup of role directories - remove files starting with . in roles' root
e662d2
  directories and Git files under tests. Resolves rhbz#1650550
e662d2
- Add collection support, make Version semver compatible: 1.0 -> 1.0.0
e662d2
  Resolves rhbz#1893906
e662d2
- Autogenerate Automation-Hub README.md if building for RHEL
e662d2
- Renumber sources, Source is now auto-maintenance since it is the root
e662d2
  of the source tree, kdump becomes Source4 (4 was originally firewall)
e662d2
- Introduce bcond_with/without ansible, work on Fedora, RHEL and EPEL
e662d2
- Rebase certificate role to include collection-related workarounds,
e662d2
  no change in behavior intended
e662d2
- Rebase network role, includes collection-related workarounds
e662d2
- Revert an invasive network change to enable EPEL (PR #335) and implement
e662d2
  a minimal version
e662d2
e662d2
* Fri Jan 15 2021 Pavel Cahyna <pcahyna@redhat.com> - 1.0-24
e662d2
- Apply PR #63 for kdump to fix a problem in test introduced by rebase
e662d2
e662d2
* Fri Jan  8 2021 Pavel Cahyna <pcahyna@redhat.com> - 1.0-23
e662d2
- Add {crypto_policies,sshd}/README.md to docfiles, thanks jjelen
e662d2
- Fix role name in selinux patch
e662d2
- Add sshd role example and README fix
e662d2
- Fix role name in sshd role tests and docs
e662d2
- Backport network role PR #298 to fix problems often triggered by the CI
e662d2
  "error: down connection failed while waiting", Resolves rhbz#1817242
e662d2
- Disable bond test in downstream CI, it started to break DNS in RHEL 8.4.
e662d2
  Related rhbz#1915017
e662d2
e662d2
* Thu Jan  7 2021 Pavel Cahyna <pcahyna@redhat.com> - 1.0-22
e662d2
- Rebase kdump, certificate, storage, selinux, nbde_client/server,
e662d2
  kernel_settings in preparation for collections
e662d2
  Includes upstream PR #168 for storage to prevent toggling encryption
e662d2
  in safe mode, as it is a destructive operation. Resolves rhbz#1881524
e662d2
- Introduce & use simpler macros for Sources management,
e662d2
  similar to %%forgemeta
e662d2
  https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/
e662d2
- Use a script to perform prefix transformation for all roles to reduce
e662d2
  the number of patches
e662d2
- Rebase tlog to add exclude_{users,groups} support, Resolves rhbz#1895472
e662d2
- Add crypto_policies role, Resolves rhbz#1893699
e662d2
- Add sshd role, Resolves rhbz#1893696
e662d2
e662d2
* Mon Aug 24 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-19
e662d2
- Rebase network role to latest upstream, resolves rhbz#1800627
e662d2
  Drop a downstream patch with a test workaround that is not needed anymore.
e662d2
- Fix script for role prefix transformation
e662d2
- Rebase metrics role to pick up test changes, PR #19
e662d2
- Rebase kernel_settings role to latest upstream, resolves rhbz#1851557
e662d2
e662d2
* Mon Aug 24 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-18
e662d2
- Rebase storage role to latest upstream, resolves rhbz#1848254, rhbz#1851654,
e662d2
  rhbz#1862867
e662d2
- Rebase nbde_client role to latest upstream, resolves rhbz#1851654
e662d2
- Rebase logging role to latest upstream, resolves rhbz#1851654, rhbz#1861318
e662d2
- Rebase metrics role to latest upstream, resolves rhbz#1869390, rhbz#1869389,
e662d2
  rhbz#1868378
e662d2
e662d2
* Fri Aug 21 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-17
e662d2
- Rebase certificate role to latest upstream, resolves rhbz#1859547
e662d2
e662d2
* Mon Aug 10 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-16
e662d2
- Rebase logging role to latest upstream, resolves rhbz#1854546, rhbz#1861318,
e662d2
  rhbz#1860896, adds test for rhbz#1850790
e662d2
- Rebase metrics role to latest upstream, resolves rhbz#1855544, rhbz#1855539,
e662d2
  rhbz#1848763
e662d2
- Fix whitespace in postfix role patch
e662d2
e662d2
* Fri Jul 31 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-15
e662d2
- Rebase storage role to latest upstream, resolves rhbz#1854191, rhbz#1848250,
e662d2
  rhbz#1850790 (including test)
e662d2
- Rebase nbde_client role to latest upstream, adds test for rhbz#1850790
e662d2
- Rebase certificate role to latest upstream, adds test for rhbz#1850790
e662d2
- Rebase nbde_server role to latest upstream, resolves rhbz#1850790
e662d2
  (including test)
e662d2
- Rebase tlog role to latest upstream, resolves rhbz#1855424
e662d2
- Rebase kernel_settings role to rev b8bc86b, resolves rhbz#1850790
e662d2
- Add EL 8 to supported versions in postfix and kdump role metadata,
e662d2
  resolves rhbz#1861661
e662d2
e662d2
* Mon Jul 20 2020 Rich Megginson <rmeggins@redhat.com> - 1.0-14
e662d2
- Rebase certificate role to latest upstream, resolves rhbz#1858840
e662d2
e662d2
* Fri Jul 17 2020 Rich Megginson <rmeggins@redhat.com> - 1.0-13
e662d2
- Rebase certificate role to latest upstream, resolves rhbz#1858316, rhbz#1848745
e662d2
583029
* Mon Jun 29 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-12
583029
- Rebase network role to latest upstream, resolves rhbz#1822777, rhbz#1848472
583029
- Rebase logging role to latest upstream, resolves rhbz#1850790,
583029
  rhbz#1851804, rhbz#1848762
583029
- Rebase certificate role to latest upstream, resolves rhbz#1848742,
583029
  rhbz#1850790
583029
- Rebase nbde_client role to latest upstream, resolves rhbz#1848766,
583029
  rhbz#1850790
583029
583029
* Mon Jun 15 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-11
583029
- Rebase network role to latest upstream
583029
- Remove all the soon-unnecessary tier1 tags in test
583029
- Add a workaround for rhbz#1800627 in test
583029
- Modify patches to remove tier1 tags
583029
- Add metrics, tlog, logging, kernel_settings roles
583029
- Add nbde_client, nbde_server, certificate roles
583029
- Rebase storage role to latest upstream: adds support for mdraid, LUKS,
583029
  swap manangement
583029
8971e9
* Mon Oct 21 2019 Pavel Cahyna <pcahyna@redhat.com> - 1.0-10
8971e9
- Add the storage_safe_mode option, true by default, to prevent accidental
8971e9
  data removal: rhbz#1763242, issue #42, PR #43 and #51.
8971e9
8971e9
* Thu Aug 15 2019 Pavel Cahyna <pcahyna@redhat.com> - 1.0-9
8971e9
- Add the storage role
8971e9
cc4018
* Thu Jun 13 2019 Pavel Cahyna <pcahyna@redhat.com> - 1.0-7
cc4018
- Update tests for the network role
cc4018
- Fix typo in a test for the timesync role
cc4018
- Tag tests suitable for Tier1 testing
cc4018
- Rebase the network role to add support for device features (PR#115,
cc4018
  rhbz#1696703) and atomic changes (PR#119, rhbz#1695161)
cc4018
- network: apply upstream PR#121: allow modifying interface attributes
cc4018
  without disrupting services (rhbz#1695157)
cc4018
cc4018
* Wed May 29 2019 Pavel Cahyna <pcahyna@redhat.com> - 1.0-6
cc4018
- Rebase the selinux role, fixes typo in tests, uncovered by Ansible 2.7,
cc4018
  (rhbz#1677743) and lists all input variables in defaults
cc4018
  to make Satellite aware of them (rhbz#1674004, PR#43)
cc4018
- Rebase the kdump role to fix check mode problems: rhbz#1685904
cc4018
- Rebase the timesync role: fixes check mode problems (rhbz#1685904)
cc4018
  and lists all input variables in defaults (rhbz#1674004)
cc4018
- Rebase the network role: keeps the interface up for state: up
cc4018
  if persistent_state is absent and solves problems with defining
cc4018
  VLAN and MACVLAN interface types (issue #19) (rhbz#1685902)
cc4018
cc4018
* Sat Jan 12 2019 Pavel Cahyna <pcahyna@redhat.com> - 1.0-5
cc4018
- spec file improvement: Unify the source macros with deftag() and defcommit()
cc4018
- Update to upstream released versions and drop unnecessary patches.
cc4018
- Unify the spec file with Fedora (no functional changes intended).
cc4018
- Misc spec file comments fixes (by Mike DePaulo)
cc4018
- Fix rpmlint error by escaping a previous changelog entry with a macro (by Mike DePaulo)
cc4018
- Comply with Fedora guidelines by always using "cp -p" in %%install (by Mike DePaulo)
cc4018
- Rebase network role - doc improvements, Fedora 29 and Ansible 2.7 support
cc4018
- Regenerate network role patch to apply without offset
cc4018
- Rebase kdump role to fix a forgotten edit, rhbz#1645633
cc4018
- Update timesync examples: add var prefix (rhbz#1642152), correct role prefix
cc4018
- Add Obsoletes for the -techpreview subpackage
cc4018
- Add warnings to role READMEs and other doc updates, rhbz#1616018
cc4018
- network: split the state setting into state and persistent_state, rhbz#1616014
cc4018
- depend on python-jmespath as Ansible will not ship it, rhbz#1660559
cc4018
cc4018
* Tue Aug 14 2018 Pavel Cahyna <pcahyna@redhat.com> - 1.0-4
cc4018
- Format the READMEs as html, by vdolezal, with changes to use highlight
cc4018
  (source-highlight does not understand YAML)
cc4018
cc4018
* Thu Aug  9 2018 Pavel Cahyna <pcahyna@redhat.com> - 1.0-3
cc4018
- Rebase the network role to the last revision (d866422).
cc4018
  Many improvements to tests, introduces autodetection of the current provider
cc4018
  and defaults to using profile name as interface name.
cc4018
- Rebase the selinux, timesync and kdump roles to their 1.0rc1 versions.
cc4018
  Many changes to the role interfaces to make them more consistent
cc4018
  and conforming to Ansible best practices.
cc4018
- Update the description.
cc4018
cc4018
* Fri May 11 2018 Pavel Cahyna <pcahyna@redhat.com> - 0.6-4
cc4018
- Fix complaints about /usr/bin/python during RPM build by making the affected scripts non-exec
cc4018
- Fix merge botch
cc4018
cc4018
* Mon Mar 19 2018 Troy Dawson <tdawson@redhat.com> - 0.6-3.1
e662d2
- Use -a (after cd) instead of -b (before cd) in %%setup
cc4018
cc4018
* Wed Mar 14 2018 Pavel Cahyna <pcahyna@redhat.com> - 0.6-3
cc4018
- Minor corrections of the previous change by Till Maas.
cc4018
cc4018
* Fri Mar  9 2018 Pavel Cahyna <pcahyna@redhat.com> - 0.6-2
cc4018
- Document network role options: static routes, ethernet, dns
cc4018
  Upstream PR#36, bz1550128, documents bz1487747 and bz1478576
cc4018
cc4018
* Tue Jan 30 2018 Pavel Cahyna <pcahyna@redhat.com> - 0.6-1
cc4018
- Drop hard dependency on ansible (#1525655), patch from Yaakov Selkowitz
cc4018
- Update the network role to version 0.4, solves bz#1487747, bz#1478576
cc4018
cc4018
* Tue Dec 19 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.5-3
cc4018
- kdump: fix the wrong conditional for ssh checking and improve test (PR#10)
cc4018
cc4018
* Tue Nov 07 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.5-2
cc4018
- kdump: add ssh support. upstream PR#9, rhbz1478707
cc4018
cc4018
* Tue Oct 03 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.5-1
cc4018
- SELinux: fix policy reload when SELinux is disabled on CentOS/RHEL 6
cc4018
  (bz#1493574)
cc4018
- network: update to b856c7481bf5274d419f71fb62029ea0044b3ec1 :
cc4018
  makes the network role idempotent (bz#1476053) and fixes manual
cc4018
  network provider selection (bz#1485074).
cc4018
cc4018
* Mon Aug 28 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.4-1
cc4018
- network: update to b9b6f0a7969e400d8d6ba0ac97f69593aa1e8fa5:
cc4018
  ensure that state:absent followed by state:up works (bz#1478910), and change
cc4018
  the example IP adresses to the IANA-assigned ones.
cc4018
- SELinux: fix the case when SELinux is disabled (bz#1479546).
cc4018
cc4018
* Tue Aug 8 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.3-2
cc4018
- We can't change directories to symlinks (rpm bug #447156) so keep the old
cc4018
  names and create the new names as symlinks.
cc4018
cc4018
* Tue Aug 8 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.3-1
cc4018
- Change the prefix to linux-system-roles., keeping compatibility
cc4018
  symlinks.
cc4018
- Update the network role to dace7654feb7b5629ded0734c598e087c2713265:
cc4018
  adds InfiniBand support and other fixes.
cc4018
- Drop a patch included upstream.
cc4018
cc4018
* Mon Jun 26 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.2-2
cc4018
- Leave a copy of README and COPYING in every role's directory, as suggested by T. Bowling.
cc4018
- Move the network example inventory to the documentation directory together.
cc4018
  with the example playbooks and delete the now empty "examples" directory.
cc4018
- Use proper reserved (by RFC 7042) MAC addresses in the network examples.
cc4018
cc4018
* Tue Jun 6 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.2-1
cc4018
- Update the networking role to version 0.2 (#1459203)
cc4018
- Version every role and the package separately. They live in separate repos
cc4018
  and upstream release tags are not coordinated.
cc4018
cc4018
* Mon May 22 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.1-2
cc4018
- Prefix the roles in examples and documentation with rhel-system-roles.
cc4018
cc4018
* Thu May 18 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.1-1
cc4018
- Update to 0.1 (first upstream release).
cc4018
- Remove the tuned role, it is not ready yet.
cc4018
- Move the example playbooks to /usr/share/doc/rhel-system-roles/$SUBSYSTEM
cc4018
  directly to get rid of an extra directory.
cc4018
- Depend on ansible.
cc4018
cc4018
* Thu May 4 2017  Pavel Cahyna <pcahyna@redhat.com> - 0-0.1.20170504
cc4018
- Initial release.
cc4018
- kdump r. fe8bb81966b60fa8979f3816a12b0c7120d71140
cc4018
- postfix r. 43eec5668425d295dce3801216c19b1916df1f9b
cc4018
- selinux r. 1e4a21f929455e5e76dda0b12867abaa63795ae7
cc4018
- timesync r. 33a1a8c349de10d6281ed83d4c791e9177d7a141
cc4018
- tuned r. 2e8bb068b9815bc84287e9b6dc6177295ffdf38b
cc4018
- network r. 03ff040df78a14409a0d89eba1235b8f3e50a750
cc4018