Note: for questions where you can select multiple answers, it will tell you how many to choose.
- Lots of InnoDB and transactional stuff
- Understand everything about locking
backend default { | |
.host = "127.0.0.1"; | |
.port = "8080"; | |
} | |
backend master { | |
.host = "10.x.x.x"; | |
.port = "80"; | |
} | |
sub vcl_recv { | |
# Any uploads or restarts should go to the master backend |
settings = { | |
logfile = "/var/log/lsyncd/lsyncd.log", | |
statusFile = "/var/log/lsyncd/lsyncd-status.log", | |
statusInterval = 20 | |
} | |
servers = { | |
"web02", | |
"web03" | |
} |
USE keystone | |
-- This needs to be set in the my.cnf to persist | |
SET GLOBAL event_scheduler = 1; | |
DELIMITER $$ | |
CREATE EVENT tokenreaper | |
ON SCHEDULE EVERY 1 WEEK | |
DO BEGIN | |
DELETE FROM `token` WHERE expires <= DATE_SUB(NOW(), INTERVAL 1 WEEK); | |
END $$ | |
DELIMITER ; |
#!/bin/bash | |
# neutron-scope | |
# | |
# Run a command in the network namespace of an OpenStack server | |
# | |
# Pro-tip: The string _IP_ is replaced with the first IP address of the server | |
# e.g. neutron-scope my-server ssh root@_IP_ | |
set -e |
#!/usr/bin/env bash | |
# | |
# Allows a non-admin OpenStack user to update their password using | |
# Keystone's User CRUD extensions | |
# | |
# Usage: keystone-update-password.sh <new password> | |
# | |
# Requires curl, python-keystoneclient to fetch the auth tokens, | |
# and expects the user's OS_* environment variables to be exported | |
# in the current environment. |
DEPLOY_SCRIPT_URL = "https://github.com/rsoprivatecloud/openstack-chef-deploy/raw/master/deploy.sh" | |
Vagrant.configure("2") do |config| | |
config.vm.box = "dummy" | |
config.vm.synced_folder './vagrant', '/vagrant' | |
config.ssh.private_key_path = File.expand_path("~/.ssh/id_rsa") | |
ENV['VAGRANT_DEFAULT_PROVIDER'] = "rackspace" | |
config.vm.provider :rackspace do |rs, override| |
description "Quantum Open vSwitch bridge ifup" | |
author "David Wittman <david.wittman@rackspace.com>" | |
start on started quantum-plugin-openvswitch-agent | |
console log | |
# Use post-start script instead of script so it only runs once | |
post-start script | |
SLEEP=10 |
#!/bin/bash | |
# | |
# openvswitch-bridges | |
# | |
# Brings up Open vSwitch bridges at boot time on Ubuntu/Debian. | |
# Needs to start _after_ the OVS services. This usually works: | |
# | |
# update-rc.d openvswitch-bridges defaults 21 | |
# | |
### BEGIN INIT INFO |