Skip to content

Instantly share code, notes, and snippets.

View e0ne's full-sized avatar
🏠
Working from home

Ivan Kolodyazhny e0ne

🏠
Working from home
View GitHub Profile
@e0ne
e0ne / single-page-vuejs-app.html
Created October 5, 2019 13:46
Single Page VueJS Minimal Example
<html lang="en">
<head>
<title>Single Page VueJS Minimal Example</title>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.0"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css" crossorigin="anonymous">
</head>
<body>
<div id="application">
<section class="section" v-if="loggedIn">
import os
import click
import git
from github import Github
GITHUB_API_KEY = os.environ['GITHUB_API_KEY']
BASE_DIR = os.environ['SRC_BASE_DIR']
#! /usr/bin/env python
import glob
import json
DNSMASQ_PATH = '/var/lib/libvirt/dnsmasq/*.status'
HOSTS_PATH = '/etc/hosts'
COMMENT = '# libvirt instances\n'
vms = []
[[local|localrc]]
MYSQL_PASSWORD=secretmysql
DATABASE_PASSWORD=secretdatabase
RABBIT_PASSWORD=secretrabbit
ADMIN_PASSWORD=secretadmin
SERVICE_PASSWORD=secretservice
SERVICE_TOKEN=111222333444
DATABASE_TYPE=mysql
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
@e0ne
e0ne / cinder_noauth.py
Created May 3, 2017 10:05
python-cinderclient noauth Python API example
#!/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
@e0ne
e0ne / gist:10876c05d87ee96a82e70c3a160960bf
Created March 10, 2017 15:10
Minimal Cinder + Devstack configuration
[[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
[[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
@e0ne
e0ne / localrc
Created December 21, 2015 10:33
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
@e0ne
e0ne / create_volumes.py
Created July 30, 2015 14:42
Create fake volumes in Cinder DB
""" 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