This file contains 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
#!/bin/bash | |
# 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 get-role-ports.sh overcloud Controller |
This file contains 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
# sudo ovs-vsctl add-port br-ctlplane vlan10 tag=10 -- set interface vlan10 type=internal | |
# sudo ip addr add 172.16.10.251/24 dev vlan10 | |
# sudo ip link set vlan10 up | |
# sudo iptables -A BOOTSTACK_MASQ -s 172.16.10.0/24 ! -d 172.16.10.0/24 -j MASQUERADE -t nat | |
parameter_defaults: | |
ExternalNetCidr: '172.16.10.0/24' | |
ExternalAllocationPools: [{'start': '172.16.10.4', 'end': '172.16.10.99'}] | |
ExternalInterfaceDefaultRoute: '172.16.10.251' | |
ControlPlaneDefaultRoute: '192.0.2.1' | |
EC2MetadataIp: '192.0.2.1' |
This file contains 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
source overcloudrc | |
neutron net-create default | |
neutron subnet-create --name default --gateway 172.20.0.1 default 172.20.0.0/24 | |
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=172.16.10.100,end=172.16.10.250 --gateway=172.16.10.251 nova 172.16.10.0/24 | |
neutron subnet-update --dns-nameserver 10.34.32.1 nova | |
neutron security-group-rule-create default --ethertype IPv4 --direction ingress |
This file contains 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
#!/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 |
This file contains 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
parameters: | |
#### BACKEND SELECTION #### | |
## 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 |
This file contains 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
#!/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 |
This file contains 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
#!/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 |
This file contains 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
#!/bin/bash | |
set -eo pipefail | |
xdotool key --window $(xdotool search --name 'Rdio \- Mozilla Firefox') bracketright |
This file contains 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
#!/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" |
This file contains 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
@startuml | |
class q::nova_network::controller { | |
} | |
class q::neutron::controller { | |
} | |
class q::controller_common { | |
} |
NewerOlder