- 512 RAM
- 40 GB VDI dynamically allocated hard drive
- Disable audio
- Disable USB controller
Load the DVD image and install the system. By convention the root password is vagrant
.
# 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) |
# Install required packages | |
sudo yum install @virtualization | |
sudo systemctl start libvirtd | |
# Install vagrant | |
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.5.2_x86_64.rpm | |
sudo yum install vagrant_1.5.2_x86_64.rpm | |
vagrant plugin install vagrant-libvirt | |
# Testing the installation with katello-deploy script |
# -*- coding: utf-8 -*- | |
import sys | |
from robottelo.common.helpers import generate_string | |
try: | |
from singledispatch import singledispatch | |
except ImportError: | |
print "Please install the singledispatcher module" |
An example of using python metaclasses to perform data driven tests.
nosetests test_metaclass.py test_baz_exists (tests.cli.test_foo.TestMetaClass) ... ok test_greater_than_zero_1 (tests.cli.test_foo.TestMetaClass) ... ok test_greater_than_zero_2 (tests.cli.test_foo.TestMetaClass) ... ok test_greater_than_zero_3 (tests.cli.test_foo.TestMetaClass) ... ok test_greater_than_zero_4 (tests.cli.test_foo.TestMetaClass) ... ok
;;; package --- Emacs configuration for Python developement | |
;;; Commentary: | |
;;; Code: | |
;; Disable a couple of menus and startup message | |
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1)) | |
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1)) | |
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1)) | |
(setq inhibit-startup-message t) |
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:
import argparse | |
import boto.ec2 | |
import os | |
import paramiko | |
import sys | |
import tempfile | |
import time | |
from urllib import urlopen |
#!/bin/bash | |
function kk() { | |
KATELLO_PATH=/usr/bin/katello | |
$KATELLO_PATH -u admin -p admin "$@" | |
} | |
ORG='SimpleOrg' | |
# Orgs |