This file contains hidden or 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
| /etc/apache2/sites-available/25-apache_api_proxy.conf | |
| <Proxy *> | |
| Order Deny,Allow | |
| Allow from all | |
| </Proxy> | |
| # iptables -I INPUT -p tcp --dport 8888 -m comment --comment "Proxy for API" -j ACCEPT | |
This file contains hidden or 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 | |
| for ip in `fuel node | grep cinder | awk '{print $9}'`; | |
| do | |
| echo $ip | |
| scp ubuntu-fuel-6.0-stable-1313.tar.gz $ip:/root | |
| echo "deb file:///root/ubuntu-fuel-6.0-stable-1272/ubuntu ./" >> /etc/apt/sources.list | |
| ssh $ip 'apt-get update' | |
| ssh $ip 'apt-get upgrade -y' | |
| ssh $ip 'service cinder-volume restart' |
This file contains hidden or 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
| """ Usage example: | |
| python create_volumes.py --config-file /etc/cinder/cinder.conf vol_count user_id tenant_id | |
| """ | |
| import sys | |
| from oslo_config import cfg | |
| from cinder import context | |
| from cinder.db import api |
This file contains hidden or 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
| DATABASE_PASSWORD=mydb | |
| RABBIT_PASSWORD=guest | |
| SERVICE_TOKEN=admin | |
| SERVICE_PASSWORD=admin | |
| DATABASE_TYPE=mysql | |
| ADMIN_PASSWORD=admin | |
| ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,rabbit,tempest,$DATABASE_TYPE | |
| LIBVIRT_TYPE=qemu | |
| ENABLED_SERVICES+=,ceph | |
| CINDER_ENABLED_BACKENDS+=ceph:ceph |
This file contains hidden or 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
| [[local|localrc]] | |
| # Credentials | |
| ADMIN_PASSWORD=password | |
| DATABASE_PASSWORD=password | |
| RABBIT_PASSWORD=password | |
| SERVICE_PASSWORD=password | |
| SERVICE_TOKEN=password | |
| SWIFT_HASH=password | |
| SWIFT_TEMPURL_KEY=password |
This file contains hidden or 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
| [[local|localrc]] | |
| DATABASE_PASSWORD=mydb | |
| RABBIT_PASSWORD=guest | |
| SERVICE_TOKEN=admin | |
| SERVICE_PASSWORD=admin | |
| DATABASE_TYPE=mysql | |
| ADMIN_PASSWORD=admin | |
| ENABLED_SERVICES=c-sch,c-api,c-vol,keystone,rabbit,$DATABASE_TYPE |
This file contains hidden or 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
| #!/usr/bin/python | |
| import os | |
| import brick_cinderclient_ext | |
| from cinderclient import client | |
| from cinderclient.contrib import noauth | |
| from keystoneauth1 import loading | |
| from keystoneauth1 import session |
This file contains hidden or 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
| https://youtu.be/XRj32-jG4kU | |
| https://youtu.be/nLIDF9X-sDM | |
| https://github.com/e0ne/openstack-ansible/tree/aio-cinder-hack | |
| https://github.com/e0ne/openstack-ansible-os_cinder/tree/aio-cinder-hack | |
| https://review.openstack.org/457963 |
This file contains hidden or 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
| [[local|localrc]] | |
| MYSQL_PASSWORD=secretmysql | |
| DATABASE_PASSWORD=secretdatabase | |
| RABBIT_PASSWORD=secretrabbit | |
| ADMIN_PASSWORD=secretadmin | |
| SERVICE_PASSWORD=secretservice | |
| SERVICE_TOKEN=111222333444 | |
| DATABASE_TYPE=mysql |
This file contains hidden or 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
| #! /usr/bin/env python | |
| import glob | |
| import json | |
| DNSMASQ_PATH = '/var/lib/libvirt/dnsmasq/*.status' | |
| HOSTS_PATH = '/etc/hosts' | |
| COMMENT = '# libvirt instances\n' | |
| vms = [] |