Skip to content

Instantly share code, notes, and snippets.

Jiří Stránský jistr

Block or report user

Report or block jistr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jistr / nerd_tree_for_tabs.vim
Created Mar 10, 2011
Vim NERDTree always synchronized between tabs.
View nerd_tree_for_tabs.vim
" Use this plugin instead:
source overcloudrc
neutron net-create default
neutron subnet-create --name default --gateway default
neutron net-create nova --router:external --provider:network_type vlan --provider:physical_network datacentre --provider:segmentation_id 10
neutron subnet-create --name nova --enable_dhcp=False --allocation-pool=start=,end= --gateway= nova
neutron subnet-update --dns-nameserver nova
neutron security-group-rule-create default --ethertype IPv4 --direction ingress
View overcloud-external-vlan.yaml
# sudo ovs-vsctl add-port br-ctlplane vlan10 tag=10 -- set interface vlan10 type=internal
# sudo ip addr add dev vlan10
# sudo ip link set vlan10 up
# sudo iptables -A BOOTSTACK_MASQ -s ! -d -j MASQUERADE -t nat
ExternalNetCidr: ''
ExternalAllocationPools: [{'start': '', 'end': ''}]
ExternalInterfaceDefaultRoute: ''
ControlPlaneDefaultRoute: ''
EC2MetadataIp: ''
jistr /
Last active Mar 14, 2018
Fetch port information from a TripleO overcloud Heat stack
# This script will fetch IP addresses assigned to ports on servers belonging
# to a particular role in the overcloud Heat stack. It's not optimized for everyday
# use and takes a while to complete, as it makes many Heat queries. This does not include
# e.g. VIPs.
# Run this script for each role you are interested in. Example usage:
# $ source stackrc
# $ bash overcloud Controller
jistr / couch_fixture.rb
Created Jan 22, 2011
Simple YAML -> CouchDB fixture loader for Rails
View couch_fixture.rb
# YAML -> CouchDB fixture loader for Rails
# ========================================
# by Jiri Stransky (
# for use with testing database instances only ;)
# What it does:
# * Loads fixtures from "test/fixtures" directory.
# * Permits use of ERB in the fixtures.
# * Uses CouchRest.
jistr / storage-environment-nfs.yaml
Last active Feb 28, 2017
NFS storage config for TripleO
View storage-environment-nfs.yaml
## Whether to enable iscsi backend for Cinder.
CinderEnableIscsiBackend: false
## Whether to enable rbd (Ceph) backend for Cinder.
# CinderEnableRbdBackend: false
## Whether to enable NFS backend for Cinder.
CinderEnableNfsBackend: true
jistr /
Last active Dec 26, 2015
Prepare a Beaker machine for Undercloud Live 2 node installation.
set -x
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
# install dependencies and wget
jistr /
Last active Dec 20, 2015
Tuskar CLI commands draft

Tuskar CLI commands draft


tuskar rack-list

tuskar rack-show <name or id>
jistr / localrc
Created Jun 27, 2013
DevStack localrc for use with Fedora 18 (works as of 2013-06-27)
View localrc
# Check /etc/hosts and make sure that ::1 is bound to 'localhost6',
# not to 'localhost'.
jistr /
Last active Aug 29, 2015
TEMPORARY patching of tripleo environment with big switch extensions
set -euxo pipefail
if [ $(id -un) != 'root' ]; then
echo "This needs to be run as root."
exit 1
mkdir bigswitch-patch || true
You can’t perform that action at this time.