Skip to content

Instantly share code, notes, and snippets.

@jamesbeedy
jamesbeedy / aws_elb_test.sh
Last active September 12, 2018 18:01
juju-aws-elb
#!/bin/bash
# Deploy and configure the web app
juju add-model flask-test --credential jamesbeedy-pdl aws/us-west-2
juju add-space nat 172.31.102.0/24 172.31.103.0/24 172.31.104.0/24
juju deploy cs:~jamesbeedy/flask-test-0 --constraints "spaces=nat instance-type=m5.large"
# Deploy and configure the aws-integrator and aws-elb
juju add-model aws-elb-test --credential jamesbeedy-pdl aws/us-west-2
@jamesbeedy
jamesbeedy / ovs-cheat.md
Created June 30, 2018 03:17 — forked from jianzzha/ovs-cheat.md
OVS cheat sheet

DB

ovs-vsctl list open_vswitch
ovs-vsctl list interface
ovs-vsctl --columns=ofport,name list Interface
ovs-vsctl --columns=ofport,name --format=table list Interface
ovs-vsctl --format=table --columns=name,mac_in_use find Interface name=br-dpdk1
ovs-vsctl get interface vhub656c3cb-23 name

ovs-vsctl set port vlan1729 tag=1729
@jamesbeedy
jamesbeedy / permutations.py
Created June 30, 2018 03:14 — forked from birkholz/permutations.py
Permutations of a String
import unittest
# Code
def get_permutations(input_str):
input_len = len(input_str)
results = []
if input_len == 0:
source /opt/openfoam5/etc/bashrc
git clone https://github.com/OpenFOAM/OpenFOAM-5.x.git
./OpenFOAM-5.x/tutorials/Allrun
elasticsearch:
install_sources: |
- 'deb https://artifacts.elastic.co/packages/5.x/apt stable main'
logstash:
install_sources: |
- 'deb https://artifacts.elastic.co/packages/5.x/apt stable main'
kibana:
install_sources: |
- 'deb https://artifacts.elastic.co/packages/5.x/apt stable main'

Minimal Openstack Deployment Intro

This document should serve as a reference for a minimal Openstack POC deploy.

General Concepts/Components/Deploy

The Openstack ecosystem contains a wealth of tools and services for extending the functionality of your Openstack cloud.

In this document we will only focus on the core components of Openstack and their corresponding charms:

relations:
- - ceph-osd:mon
- ceph-mon:osd
series: xenial
services:
ceph-mon:
annotations:
gui-x: '750'
gui-y: '500'
charm: cs:ceph-mon