- Enable the "Extras" Red Hat channel so you can install Docker ...
#subscription-manager repos --enable rhel-7-server-extras-rpms
- ... and install it
# yum install -y docker
import pytest | |
@pytest.hookimpl(hookwrapper=True) | |
def pytest_runtest_makereport(item): | |
outcome = yield | |
report = outcome.get_result() | |
parametrize_mark = item.get_marker('parametrize') | |
if report.failed and parametrize_mark: | |
# @pytest.mark.parametrize can accept "x, y" or ["x", "y"] as argument names |
# Script to install and configure a Pulp Server onto a RHEL 6/7 x86_64 system. | |
# The official documentation can be found here: | |
# https://pulp.readthedocs.org/en/latest/user-guide/installation.html | |
export USER_NAME="" | |
export USER_PASSWORD="" | |
export POOLID="" | |
# Handles system services according to the operating system version | |
function handle_service { |
#subscription-manager repos --enable rhel-7-server-extras-rpms
# yum install -y docker
# Block non-proxy traffic from your katello server | |
# The following environment variables must be set: | |
# SQUID: the FQDN for your proxy | |
# PROXY_USERNAME: username for squid | |
# PROXY_PASSWORD: password for your squid username | |
export ETH=$(ping -c 1 $(hostname) | grep 'icmp_seq' | awk -F '(' '{print $2}' | awk -F ')' '{print $1}') | |
export PROXY=$(ping -c 1 $SQUID | grep 'icmp_seq' | awk -F '(' '{print $2}' | awk -F ')' '{print $1}') |
import requests | |
jogos = requests.get('http://worldcup.sfg.io/matches').json() | |
for jogo in jogos: | |
if jogo['status'] in ('completed', 'in progress'): | |
print (jogo['home_team']['country'], jogo['home_team']['goals'], 'x', | |
jogo['away_team']['country'], jogo['away_team']['goals']) |
# Figure out what OS version we're running | |
if uname -r | grep -q el6; then export OS_VERSION=6; else export OS_VERSION=7; fi | |
# Install libvirt | |
yum install -y libvirt | |
if [ $OS_VERSION -eq 6 ] | |
then | |
service libvirtd start | |
chkconfig libvirtd on |
from collections import defaultdict | |
from functools import partial | |
import sys | |
try: | |
from github import Github | |
except ImportError: | |
print "Install PyGithub: sudo pip install PyGithub" | |
sys.exit(-1) |
Every open source project lives from the generous help by contributors that sacrifice their time and Robottelo is no different.
To make participation as pleasant as possible, this project adheres to the `Code of Conduct`_ by the Python Software Foundation.
Here are a few hints and rules to get you started: