Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
sudo echo "nameserver 10.11.5.19" > /etc/resolv.conf
sudo cat << EOF >> /etc/yum.repos.d/pbench.repo
# Template file to be used with ansible playbook "pbench-repo.yml"
###########################################################################
# pbench "official" repos
# Internal repo
[pbench]
name=Pbench 7Server - x86_64
baseurl=http://pbench.perf.lab.eng.bos.redhat.com/repo/7Server/
arch=x86_64
enabled=1
gpgcheck=0
skip_if_unavailable=1
# External COPR repo
[copr-pbench]
name=Copr repo for pbench owned by ndokos
baseurl=https://copr-be.cloud.fedoraproject.org/results/ndokos/pbench/epel-7-x86_64/
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/ndokos/pbench/pubkey.gpg
enabled=1
enabled_metadata=1
skip_if_unavailable=1
###########################################################################
# pbench test repos - disabled by default.
# If you need to use them, use --enablerepo=pbench-test --enablerepo=copr-pbench-test
# internal repo
[pbench-test]
name=Pbench 7Server - x86_64
baseurl=http://pbench.perf.lab.eng.bos.redhat.com/test-repo/7Server/
arch=x86_64
enabled=0
gpgcheck=0
skip_if_unavailable=1
# external copr repo
[copr-pbench-test]
name=Pbench Test 7Server - x86_64
baseurl=https://copr-be.cloud.fedoraproject.org/results/ndokos/pbench-test/epel-7-x86_64/
arch=x86_64
enabled=0
gpgcheck=1
enabled_metadata=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/ndokos/pbench-test/pubkey.gpg
skip_if_unavailable=1
EOF
cat /etc/yum.repos.d/pbench.repo
sudo yum clean all
sudo yum install -y pbench-agent-internal
sudo yum install -y pbench-sysstat
sudo yum install -y pbench-uperf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.