insights-client-3.2.4-1
Changelog: - Add ros subpackage for Insights resource optimization service Resolves: RHEL-30279
This commit is contained in:
parent
5b8cac6556
commit
94f2d9650f
@ -5,7 +5,7 @@
|
||||
Name: insights-client
|
||||
Summary: Uploads Insights information to Red Hat on a periodic basis
|
||||
Version: 3.2.2
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Source0: https://github.com/RedHatInsights/insights-client/releases/download/v%{version}/insights-client-%{version}.tar.xz
|
||||
Epoch: 0
|
||||
License: GPLv2+
|
||||
@ -45,6 +45,18 @@ Requires(post): policycoreutils-python-utils
|
||||
%description
|
||||
Sends insightful information to Red Hat for automated analysis
|
||||
|
||||
%package ros
|
||||
Requires: pcp-zeroconf
|
||||
Requires: insights-client
|
||||
|
||||
Summary: The subpackage for Insights resource optimization service
|
||||
|
||||
%description ros
|
||||
|
||||
The ros subpackage add ros_collect configuration parameter to insights-client.conf file,
|
||||
the parameter is set to True by default. The system starts sending PCP archives to
|
||||
Resource Optimization service upon modifying ros_collect parameter to True.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
@ -83,6 +95,18 @@ if [ $1 -eq 2 ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
%post ros
|
||||
rm -f /var/lib/pcp/config/pmlogger/config.ros
|
||||
sed -i "/PCP_LOG_DIR\/pmlogger\/ros/d" /etc/pcp/pmlogger/control.d/local
|
||||
|
||||
if ! grep -q "^ros_collect" %{_sysconfdir}/insights-client/insights-client.conf; then
|
||||
cat <<EOF >> %{_sysconfdir}/insights-client/insights-client.conf
|
||||
### Begin insights-client-ros ###
|
||||
ros_collect=True
|
||||
### End insights-client-ros ###
|
||||
EOF
|
||||
fi
|
||||
|
||||
%preun
|
||||
%systemd_preun %{name}.timer
|
||||
%systemd_preun %{name}.service
|
||||
@ -105,6 +129,8 @@ if [ $1 -eq 0 ]; then
|
||||
rm -f %{_sysconfdir}/logrotate.d/insights-client
|
||||
fi
|
||||
|
||||
%postun ros
|
||||
sed -i '/### Begin insights-client-ros ###/,/### End insights-client-ros ###/d;/ros_collect=True/d' %{_sysconfdir}/insights-client/insights-client.conf
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
@ -136,7 +162,13 @@ rm -rf %{buildroot}
|
||||
%{_mandir}/man5/*.5.gz
|
||||
|
||||
|
||||
%files ros
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Feb 08 2024 Amit Upadhye <aupadhye@redhat.com> - 0:3.2.2-3
|
||||
- Add ros subpackage for Insights resource optimization service (RHEL-30279)
|
||||
|
||||
* Fri Feb 02 2024 Pino Toscano <ptoscano@redhat.com> - 0:3.2.2-2
|
||||
- Require subscription-manager, so CERT auth works by default (RHEL-18971)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user