- lxml - Pythonic binding for the C libraries libxml2 and libxslt.
- boto - Python interface to Amazon Web Services
- Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
- Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
- PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
- Celery - Task queue to distribute work across threads or machines.
- pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conf["cobbler_node_ip"] = config['servers']['build-server']["ip"] | |
conf["node_subnet"] = ".".join(config['servers']['build-server']['ip'].split(".")[:3]) + ".0" | |
conf["node_gateway"] = ".".join(config['servers']['build-server']['ip'].split(".")[:3]) + ".1" | |
conf["swift_internal_address"] = config['servers']['control-servers'][0]['ip'] | |
conf["swift_public_address"] = config['servers']['control-servers'][0]['ip'] | |
conf["swift_admin_address"] = config['servers']['control-servers'][0]['ip'] | |
conf['mysql::server::override_options']['mysqld']['bind-address'] = config['servers']['control-servers'][0]['ip'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qemu-img create -f qcow2 /var/lib/libvirt/images/template.qcow2 20480M |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
virt-install --vnc --name=jenkins --ram=4096 --disk path=/opt/qa/jenkins_disk.qcow2,format=qcow2,bus=virtio,cache=none --network=network:default,model=virtio --location=http://ftp.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Work with virtual machines managed by libvirt | |
:depends: libvirt Python module | |
''' | |
# Special Thanks to Michael Dehann, many of the concepts, and a few structures | |
# of his in the virt func module have been used | |
# Import python libs | |
import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
op.snapshotCreateXML("<domainsnapshot>snap1</domainsnapshot>") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testr list-tests '(?!.*tempest.api|tempest.cli|tempest.thirdparty)tempest' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in /etc/ssh/ssh_config: | |
StrictHostKeyChecking no | |
UserKnownHostsFile=/dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) | |
SET: echo "package hold" | sudo dpkg --set-selections | |
REMOVE: echo "package install" | sudo dpkg --set-selections | |
CHECK: dpkg --get-selections | grep "package" | |
2) | |
SET: sudo apt-mark hold package_name | |
CHECK: sudo apt-mark unhold package_name |
OlderNewer