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 up the packages we need | |
apt-get update | |
apt-get install libffi-dev libssl-dev git vim libxml2-dev libsqlite3-dev libxslt1-dev -y | |
# Clone the repos we need | |
git clone https://github.com/openstack/barbican.git /tmp/barbican | |
git clone https://github.com/openstack-dev/devstack.git /tmp/devstack |
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 up the packages we need | |
apt-get update | |
apt-get install git vim -y | |
# Clone the devstack repo | |
git clone https://github.com/openstack-dev/devstack.git /tmp/devstack | |
cat <<EOF > /tmp/devstack/localrc |
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
# Create a loadbalancer: | |
curl -X POST -H Content-type:application/json -d '{"name": "test_lb", "vip": {"ip_address": "10.0.0.3", "port_id": "92a345db-3ba6-42b3-85ad-7fb5193c43d5", "subnet_id": "47a12b70-c436-4f2b-b2bf-d0518627c31f"}}' http://localhost:9876/v1/loadbalancers | |
# Get loadbalancer list (do this until pending create is no longer pending...): | |
curl http://localhost:9876/v1/loadbalancers | |
# get listeners: | |
curl http://localhost:9876/v1/loadbalancers/0fb3aa47-2d88-4c51-85dc-0e997c876f5a/listeners | |
# create listener: |
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 | |
export OCTAVIA_DIR=/opt/stack/octavia | |
# Out with the old | |
OLD_IMAGE=$(glance image-list | awk '/ amphora-x64-haproxy / {print $2}') | |
glance image-delete $OLD_IMAGE | |
sudo modprobe nbd | |
sudo qemu-nbd -c /dev/nbd0 $OCTAVIA_DIR/diskimage-create/amphora-x64-haproxy.qcow2 |