Skip to content

Instantly share code, notes, and snippets.

View jistr's full-sized avatar

Jiří Stránský jistr

View GitHub Profile
@jistr
jistr / params-patch.sh
Last active August 29, 2015 14:26
OSP-d CLI deployment parameter fixes
#!/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 / generate-fencing-config-xvm.sh
Last active August 29, 2015 14:22
TripleO fencing config for fence_xvm
#!/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 / rdio-next.sh
Created December 18, 2014 10:26
rdio control scripts
#!/bin/bash
set -eo pipefail
xdotool key --window $(xdotool search --name 'Rdio \- Mozilla Firefox') bracketright
@jistr
jistr / param-override.sh
Created July 24, 2014 12:49
Foreman - setting override on/off for all puppet classes referenced from some host group
#!/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 / after.plantuml
Last active August 29, 2015 14:02
Astapor Cinder refactoring
@startuml
class q::nova_network::controller {
}
class q::neutron::controller {
}
class q::controller_common {
}
@jistr
jistr / tuskar_cli_steps.md
Last active August 29, 2015 13:56
Overcloud deployment using Tuskar CLI

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.