Added scripts & service files to let BMC and OS exchange information

This commit is contained in:
praveenp 2012-11-30 10:51:27 -06:00
parent c5f42e7966
commit 081f687d9e
3 changed files with 35 additions and 1 deletions

4
.gitignore vendored
View File

@ -1,2 +1,6 @@
ipmitool-1.8.11.tar.bz2
/ipmitool-1.8.12.tar.bz2
/exchange-bmc-os-info
/exchange-bmc-os-info.service
/exchange-bmc-os-info.sysconf
/set-bmc-url.sh

View File

@ -1,19 +1,25 @@
Name: ipmitool
Summary: Utility for IPMI control
Version: 1.8.12
Release: 7%{?dist}
Release: 8%{?dist}
License: BSD
Group: System Environment/Base
URL: http://ipmitool.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1: openipmi-ipmievd.sysconf
Source2: ipmievd.service
Source3: exchange-bmc-os-info.service
Source4: exchange-bmc-os-info.sysconf
Source5: set-bmc-url.sh
Source6: exchange-bmc-os-info
BuildRequires: openssl-devel readline-devel ncurses-devel
BuildRequires: systemd-units
Requires(post): systemd-sysv
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
Requires: hostname
Obsoletes: OpenIPMI-tools < 2.0.14-3
Provides: OpenIPMI-tools = 2.0.14-3
@ -73,17 +79,28 @@ make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
#mkdir -p %{buildroot}%{_sysconfdir}/profile.d
install -Dpm 644 %{SOURCE2} %{buildroot}%{_unitdir}/ipmievd.service
install -Dpm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/ipmievd
install -Dm 644 %{SOURCE3} %{buildroot}%{_unitdir}/exchange-bmc-os-info.service
install -Dm 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/exchange-bmc-os-info
install -Dm 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/profile.d/set-bmc-url.sh
install -Dm 755 %{SOURCE6} %{buildroot}%{_libexecdir}/exchange-bmc-os-info
%post
%systemd_post ipmievd.service
%systemd_post exchange-bmc-os-info.service
%preun
%systemd_preun ipmievd.service
%systemd_preun exchange-bmc-os-info.service
%postun
%systemd_postun_with_restart ipmievd.service
%systemd_postun_with_restart exchange-bmc-os-info.service
%triggerun -- ipmievd < 1.8.11-7
# Save the current service runlevel info
@ -97,7 +114,11 @@ install -Dpm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/ipmievd
%files
%config(noreplace) %{_sysconfdir}/sysconfig/ipmievd
%config(noreplace) %{_sysconfdir}/sysconfig/exchange-bmc-os-info
%{_sysconfdir}/profile.d/set-bmc-url.sh
%{_unitdir}/ipmievd.service
%{_unitdir}/exchange-bmc-os-info.service
%{_libexecdir}/*
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man*/*
@ -106,6 +127,11 @@ install -Dpm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/ipmievd
%changelog
* Fri Nov 30 2012 Praveen K Paladugu <praveen_paladugu@dell.com> -1.8.12-8
- service & scripts to allow OS to capture BMC's IP & URL info
- Also pass the OS information to BMC
- patches submitted by Charles Rose (charles_rose[at]dell.com)
* Fri Nov 16 2012 Ales Ledvinka <aledvink@redhat.com> 1.8.12-7
- failed sol session activation crashes while logging exit

View File

@ -1 +1,5 @@
cfdfd15b6ee471c19a7a7e6b47233963 ipmitool-1.8.12.tar.bz2
95bd2072031533893cd9d5d9c9603d92 exchange-bmc-os-info
2b167a577a259bec99dbdd99f448f0b9 exchange-bmc-os-info.service
3a728964cb3990f3fd6febef36b4e8af exchange-bmc-os-info.sysconf
b8943d4efa72aa65e2409194f8d30bdb set-bmc-url.sh