Blame SPECS/rhel-system-roles.spec

921f83
%if 0%{?rhel}
921f83
Name: rhel-system-roles
921f83
%else
921f83
Name: linux-system-roles
921f83
%endif
921f83
Summary: Set of interfaces for unified system management
921f83
Version: 1.0
4eec9e
Release: 19%{?dist}
921f83
921f83
#Group: Development/Libraries
921f83
License: GPLv3+ and MIT and BSD
921f83
%if 0%{?rhel}
921f83
%global rolealtprefix linux-system-roles.
921f83
%endif
921f83
%global roleprefix %{name}.
921f83
921f83
# For each role, call either defcommit() or deftag(). The other macros
921f83
# (%%id and %%shortid) can be then used in the same way in both cases.
921f83
# This way  the rest of the spec file des not need to know whether we are
921f83
# dealing with a tag or a commit.
921f83
%define defcommit() %{expand:%%global id%{1} %{2}
921f83
%%global shortid%{1} %%(c=%%{id%{1}}; echo ${c:0:7})
921f83
}
921f83
921f83
%define deftag() %{expand:%%global id%{1} %{2}
921f83
%%global shortid%{1} %{2}
921f83
}
921f83
921f83
%defcommit 0 0c2bb286bbc1b73d728226924e0010c0fa1ce30a
921f83
%global rolename0 kdump
921f83
#%%deftag 0 1.0.0
921f83
921f83
#%%defcommit 1 43eec5668425d295dce3801216c19b1916df1f9b
921f83
%global rolename1 postfix
921f83
%deftag 1 0.1
921f83
921f83
%defcommit 2 6cd1ec8fdebdb92a789b14e5a44fe77f0a3d8ecd
921f83
%global rolename2 selinux
921f83
#%%deftag 2 1.0.0
921f83
921f83
%defcommit 3 924650d0cd4117f73a7f0413ab745a8632bc5cec
921f83
%global rolename3 timesync
921f83
#%%deftag 3 1.0.0
921f83
4eec9e
%defcommit 5 bf4501bb8770d3ef761e1684011c905f99a9752f
921f83
%global rolename5 network
921f83
#%%deftag 5 1.0.0
921f83
4eec9e
%defcommit 6 81f30ab336f4ecc61b4a30ffcb080e17fd35de2e
921f83
%global rolename6 storage
921f83
#%%deftag 6 1.0.2
921f83
4eec9e
%defcommit 7 7f94b49688902eb507e0ebeda1fbf08621bc3c6b
921f83
%global rolename7 metrics
921f83
#%%deftag 7 0.1.0
921f83
77f1f8
%defcommit 8 cfa70b6b5910b3198aba2679f8fc36aad45ca45a
921f83
%global rolename8 tlog
921f83
#%%deftag 8 0.2.0
921f83
4eec9e
%defcommit 9 901a73a4285469ef50a6cc37135ae55ce9d2e41b
921f83
%global rolename9 kernel_settings
921f83
#%%deftag 9 0.2.0
921f83
4eec9e
%defcommit 10 fe3f658e72b2883d2a1460d453105c7a53dd70e8
921f83
%global rolename10 logging
921f83
#%%deftag 10 0.2.0
921f83
77f1f8
%defcommit 11 4b6cfca4dd24e53a4bc4e07635601d7c104346c1
921f83
%global rolename11 nbde_server
921f83
#%%deftag 11 0.1.0
921f83
4eec9e
%defcommit 12 6306defad146d8274b04f438a04e17e44672f1a6
921f83
%global rolename12 nbde_client
921f83
#%%deftag 12 0.1.0
921f83
56e229
%defcommit 13 fedef6e7844bb623bb54695a602137e332f5509f
921f83
%global rolename13 certificate
921f83
#%%deftag 13 0.1.0
921f83
921f83
Source: https://github.com/linux-system-roles/%{rolename0}/archive/%{id0}.tar.gz#/%{rolename0}-%{shortid0}.tar.gz
921f83
Source1: https://github.com/linux-system-roles/%{rolename1}/archive/%{id1}.tar.gz#/%{rolename1}-%{shortid1}.tar.gz
921f83
Source2: https://github.com/linux-system-roles/%{rolename2}/archive/%{id2}.tar.gz#/%{rolename2}-%{shortid2}.tar.gz
921f83
Source3: https://github.com/linux-system-roles/%{rolename3}/archive/%{id3}.tar.gz#/%{rolename3}-%{shortid3}.tar.gz
921f83
Source5: https://github.com/linux-system-roles/%{rolename5}/archive/%{id5}.tar.gz#/%{rolename5}-%{shortid5}.tar.gz
921f83
Source6: https://github.com/linux-system-roles/%{rolename6}/archive/%{id6}.tar.gz#/%{rolename6}-%{shortid6}.tar.gz
921f83
Source7: https://github.com/linux-system-roles/%{rolename7}/archive/%{id7}.tar.gz#/%{rolename7}-%{shortid7}.tar.gz
921f83
Source8: https://github.com/linux-system-roles/%{rolename8}/archive/%{id8}.tar.gz#/%{rolename8}-%{shortid8}.tar.gz
921f83
Source9: https://github.com/linux-system-roles/%{rolename9}/archive/%{id9}.tar.gz#/%{rolename9}-%{shortid9}.tar.gz
921f83
Source10: https://github.com/linux-system-roles/%{rolename10}/archive/%{id10}.tar.gz#/%{rolename10}-%{shortid10}.tar.gz
921f83
Source11: https://github.com/linux-system-roles/%{rolename11}/archive/%{id11}.tar.gz#/%{rolename11}-%{shortid11}.tar.gz
921f83
Source12: https://github.com/linux-system-roles/%{rolename12}/archive/%{id12}.tar.gz#/%{rolename12}-%{shortid12}.tar.gz
921f83
Source13: https://github.com/linux-system-roles/%{rolename13}/archive/%{id13}.tar.gz#/%{rolename13}-%{shortid13}.tar.gz
921f83
921f83
Source999: md2html.sh
921f83
921f83
%if "%{roleprefix}" != "linux-system-roles."
921f83
Patch1: rhel-system-roles-%{rolename1}-prefix.diff
921f83
Patch2: rhel-system-roles-%{rolename2}-prefix.diff
921f83
Patch3: rhel-system-roles-%{rolename3}-prefix.diff
921f83
Patch5: rhel-system-roles-%{rolename5}-prefix.diff
921f83
Patch6: rhel-system-roles-%{rolename6}-prefix.diff
921f83
# for some roles, the prefix change can be scripted - see below
921f83
%endif
921f83
921f83
Patch11: rhel-system-roles-postfix-pr5.diff
77f1f8
Patch12: postfix-meta-el8.diff
921f83
Patch101: rhel-system-roles-kdump-pr22.diff
921f83
921f83
Patch102: kdump-tier1-tags.diff
77f1f8
Patch103: kdump-meta-el8.diff
921f83
921f83
Patch21: selinux-tier1-tags.diff
921f83
921f83
Patch31: timesync-tier1-tags.diff
921f83
921f83
Patch52: network-permissions.diff
921f83
Patch53: network-tier1-tags.diff
921f83
921f83
#Patch61: storage-safemode.diff
921f83
921f83
Url: https://github.com/linux-system-roles/
921f83
BuildArch: noarch
921f83
921f83
BuildRequires: asciidoc
921f83
BuildRequires: pandoc
921f83
BuildRequires: highlight
921f83
921f83
Requires: python3-jmespath
921f83
921f83
Obsoletes: rhel-system-roles-techpreview < 1.0-3
921f83
921f83
# We need to put %%description within the if block to avoid empty
921f83
# lines showing up.
921f83
%if 0%{?rhel}
921f83
%description
921f83
Collection of Ansible roles and modules that provide a stable and
921f83
consistent configuration interface for managing multiple versions
921f83
of Red Hat Enterprise Linux.
921f83
%else
921f83
%description
921f83
Collection of Ansible roles and modules that provide a stable and
921f83
consistent configuration interface for managing multiple versions
921f83
of Fedora, Red Hat Enterprise Linux & CentOS.
921f83
%endif
921f83
921f83
%prep
921f83
%setup -qc -a1 -a2 -a3 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12 -a13
921f83
cd %{rolename0}-%{id0}
921f83
%patch101 -p1
921f83
%patch102 -p1
77f1f8
%patch103 -p1
921f83
cd ..
921f83
cd %{rolename1}-%{id1}
921f83
%if "%{roleprefix}" != "linux-system-roles."
921f83
%patch1 -p1
921f83
%endif
921f83
%patch11 -p1
77f1f8
%patch12 -p1
921f83
cd ..
921f83
cd %{rolename2}-%{id2}
921f83
%if "%{roleprefix}" != "linux-system-roles."
921f83
%patch2 -p1
921f83
%endif
921f83
%patch21 -p1
921f83
cd ..
921f83
cd %{rolename3}-%{id3}
921f83
%if "%{roleprefix}" != "linux-system-roles."
921f83
%patch3 -p1
921f83
%endif
921f83
%patch31 -p1
921f83
cd ..
921f83
cd %{rolename5}-%{id5}
921f83
%if "%{roleprefix}" != "linux-system-roles."
921f83
%patch5 -p1
921f83
%endif
921f83
%patch52 -p1
921f83
%patch53 -p1
921f83
cd ..
921f83
cd %{rolename6}-%{id6}
921f83
%if "%{roleprefix}" != "linux-system-roles."
921f83
%patch6 -p1
921f83
%endif
921f83
#%%patch61 -p1
921f83
cd ..
921f83
921f83
# for some roles, the prefix change can be scripted - see below
921f83
%if "%{roleprefix}" != "linux-system-roles."
4eec9e
for rolename_id in %{rolename7}-%{id7} %{rolename8}-%{id8} %{rolename9}-%{id9} \
921f83
    %{rolename10}-%{id10} %{rolename11}-%{id11} %{rolename12}-%{id12} \
921f83
    %{rolename13}-%{id13}; do
4eec9e
    # assumes rolename has no dash in it
4eec9e
    # note that we have to use double %%
4eec9e
    # in order for a single % to be passed to bash
4eec9e
    rolename=${rolename_id%%-*}
4eec9e
    find $rolename_id -type f -exec \
4eec9e
         sed "s/linux-system-roles[.]${rolename}\\>/%{roleprefix}${rolename}/g" -i {} \;
921f83
done
921f83
%endif
921f83
921f83
%build
921f83
sh %{SOURCE999} \
921f83
%{rolename0}-%{id0}/README.md \
921f83
%{rolename1}-%{id1}/README.md \
921f83
%{rolename2}-%{id2}/README.md \
921f83
%{rolename3}-%{id3}/README.md \
921f83
%{rolename5}-%{id5}/README.md \
921f83
%{rolename6}-%{id6}/README.md \
921f83
%{rolename7}-%{id7}/README.md \
921f83
%{rolename8}-%{id8}/README.md \
921f83
%{rolename9}-%{id9}/README.md \
921f83
%{rolename10}-%{id10}/README.md \
921f83
%{rolename11}-%{id11}/README.md \
921f83
%{rolename12}-%{id12}/README.md \
921f83
%{rolename13}-%{id13}/README.md
921f83
921f83
%install
921f83
mkdir -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles
921f83
921f83
cp -pR %{rolename0}-%{id0}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename0}
921f83
cp -pR %{rolename1}-%{id1}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename1}
921f83
cp -pR %{rolename2}-%{id2}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename2}
921f83
cp -pR %{rolename3}-%{id3}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename3}
921f83
cp -pR %{rolename5}-%{id5}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename5}
921f83
cp -pR %{rolename6}-%{id6}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename6}
921f83
cp -pR %{rolename7}-%{id7}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename7}
921f83
cp -pR %{rolename8}-%{id8}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename8}
921f83
cp -pR %{rolename9}-%{id9}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename9}
921f83
cp -pR %{rolename10}-%{id10}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename10}
921f83
cp -pR %{rolename11}-%{id11}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename11}
921f83
cp -pR %{rolename12}-%{id12}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename12}
921f83
cp -pR %{rolename13}-%{id13}      $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename13}
921f83
921f83
%if 0%{?rolealtprefix:1}
921f83
ln -s    %{roleprefix}%{rolename0}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename0}
921f83
ln -s    %{roleprefix}%{rolename1}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename1}
921f83
ln -s    %{roleprefix}%{rolename2}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename2}
921f83
ln -s    %{roleprefix}%{rolename3}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename3}
921f83
ln -s    %{roleprefix}%{rolename5}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename5}
921f83
ln -s    %{roleprefix}%{rolename6}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename6}
921f83
ln -s    %{roleprefix}%{rolename7}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename7}
921f83
ln -s    %{roleprefix}%{rolename8}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename8}
921f83
ln -s    %{roleprefix}%{rolename9}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename9}
921f83
ln -s    %{roleprefix}%{rolename10}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename10}
921f83
ln -s    %{roleprefix}%{rolename11}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename11}
921f83
ln -s    %{roleprefix}%{rolename12}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename12}
921f83
ln -s    %{roleprefix}%{rolename13}   $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolealtprefix}%{rolename13}
921f83
%endif
921f83
921f83
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/kdump
921f83
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/postfix
921f83
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/selinux
921f83
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/timesync
921f83
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/network
921f83
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/storage
921f83
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/metrics
921f83
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/tlog
921f83
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/kernel_settings
921f83
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/logging
921f83
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/nbde_server
921f83
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/nbde_client
921f83
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}/certificate
921f83
921f83
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}kdump/README.md \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}kdump/README.html \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}kdump/COPYING \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/kdump
921f83
921f83
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}postfix/README.md \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}postfix/README.html \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}postfix/COPYING \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/postfix
921f83
921f83
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}selinux/README.md \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}selinux/README.html \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}selinux/COPYING \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/selinux
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}selinux/selinux-playbook.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/selinux/example-selinux-playbook.yml
921f83
921f83
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}timesync/README.md \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}timesync/README.html \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}timesync/COPYING \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/timesync
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}timesync/examples/multiple-ntp-servers.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/timesync/example-timesync-playbook.yml
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}timesync/examples/single-pool.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/timesync/example-timesync-pool-playbook.yml
921f83
921f83
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/README.md \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/README.html \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/LICENSE \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/network
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/bond_with_vlan.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-bond_with_vlan-playbook.yml
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/bridge_with_vlan.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-bridge_with_vlan-playbook.yml
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/eth_simple_auto.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-eth_simple_auto-playbook.yml
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/eth_with_vlan.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-eth_with_vlan-playbook.yml
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/infiniband.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-infiniband-playbook.yml
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/macvlan.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-macvlan-playbook.yml
921f83
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/remove_profile.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-remove_profile-playbook.yml
921f83
rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/remove_profile.yml
921f83
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/down_profile.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-down_profile-playbook.yml
921f83
rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/down_profile.yml
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/inventory \
921f83
   $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-inventory
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/ethtool_features.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-ethtool_features-playbook.yml
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/ethtool_features_default.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-ethtool_features_default-playbook.yml
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/bond_simple.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-bond_simple-playbook.yml
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/eth_with_802_1x.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-eth_with_802_1x-playbook.yml
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/wireless_wpa_psk.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-wireless_wpa_psk-playbook.yml
921f83
mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/remove+down_profile.yml \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-remove+down_profile-playbook.yml
921f83
921f83
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}storage/README.md \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}storage/README.html \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}storage/LICENSE \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/storage
921f83
921f83
rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}*/semaphore
921f83
rm -r $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}*/molecule
921f83
rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}*/.travis.yml
921f83
rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}*/.ansible-lint
921f83
921f83
rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/.gitignore
921f83
rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/tests/.gitignore
921f83
rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples/roles
921f83
rmdir $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}network/examples
921f83
921f83
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}metrics/README.md \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}metrics/README.html \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}metrics/LICENSE \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/metrics
921f83
921f83
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}tlog/README.md \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}tlog/README.html \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}tlog/LICENSE \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/tlog
921f83
921f83
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}kernel_settings/README.md \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}kernel_settings/README.html \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}kernel_settings/LICENSE \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}kernel_settings/COPYING \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/kernel_settings
921f83
921f83
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}logging/README.md \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}logging/README.html \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}logging/LICENSE \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}logging/COPYING \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/logging
921f83
921f83
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}nbde_server/README.md \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}nbde_server/README.html \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}nbde_server/LICENSE \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/nbde_server
921f83
921f83
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}nbde_client/README.md \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}nbde_client/README.html \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}nbde_client/LICENSE \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/nbde_client
921f83
921f83
cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}certificate/README.md \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}certificate/README.html \
921f83
    $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}certificate/LICENSE \
921f83
    $RPM_BUILD_ROOT%{_pkgdocdir}/certificate
921f83
921f83
%files
921f83
%dir %{_datadir}/ansible
921f83
%dir %{_datadir}/ansible/roles
921f83
%if 0%{?rolealtprefix:1}
921f83
%{_datadir}/ansible/roles/%{rolealtprefix}kdump
921f83
%{_datadir}/ansible/roles/%{rolealtprefix}postfix
921f83
%{_datadir}/ansible/roles/%{rolealtprefix}selinux
921f83
%{_datadir}/ansible/roles/%{rolealtprefix}timesync
921f83
%{_datadir}/ansible/roles/%{rolealtprefix}network
921f83
%{_datadir}/ansible/roles/%{rolealtprefix}storage
921f83
%{_datadir}/ansible/roles/%{rolealtprefix}metrics
921f83
%{_datadir}/ansible/roles/%{rolealtprefix}tlog
921f83
%{_datadir}/ansible/roles/%{rolealtprefix}kernel_settings
921f83
%{_datadir}/ansible/roles/%{rolealtprefix}logging
921f83
%{_datadir}/ansible/roles/%{rolealtprefix}nbde_server
921f83
%{_datadir}/ansible/roles/%{rolealtprefix}nbde_client
921f83
%{_datadir}/ansible/roles/%{rolealtprefix}certificate
921f83
%endif
921f83
%{_datadir}/ansible/roles/%{roleprefix}kdump
921f83
%{_datadir}/ansible/roles/%{roleprefix}postfix
921f83
%{_datadir}/ansible/roles/%{roleprefix}selinux
921f83
%{_datadir}/ansible/roles/%{roleprefix}timesync
921f83
%{_datadir}/ansible/roles/%{roleprefix}network
921f83
%{_datadir}/ansible/roles/%{roleprefix}storage
921f83
%{_datadir}/ansible/roles/%{roleprefix}metrics
921f83
%{_datadir}/ansible/roles/%{roleprefix}tlog
921f83
%{_datadir}/ansible/roles/%{roleprefix}kernel_settings
921f83
%{_datadir}/ansible/roles/%{roleprefix}logging
921f83
%{_datadir}/ansible/roles/%{roleprefix}nbde_server
921f83
%{_datadir}/ansible/roles/%{roleprefix}nbde_client
921f83
%{_datadir}/ansible/roles/%{roleprefix}certificate
921f83
%doc %{_pkgdocdir}/*/example-*-playbook.yml
921f83
%doc %{_pkgdocdir}/network/example-inventory
921f83
%doc %{_pkgdocdir}/*/README.md
921f83
%doc %{_pkgdocdir}/*/README.html
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}kdump/README.md
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}postfix/README.md
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}selinux/README.md
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}timesync/README.md
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}network/README.md
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}storage/README.md
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}metrics/README.md
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}tlog/README.md
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}kernel_settings/README.md
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}logging/README.md
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}nbde_server/README.md
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}nbde_client/README.md
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}certificate/README.md
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}kdump/README.html
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}postfix/README.html
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}selinux/README.html
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}timesync/README.html
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}network/README.html
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}storage/README.html
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}metrics/README.html
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}tlog/README.html
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}kernel_settings/README.html
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}logging/README.html
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}nbde_server/README.html
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}nbde_client/README.html
921f83
%doc %{_datadir}/ansible/roles/%{roleprefix}certificate/README.html
921f83
921f83
921f83
%license %{_pkgdocdir}/*/COPYING
921f83
%license %{_pkgdocdir}/*/LICENSE
921f83
%license %{_datadir}/ansible/roles/%{roleprefix}kdump/COPYING
921f83
%license %{_datadir}/ansible/roles/%{roleprefix}postfix/COPYING
921f83
%license %{_datadir}/ansible/roles/%{roleprefix}selinux/COPYING
921f83
%license %{_datadir}/ansible/roles/%{roleprefix}timesync/COPYING
921f83
%license %{_datadir}/ansible/roles/%{roleprefix}network/LICENSE
921f83
%license %{_datadir}/ansible/roles/%{roleprefix}storage/LICENSE
921f83
%license %{_datadir}/ansible/roles/%{roleprefix}metrics/LICENSE
921f83
%license %{_datadir}/ansible/roles/%{roleprefix}tlog/LICENSE
921f83
%license %{_datadir}/ansible/roles/%{roleprefix}kernel_settings/LICENSE
921f83
%license %{_datadir}/ansible/roles/%{roleprefix}kernel_settings/COPYING
921f83
%license %{_datadir}/ansible/roles/%{roleprefix}logging/LICENSE
921f83
%license %{_datadir}/ansible/roles/%{roleprefix}logging/COPYING
921f83
%license %{_datadir}/ansible/roles/%{roleprefix}nbde_server/LICENSE
921f83
%license %{_datadir}/ansible/roles/%{roleprefix}nbde_client/LICENSE
921f83
%license %{_datadir}/ansible/roles/%{roleprefix}certificate/LICENSE
921f83
921f83
%changelog
4eec9e
* Mon Aug 24 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-19
4eec9e
- Rebase network role to latest upstream, resolves rhbz#1800627
4eec9e
  Drop a downstream patch with a test workaround that is not needed anymore.
4eec9e
- Fix script for role prefix transformation
4eec9e
- Rebase metrics role to pick up test changes, PR #19
4eec9e
- Rebase kernel_settings role to latest upstream, resolves rhbz#1851557
4eec9e
4eec9e
* Mon Aug 24 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-18
4eec9e
- Rebase storage role to latest upstream, resolves rhbz#1848254, rhbz#1851654,
4eec9e
  rhbz#1862867
4eec9e
- Rebase nbde_client role to latest upstream, resolves rhbz#1851654
4eec9e
- Rebase logging role to latest upstream, resolves rhbz#1851654, rhbz#1861318
4eec9e
- Rebase metrics role to latest upstream, resolves rhbz#1869390, rhbz#1869389,
4eec9e
  rhbz#1868378
4eec9e
56e229
* Fri Aug 21 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-17
56e229
- Rebase certificate role to latest upstream, resolves rhbz#1859547
56e229
ac6c85
* Mon Aug 10 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-16
ac6c85
- Rebase logging role to latest upstream, resolves rhbz#1854546, rhbz#1861318,
ac6c85
  rhbz#1860896, adds test for rhbz#1850790
ac6c85
- Rebase metrics role to latest upstream, resolves rhbz#1855544, rhbz#1855539,
ac6c85
  rhbz#1848763
ac6c85
- Fix whitespace in postfix role patch
ac6c85
77f1f8
* Fri Jul 31 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-15
77f1f8
- Rebase storage role to latest upstream, resolves rhbz#1854191, rhbz#1848250,
77f1f8
  rhbz#1850790 (including test)
77f1f8
- Rebase nbde_client role to latest upstream, adds test for rhbz#1850790
77f1f8
- Rebase certificate role to latest upstream, adds test for rhbz#1850790
77f1f8
- Rebase nbde_server role to latest upstream, resolves rhbz#1850790
77f1f8
  (including test)
77f1f8
- Rebase tlog role to latest upstream, resolves rhbz#1855424
77f1f8
- Rebase kernel_settings role to rev b8bc86b, resolves rhbz#1850790
77f1f8
- Add EL 8 to supported versions in postfix and kdump role metadata,
77f1f8
  resolves rhbz#1861661
77f1f8
b57f19
* Mon Jul 20 2020 Rich Megginson <rmeggins@redhat.com> - 1.0-14
b57f19
- Rebase certificate role to latest upstream, resolves rhbz#1858840
b57f19
b57f19
* Fri Jul 17 2020 Rich Megginson <rmeggins@redhat.com> - 1.0-13
b57f19
- Rebase certificate role to latest upstream, resolves rhbz#1858316, rhbz#1848745
b57f19
921f83
* Mon Jun 29 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-12
921f83
- Rebase network role to latest upstream, resolves rhbz#1822777, rhbz#1848472
921f83
- Rebase logging role to latest upstream, resolves rhbz#1850790,
921f83
  rhbz#1851804, rhbz#1848762
921f83
- Rebase certificate role to latest upstream, resolves rhbz#1848742,
921f83
  rhbz#1850790
921f83
- Rebase nbde_client role to latest upstream, resolves rhbz#1848766,
921f83
  rhbz#1850790
921f83
921f83
* Mon Jun 15 2020 Pavel Cahyna <pcahyna@redhat.com> - 1.0-11
921f83
- Rebase network role to latest upstream
921f83
- Remove all the soon-unnecessary tier1 tags in test
921f83
- Add a workaround for rhbz#1800627 in test
921f83
- Modify patches to remove tier1 tags
921f83
- Add metrics, tlog, logging, kernel_settings roles
921f83
- Add nbde_client, nbde_server, certificate roles
921f83
- Rebase storage role to latest upstream: adds support for mdraid, LUKS,
921f83
  swap manangement
921f83
921f83
* Mon Oct 21 2019 Pavel Cahyna <pcahyna@redhat.com> - 1.0-10
921f83
- Add the storage_safe_mode option, true by default, to prevent accidental
921f83
  data removal: rhbz#1763242, issue #42, PR #43 and #51.
921f83
921f83
* Thu Aug 15 2019 Pavel Cahyna <pcahyna@redhat.com> - 1.0-9
921f83
- Add the storage role
921f83
921f83
* Thu Jun 13 2019 Pavel Cahyna <pcahyna@redhat.com> - 1.0-7
921f83
- Update tests for the network role
921f83
- Fix typo in a test for the timesync role
921f83
- Tag tests suitable for Tier1 testing
921f83
- Rebase the network role to add support for device features (PR#115,
921f83
  rhbz#1696703) and atomic changes (PR#119, rhbz#1695161)
921f83
- network: apply upstream PR#121: allow modifying interface attributes
921f83
  without disrupting services (rhbz#1695157)
921f83
921f83
* Wed May 29 2019 Pavel Cahyna <pcahyna@redhat.com> - 1.0-6
921f83
- Rebase the selinux role, fixes typo in tests, uncovered by Ansible 2.7,
921f83
  (rhbz#1677743) and lists all input variables in defaults
921f83
  to make Satellite aware of them (rhbz#1674004, PR#43)
921f83
- Rebase the kdump role to fix check mode problems: rhbz#1685904
921f83
- Rebase the timesync role: fixes check mode problems (rhbz#1685904)
921f83
  and lists all input variables in defaults (rhbz#1674004)
921f83
- Rebase the network role: keeps the interface up for state: up
921f83
  if persistent_state is absent and solves problems with defining
921f83
  VLAN and MACVLAN interface types (issue #19) (rhbz#1685902)
921f83
921f83
* Sat Jan 12 2019 Pavel Cahyna <pcahyna@redhat.com> - 1.0-5
921f83
- spec file improvement: Unify the source macros with deftag() and defcommit()
921f83
- Update to upstream released versions and drop unnecessary patches.
921f83
- Unify the spec file with Fedora (no functional changes intended).
921f83
- Misc spec file comments fixes (by Mike DePaulo)
921f83
- Fix rpmlint error by escaping a previous changelog entry with a macro (by Mike DePaulo)
921f83
- Comply with Fedora guidelines by always using "cp -p" in %%install (by Mike DePaulo)
921f83
- Rebase network role - doc improvements, Fedora 29 and Ansible 2.7 support
921f83
- Regenerate network role patch to apply without offset
921f83
- Rebase kdump role to fix a forgotten edit, rhbz#1645633
921f83
- Update timesync examples: add var prefix (rhbz#1642152), correct role prefix
921f83
- Add Obsoletes for the -techpreview subpackage
921f83
- Add warnings to role READMEs and other doc updates, rhbz#1616018
921f83
- network: split the state setting into state and persistent_state, rhbz#1616014
921f83
- depend on python-jmespath as Ansible will not ship it, rhbz#1660559
921f83
921f83
* Tue Aug 14 2018 Pavel Cahyna <pcahyna@redhat.com> - 1.0-4
921f83
- Format the READMEs as html, by vdolezal, with changes to use highlight
921f83
  (source-highlight does not understand YAML)
921f83
921f83
* Thu Aug  9 2018 Pavel Cahyna <pcahyna@redhat.com> - 1.0-3
921f83
- Rebase the network role to the last revision (d866422).
921f83
  Many improvements to tests, introduces autodetection of the current provider
921f83
  and defaults to using profile name as interface name.
921f83
- Rebase the selinux, timesync and kdump roles to their 1.0rc1 versions.
921f83
  Many changes to the role interfaces to make them more consistent
921f83
  and conforming to Ansible best practices.
921f83
- Update the description.
921f83
921f83
* Fri May 11 2018 Pavel Cahyna <pcahyna@redhat.com> - 0.6-4
921f83
- Fix complaints about /usr/bin/python during RPM build by making the affected scripts non-exec
921f83
- Fix merge botch
921f83
921f83
* Mon Mar 19 2018 Troy Dawson <tdawson@redhat.com> - 0.6-3.1
921f83
- Use -a (after cd) instead of -b (before cd) in %setup
921f83
921f83
* Wed Mar 14 2018 Pavel Cahyna <pcahyna@redhat.com> - 0.6-3
921f83
- Minor corrections of the previous change by Till Maas.
921f83
921f83
* Fri Mar  9 2018 Pavel Cahyna <pcahyna@redhat.com> - 0.6-2
921f83
- Document network role options: static routes, ethernet, dns
921f83
  Upstream PR#36, bz1550128, documents bz1487747 and bz1478576
921f83
921f83
* Tue Jan 30 2018 Pavel Cahyna <pcahyna@redhat.com> - 0.6-1
921f83
- Drop hard dependency on ansible (#1525655), patch from Yaakov Selkowitz
921f83
- Update the network role to version 0.4, solves bz#1487747, bz#1478576
921f83
921f83
* Tue Dec 19 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.5-3
921f83
- kdump: fix the wrong conditional for ssh checking and improve test (PR#10)
921f83
921f83
* Tue Nov 07 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.5-2
921f83
- kdump: add ssh support. upstream PR#9, rhbz1478707
921f83
921f83
* Tue Oct 03 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.5-1
921f83
- SELinux: fix policy reload when SELinux is disabled on CentOS/RHEL 6
921f83
  (bz#1493574)
921f83
- network: update to b856c7481bf5274d419f71fb62029ea0044b3ec1 :
921f83
  makes the network role idempotent (bz#1476053) and fixes manual
921f83
  network provider selection (bz#1485074).
921f83
921f83
* Mon Aug 28 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.4-1
921f83
- network: update to b9b6f0a7969e400d8d6ba0ac97f69593aa1e8fa5:
921f83
  ensure that state:absent followed by state:up works (bz#1478910), and change
921f83
  the example IP adresses to the IANA-assigned ones.
921f83
- SELinux: fix the case when SELinux is disabled (bz#1479546).
921f83
921f83
* Tue Aug 8 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.3-2
921f83
- We can't change directories to symlinks (rpm bug #447156) so keep the old
921f83
  names and create the new names as symlinks.
921f83
921f83
* Tue Aug 8 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.3-1
921f83
- Change the prefix to linux-system-roles., keeping compatibility
921f83
  symlinks.
921f83
- Update the network role to dace7654feb7b5629ded0734c598e087c2713265:
921f83
  adds InfiniBand support and other fixes.
921f83
- Drop a patch included upstream.
921f83
921f83
* Mon Jun 26 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.2-2
921f83
- Leave a copy of README and COPYING in every role's directory, as suggested by T. Bowling.
921f83
- Move the network example inventory to the documentation directory together.
921f83
  with the example playbooks and delete the now empty "examples" directory.
921f83
- Use proper reserved (by RFC 7042) MAC addresses in the network examples.
921f83
921f83
* Tue Jun 6 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.2-1
921f83
- Update the networking role to version 0.2 (#1459203)
921f83
- Version every role and the package separately. They live in separate repos
921f83
  and upstream release tags are not coordinated.
921f83
921f83
* Mon May 22 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.1-2
921f83
- Prefix the roles in examples and documentation with rhel-system-roles.
921f83
921f83
* Thu May 18 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.1-1
921f83
- Update to 0.1 (first upstream release).
921f83
- Remove the tuned role, it is not ready yet.
921f83
- Move the example playbooks to /usr/share/doc/rhel-system-roles/$SUBSYSTEM
921f83
  directly to get rid of an extra directory.
921f83
- Depend on ansible.
921f83
921f83
* Thu May 4 2017  Pavel Cahyna <pcahyna@redhat.com> - 0-0.1.20170504
921f83
- Initial release.
921f83
- kdump r. fe8bb81966b60fa8979f3816a12b0c7120d71140
921f83
- postfix r. 43eec5668425d295dce3801216c19b1916df1f9b
921f83
- selinux r. 1e4a21f929455e5e76dda0b12867abaa63795ae7
921f83
- timesync r. 33a1a8c349de10d6281ed83d4c791e9177d7a141
921f83
- tuned r. 2e8bb068b9815bc84287e9b6dc6177295ffdf38b
921f83
- network r. 03ff040df78a14409a0d89eba1235b8f3e50a750
921f83