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
jistr / tuskar_cli_steps.md
Last active Aug 29, 2015
Overcloud deployment using Tuskar CLI
View tuskar_cli_steps.md

Overcloud deployment using Tuskar CLI

Prerequisites

  • Deployment using Tuskar toolset (regardless if UI or CLI way) requires a fully set up and running undercloud, including the Tuskar API.
@jistr
jistr / after.plantuml
Last active Aug 29, 2015
Astapor Cinder refactoring
View after.plantuml
@startuml
class q::nova_network::controller {
}
class q::neutron::controller {
}
class q::controller_common {
}
@jistr
jistr / param-override.sh
Created Jul 24, 2014
Foreman - setting override on/off for all puppet classes referenced from some host group
View param-override.sh
#!/bin/bash
# if you get an error that minitest cannot be loaded, add:
#
# gem 'minitest'
#
# to /usr/share/foreman/Gemfile.in and then run:
#
# scl enable ruby193 "gem install minitest"
@jistr
jistr / rdio-next.sh
Created Dec 18, 2014
rdio control scripts
View rdio-next.sh
#!/bin/bash
set -eo pipefail
xdotool key --window $(xdotool search --name 'Rdio \- Mozilla Firefox') bracketright
@jistr
jistr / generate-fencing-config-xvm.sh
Last active Aug 29, 2015
TripleO fencing config for fence_xvm
View generate-fencing-config-xvm.sh
#!/bin/bash
MACHINE_REGEX=${MACHINE_REGEX:-baremetal}
FENCE_XVM_KEY=${FENCE_XVM_KEY:-$(cat /etc/cluster/fence_xvm.key)}
MULTICAST_ADDRESS=${MULTICAST_ADDRESS:-$(grep address /etc/fence_virt.conf | head -n1 | awk -F'"' '{ print $2}')}
if [ -z "$FENCE_XVM_KEY" ]; then
echo 'ERROR: fence_xvm key not set' 1>&2
echo '$FENCE_XVM_KEY is empty and /etc/cluster/fence_xvm.key does not exist / cannot be read / is empty' 1>&2
exit 1
@jistr
jistr / params-patch.sh
Last active Aug 29, 2015
OSP-d CLI deployment parameter fixes
View params-patch.sh
#!/bin/bash
# To undo the patches, run:
# yum reinstall python-rdomanager-oscplugin openstack-tripleo-heat-templates
set -euxo pipefail
if [ $(id -un) != 'root' ]; then
echo "This needs to be run as root."
exit 1
@jistr
jistr / bigswitch-patch-image.sh
Last active Aug 29, 2015
TEMPORARY patching of tripleo environment with big switch extensions
View bigswitch-patch-image.sh
#!/bin/bash
set -euxo pipefail
if [ $(id -un) != 'root' ]; then
echo "This needs to be run as root."
exit 1
fi
mkdir bigswitch-patch || true
@jistr
jistr / localrc
Created Jun 27, 2013
DevStack localrc for use with Fedora 18 (works as of 2013-06-27)
View localrc
# http://fedoraproject.org/wiki/OpenStack_devstack
# http://devstack.org/localrc.html
# Check /etc/hosts and make sure that ::1 is bound to 'localhost6',
# not to 'localhost'.
DEST=$HOME/openstack
DATA_DIR=$DEST/data
LOGFILE=$DEST/logs/stack.log
@jistr
jistr / tuskar_commands.md
Last active Dec 20, 2015
Tuskar CLI commands draft
View tuskar_commands.md

Tuskar CLI commands draft

Racks

tuskar rack-list

tuskar rack-show <name or id>
@jistr
jistr / beaker_uc_live_prep.sh
Last active Dec 26, 2015
Prepare a Beaker machine for Undercloud Live 2 node installation.
View beaker_uc_live_prep.sh
#!/bin/bash
set -x
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
# install dependencies and wget
You can’t perform that action at this time.