|
|
1b771a |
%define _binaries_in_noarch_packages_terminate_build 0
|
|
|
1b771a |
|
|
|
1b771a |
Name: insights-client
|
|
|
1b771a |
Summary: Uploads Insights information to Red Hat on a periodic basis
|
|
|
1b771a |
Version: 3.1.6
|
|
|
1b771a |
Release: 2%{?dist}
|
|
|
1b771a |
Source0: https://github.com/RedHatInsights/insights-client/releases/download/v%{version}/insights-client-%{version}.tar.gz
|
|
|
1b771a |
Epoch: 0
|
|
|
1b771a |
License: GPLv2+
|
|
|
1b771a |
URL: http://cloud.redhat.com/insights
|
|
|
1b771a |
Group: Applications/System
|
|
|
1b771a |
Vendor: Red Hat, Inc.
|
|
|
1b771a |
|
|
|
1b771a |
Provides: redhat-access-insights = %{version}-%{release}%{?dist}
|
|
|
1b771a |
|
|
|
1b771a |
Obsoletes: redhat-access-insights <= 1.0.13-2
|
|
|
1b771a |
Obsoletes: redhat-access-proactive <= 1.0.13-2
|
|
|
1b771a |
|
|
|
1b771a |
BuildArch: noarch
|
|
|
1b771a |
|
|
|
1b771a |
Requires: tar
|
|
|
1b771a |
Requires: gpg
|
|
|
1b771a |
Requires: pciutils
|
|
|
1b771a |
Requires: hostname
|
|
|
1b771a |
|
|
|
1b771a |
%{?__python3:Requires: %{__python3}}
|
|
|
1b771a |
%{?systemd_requires}
|
|
|
1b771a |
Requires: python3-requests >= 2.6
|
|
|
1b771a |
Requires: python3-PyYAML
|
|
|
1b771a |
Requires: python3-magic
|
|
|
1b771a |
Requires: python3-six
|
|
|
1b771a |
Requires: python3dist(setuptools)
|
|
|
1b771a |
Requires: coreutils
|
|
|
1b771a |
BuildRequires: wget
|
|
|
1b771a |
BuildRequires: binutils
|
|
|
1b771a |
BuildRequires: python3-devel
|
|
|
1b771a |
BuildRequires: systemd
|
|
|
1b771a |
BuildRequires: pam
|
|
|
1b771a |
|
|
|
1b771a |
|
|
|
1b771a |
%description
|
|
|
1b771a |
Sends insightful information to Red Hat for automated analysis
|
|
|
1b771a |
|
|
|
1b771a |
%prep
|
|
|
1b771a |
%autosetup -p1
|
|
|
1b771a |
|
|
|
1b771a |
|
|
|
1b771a |
%build
|
|
|
1b771a |
%{configure} PYTHON=%{_libexecdir}/platform-python
|
|
|
1b771a |
%{__make}
|
|
|
1b771a |
|
|
|
1b771a |
|
|
|
1b771a |
%install
|
|
|
1b771a |
%{make_install}
|
|
|
1b771a |
%{__install} -D -m 644 %{_builddir}/%{name}-%{version}/data/insights-client.motd %{buildroot}/%{_sysconfdir}/insights-client/insights-client.motd
|
|
|
1b771a |
|
|
|
1b771a |
|
|
|
1b771a |
%post
|
|
|
1b771a |
%systemd_post %{name}.timer
|
|
|
1b771a |
%systemd_post %{name}-boot.service
|
|
|
1b771a |
if [ -d %{_sysconfdir}/motd.d ]; then
|
|
|
1b771a |
if [ ! -e %{_sysconfdir}/motd.d/insights-client -a ! -L %{_sysconfdir}/motd.d/insights-client ]; then
|
|
|
1b771a |
if [ -e %{_localstatedir}/lib/insights/newest.egg ]; then
|
|
|
1b771a |
ln -sn /dev/null %{_sysconfdir}/motd.d/insights-client
|
|
|
1b771a |
else
|
|
|
1b771a |
ln -sn %{_sysconfdir}/insights-client/insights-client.motd %{_sysconfdir}/motd.d/insights-client
|
|
|
1b771a |
fi
|
|
|
1b771a |
fi
|
|
|
1b771a |
fi
|
|
|
1b771a |
|
|
|
1b771a |
%systemd_post insights-register.path
|
|
|
1b771a |
%systemd_post insights-unregister.path
|
|
|
1b771a |
%systemd_post 80-insights.preset
|
|
|
1b771a |
|
|
|
1b771a |
|
|
|
1b771a |
%preun
|
|
|
1b771a |
%systemd_preun %{name}.timer
|
|
|
1b771a |
%systemd_preun %{name}.service
|
|
|
1b771a |
%systemd_preun insights-register.path
|
|
|
1b771a |
%systemd_preun insights-unregister.path
|
|
|
1b771a |
%systemd_preun %{name}-boot.service
|
|
|
1b771a |
|
|
|
1b771a |
%postun
|
|
|
1b771a |
%systemd_postun %{name}.timer
|
|
|
1b771a |
%systemd_postun %{name}.service
|
|
|
1b771a |
%systemd_postun insights-register.path
|
|
|
1b771a |
%systemd_postun insights-unregister.path
|
|
|
1b771a |
%systemd_postun %{name}-boot.service
|
|
|
1b771a |
|
|
|
1b771a |
# Clean up files created by insights-client that are unowned by the RPM
|
|
|
1b771a |
if [ $1 -eq 0 ]; then
|
|
|
1b771a |
systemctl unmask insights-register.path
|
|
|
1b771a |
rm -f %{_sysconfdir}/cron.daily/insights-client
|
|
|
1b771a |
rm -f %{_sysconfdir}/ansible/facts.d/insights.fact
|
|
|
1b771a |
rm -f %{_sysconfdir}/ansible/facts.d/insights_machine_id.fact
|
|
|
1b771a |
rm -f %{_sysconfdir}/motd.d/insights-client
|
|
|
1b771a |
rm -rf %{_localstatedir}/lib/insights
|
|
|
1b771a |
rm -rf %{_localstatedir}/log/insights-client
|
|
|
1b771a |
rm -f %{_sysconfdir}/insights-client/.*.etag
|
|
|
1b771a |
fi
|
|
|
1b771a |
|
|
|
1b771a |
|
|
|
1b771a |
%clean
|
|
|
1b771a |
rm -rf %{buildroot}
|
|
|
1b771a |
|
|
|
1b771a |
|
|
|
1b771a |
%files
|
|
|
1b771a |
%config(noreplace) %{_sysconfdir}/insights-client/*.conf
|
|
|
1b771a |
%{_sysconfdir}/insights-client/insights-client.motd
|
|
|
1b771a |
%{_sysconfdir}/insights-client/.fallback.json*
|
|
|
1b771a |
%{_sysconfdir}/insights-client/.exp.sed
|
|
|
1b771a |
%{_sysconfdir}/insights-client/rpm.egg*
|
|
|
1b771a |
%{_bindir}/*
|
|
|
1b771a |
%{_unitdir}/*
|
|
|
1b771a |
%attr(444,root,root) %{_sysconfdir}/insights-client/*.pem
|
|
|
1b771a |
%attr(444,root,root) %{_sysconfdir}/insights-client/redhattools.pub.gpg
|
|
|
1b771a |
%{python3_sitelib}/insights_client/
|
|
|
1b771a |
%{_defaultdocdir}/%{name}
|
|
|
1b771a |
%{_presetdir}/*.preset
|
|
|
1b771a |
|
|
|
1b771a |
|
|
|
1b771a |
%doc
|
|
|
1b771a |
%defattr(-, root, root)
|
|
|
1b771a |
%{_mandir}/man8/*.8.gz
|
|
|
1b771a |
%{_mandir}/man5/*.5.gz
|
|
|
1b771a |
|
|
|
1b771a |
|
|
|
1b771a |
%changelog
|
|
|
1b771a |
* Mon Aug 30 2021 Link Dupont <link@redhat.com> - 3.1.6-2
|
|
|
1b771a |
- Add dependency on hostname
|
|
|
1b771a |
|
|
|
1b771a |
* Tue Aug 24 2021 Link Dupont <link@redhat.com> - 3.1.6-1
|
|
|
1b771a |
- New upstream version
|
|
|
1b771a |
|
|
|
1b771a |
* Mon Aug 2 2021 Jeremy Crafts <jcrafts@redhat.com> - 3.1.5-1
|
|
|
1b771a |
- New upstream version
|
|
|
1b771a |
|
|
|
1b771a |
* Thu May 27 2021 Jeremy Crafts <jcrafts@redhat.com> - 3.1.4-2
|
|
|
1b771a |
- Replace platform-python-setuptools dependency with python3dist(setuptools)
|
|
|
1b771a |
|
|
|
1b771a |
* Mon May 17 2021 Jeremy Crafts <jcrafts@redhat.com> - 3.1.4-1
|
|
|
1b771a |
- New upstream version
|
|
|
1b771a |
|
|
|
1b771a |
* Tue Apr 20 2021 Jeremy Crafts <jcrafts@redhat.com> - 3.1.2-1
|
|
|
1b771a |
- New upstream version
|
|
|
1b771a |
|
|
|
1b771a |
* Thu Nov 19 2020 Link Dupont <link@redhat.com> - 3.1.1-1
|
|
|
1b771a |
- New upstream release (RHBZ#1899590)
|
|
|
1b771a |
|
|
|
1b771a |
* Thu Aug 20 2020 Link Dupont <link@redhat.com> - 3.1.0-3
|
|
|
1b771a |
- Backport patch to disable sleeping a systemd unit (RHBZ#1870656)
|
|
|
1b771a |
|
|
|
1b771a |
* Tue Aug 11 2020 Link Dupont <link@redhat.com> - 3.1.0-2
|
|
|
1b771a |
- Disable automatic registration of insights-client (RHBZ#1868116)
|
|
|
1b771a |
|
|
|
1b771a |
* Thu Jul 23 2020 Link Dupont <link@redhat.com> - 3.1.0-1
|
|
|
1b771a |
- First release with core collection as the default collection medium
|
|
|
1b771a |
- Manpage and configuration updates for core collection parameters (RHCLOUD-4266)
|
|
|
1b771a |
|
|
|
1b771a |
* Fri Jul 17 2020 Link Dupont <link@redhat.com> - 3.0.15-1
|
|
|
1b771a |
- Insights is automatically registered when a host is subscribed to RHSM (RHCLOUD-6538)
|
|
|
1b771a |
- Disable results checking by default (RHCLOUD-6204)
|
|
|
1b771a |
|
|
|
1b771a |
* Thu Jun 11 2020 Link Dupont <link@redhat.com> - 3.0.14-2
|
|
|
1b771a |
- Backport patch that fixes shellcheck warnings (RHCLOUD-6204)
|
|
|
1b771a |
|
|
|
1b771a |
* Wed Apr 29 2020 Link Dupont <link@redhat.com> - 3.0.14-1
|
|
|
1b771a |
- Removed printing to stdout in cron script (RHBZ#1828778)
|
|
|
1b771a |
- Add deprecation message when running legacy redhat-access-insights (RHCLOUD-5409)
|
|
|
1b771a |
- Update systemd timer to use timers.target (RHBZ#1798373)
|
|
|
1b771a |
- Fix an issue updating motd.d on relevant systems (RHCLOUD-6144)
|
|
|
1b771a |
- Update shipped core to version 3.0.161 (RHCLOUD-4457)
|
|
|
1b771a |
- Enable automatic checking for advisor results (RHCLOUD-4558)
|
|
|
1b771a |
- Ensure dependency on coreutils for timeout (RHCLOUD-5131)
|
|
|
1b771a |
- Build system converted to autotools (RHCLOUD-4333)
|
|
|
1b771a |
|
|
|
1b771a |
* Tue Feb 11 2020 Link Dupont <link@redhat.com> - 3.0.13-1
|
|
|
1b771a |
- Resolves: RHBZ#1753991
|
|
|
1b771a |
|
|
|
1b771a |
* Fri Dec 20 2019 Jeremy Crafts <jcrafts@redhat.com> - 3.0.12-0
|
|
|
1b771a |
- Update core egg (3.0.139-1)
|
|
|
1b771a |
|
|
|
1b771a |
* Wed Dec 11 2019 Jeremy Crafts <jcrafts@redhat.com> - 3.0.10-0
|
|
|
1b771a |
- Update core egg (3.0.137-1)
|
|
|
1b771a |
- Remove insights-client-run entrypoint
|
|
|
1b771a |
- Enable timer persistence
|
|
|
1b771a |
- Fix directory permissions
|
|
|
1b771a |
- Timer/service documentation for overriding parameters
|
|
|
1b771a |
- Resolves: BZ1772027
|
|
|
1b771a |
|
|
|
1b771a |
* Thu Sep 26 2019 Jeremy Crafts <jcrafts@redhat.com> - 3.0.8-2
|
|
|
1b771a |
- Resolves: BZ1753991
|
|
|
1b771a |
|
|
|
1b771a |
* Fri Aug 30 2019 Jeremy Crafts <jcrafts@redhat.com> - 3.0.8-0
|
|
|
1b771a |
- Modify MOTD logic and installation
|
|
|
1b771a |
|
|
|
1b771a |
* Thu Aug 29 2019 Jeremy Crafts <jcrafts@redhat.com> - 3.0.7-0
|
|
|
1b771a |
- Update core egg with bugfixes (3.0.121-1)
|
|
|
1b771a |
- Remove unused PyOpenSSL dependency
|
|
|
1b771a |
- Remove ACLs from previous installations
|
|
|
1b771a |
- Update service URL
|
|
|
1b771a |
- Add MOTD information
|
|
|
1b771a |
- Resolves: BZ1740286
|
|
|
1b771a |
|
|
|
1b771a |
* Tue Dec 11 2018 Jeremy Crafts <jcrafts@redhat.com> - 3.0.5-4
|
|
|
1b771a |
- Update core egg with bugfixes
|
|
|
1b771a |
- Resolves: BZ1656973
|
|
|
1b771a |
|
|
|
1b771a |
* Thu Nov 15 2018 LumÃr Balhar <lbalhar@redhat.com> - 3.0.5-3
|
|
|
1b771a |
- Require platform-python-setuptools instead of python3-setuptools
|
|
|
1b771a |
- Resolves: rhbz#1650111
|
|
|
1b771a |
|
|
|
1b771a |
* Thu Sep 20 2018 Tomas Orsava <torsava@redhat.com> - 3.0.5-2
|
|
|
1b771a |
- Require the Python interpreter directly instead of using the package name
|
|
|
1b771a |
- Related: rhbz#1619153
|
|
|
1b771a |
|
|
|
1b771a |
* Wed Aug 8 2018 Jeremy Crafts <jcrafts@redhat.com> - 3.0.5-1
|
|
|
1b771a |
- Python 3 compatibility fixes
|
|
|
1b771a |
- Remove libcgroup dependency
|
|
|
1b771a |
- Resolves: BZ1510990
|
|
|
1b771a |
|
|
|
1b771a |
* Tue Aug 7 2018 Jeremy Crafts <jcrafts@redhat.com> - 3.0.5-0
|
|
|
1b771a |
- RHEL 8 build with bugfixes
|
|
|
1b771a |
|
|
|
1b771a |
* Tue Jun 5 2018 Jeremy Crafts <jcrafts@redhat.com> - 3.0.4-0
|
|
|
1b771a |
- Initial RHEL 8 build
|
|
|
1b771a |
|
|
|
1b771a |
* Wed Mar 14 2018 Richard Brantley <rbrantle@redhat.com> - 3.0.3-8
|
|
|
1b771a |
- Resolves: rhbz#1555041
|
|
|
1b771a |
|
|
|
1b771a |
* Fri Feb 16 2018 Kyle Lape <klape@redhat.com> - 3.0.3-6
|
|
|
1b771a |
- Persist systemd timer config between reboots
|
|
|
1b771a |
|
|
|
1b771a |
* Wed Feb 7 2018 Kyle Lape <klape@redhat.com> - 3.0.3-2
|
|
|
1b771a |
- Correct the version strings in Obsoletes and Provides in RPM spec
|
|
|
1b771a |
|
|
|
1b771a |
* Thu Jan 18 2018 Kyle Lape <klape@redhat.com> - 3.0.3-1
|
|
|
1b771a |
- RHEL 7 RPM now uses systemd service and timer instead of cron
|
|
|
1b771a |
- Addition of IO and CPU cgroup constraints
|
|
|
1b771a |
- Fixed memory cgroup constraint
|
|
|
1b771a |
|
|
|
1b771a |
* Wed Oct 18 2017 Richard Brantley <rbrantle@redhat.com> - 3.0.2-2
|
|
|
1b771a |
- Resolves BZ1498650, BZ1500008, BZ1501545, BZ1501552, BZ1501556, BZ1501561, BZ1501565, BZ1501566
|
|
|
1b771a |
- Fixes version migration logic
|
|
|
1b771a |
- Fixes symlink issues to old binary
|
|
|
1b771a |
- Fixes short ID analysis for images and containers
|
|
|
1b771a |
- Fixes Docker library detection
|
|
|
1b771a |
- Fixes image and container detection
|
|
|
1b771a |
- Fixes registration execution flow
|
|
|
1b771a |
- Fixes --version flag to print to stdout and include additional versioning information
|
|
|
1b771a |
- Includes Insights Core 3.0.3-1
|
|
|
1b771a |
|
|
|
1b771a |
* Wed Oct 4 2017 Richard Brantley <rbrantle@redhat.com> - 3.0.1-5
|
|
|
1b771a |
- Resolves BZ1498581
|
|
|
1b771a |
- Fixes sys.path issues
|
|
|
1b771a |
- Includes Insights Core 3.0.2-6
|
|
|
1b771a |
|
|
|
1b771a |
* Wed Sep 27 2017 Richard Brantley <rbrantle@redhat.com> - 3.0.0-4
|
|
|
1b771a |
- Initial build
|