Skip to content

Commit 40a47b4

Browse files
authored
Merge pull request #26 from stackhpc/rpm
Add element that installs software needed for cardiff
2 parents e858305 + e916f7a commit 40a47b4

13 files changed

Lines changed: 124 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
=====================
2+
ipa-extra-hardware-hp
3+
=====================
4+
Installs HP specific software required for cardiff
5+
(`hardware <https://pypi.org/project/hardware/>`_) benchmarks
6+
7+
* ``DIB_IPA_EXTRA_HARDWARE_CONREP_RPM``: URL of an RPM file that provides the ``conrep`` utility.
8+
See `<ddr-timings https://github.com/stackhpc/ddr-timings>`_.
9+
For example:
10+
11+
.. code-block::
12+
13+
export DIB_IPA_EXTRA_HARDWARE_CONREP_RPM="https://downloads.hpe.com/pub/softlib2/software1/pubsw-linux/p1201555626/v164819/rhel7/x86_64/hp-scripting-tools-11.40-9.rhel7.x86_64.rpm"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
rpm
2+
proliant-tools
3+
ipa-extra-hardware
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# RPMS needed for cardiff data collection:
2+
#
3+
# HP tools:
4+
# hp-scripting-tools - provides conrep for bios version, settings etc.
5+
6+
# FIXME: RedHat family only
7+
8+
CONREP_RPM=${DIB_IPA_EXTRA_HARDWARE_CONREP_RPM:-"https://downloads.hpe.com/pub/softlib2/software1/pubsw-linux/p1201555626/v164819/rhel7/x86_64/hp-scripting-tools-11.40-9.rhel7.x86_64.rpm"}
9+
DIB_RPMS_EXTRA="$CONREP_RPM"
10+
11+
# prepend packages to the existing list if it has been defined
12+
if [ ! -z ${DIB_RPMS:+x} ]; then
13+
export DIB_RPMS="$DIB_RPMS_EXTRA $DIB_RPMS"
14+
else
15+
export DIB_RPMS="$DIB_RPMS_EXTRA"
16+
fi
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Use more up to date version of proliant tools
2+
export DIB_SSACLI_URL=${DIB_SSACLI_URL:-https://downloads.hpe.com/pub/softlib2/software1/pubsw-linux/p1857046646/v165910/ssacli-4.15-6.0.x86_64.rpm}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
======================
2+
ipa-extra-hardware-ram
3+
======================
4+
Collects DDR timing info on Intel processors.
5+
6+
* ``DIB_DDR_TIMINGS_VERSION``: Version of ddr-timings to use.
7+
See `<ddr-timings https://github.com/stackhpc/ddr-timings>`_.
8+
For example:
9+
10+
.. code-block::
11+
12+
export DIB_DDR_TIMINGS_VERSION=1.0.0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ipa-extra-hardware
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
4+
set -x
5+
fi
6+
set -eu
7+
set -o pipefail
8+
9+
install-packages -e gcc
10+
11+
if $(which yum > /dev/null 2>&1); then
12+
13+
${YUM:-yum} clean all
14+
15+
# Rebuilding the rpm database after removing packages will reduce
16+
# its size
17+
rpm --rebuilddb
18+
19+
fi
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
if [ "${DIB_DEBUG_TRACE:-1}" -gt 0 ]; then
4+
set -x
5+
fi
6+
set -u
7+
set -o pipefail
8+
9+
VERSION=${DIB_DDR_TIMINGS_VERSION:-1.0.0}
10+
11+
pushd /tmp
12+
curl -k -L -o ddr-timings.tar.gz https://github.com/stackhpc/ddr-timings/archive/$VERSION.tar.gz
13+
tar -xvf ddr-timings.tar.gz
14+
cd ddr-timings-$VERSION && make install
15+
popd
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
gcc:
2+
make:

elements/ipa-extra-hardware/package-installs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ pciutils:
1010
sdparm:
1111
smartmontools:
1212
sysbench:
13+
lsb_release:

0 commit comments

Comments
 (0)