Skip to content

Instantly share code, notes, and snippets.

View marcoceppi's full-sized avatar
.

Marco Ceppi marcoceppi

.
View GitHub Profile
options:
base:
packages:
reset: true
value:
- foo
- baz
result:
meta:
composite:
value: 1000
unit: op/s
direction: desc
results:
benchmark-metric:
value: 5
unit: mb/s
@marcoceppi
marcoceppi / .layer.schema
Last active November 30, 2015 23:40
Given https://gist.github.com/marcoceppi/ca36655cb917b16d0681 when charm build was run on ubucon it would produce a few artifacts. The first being a .layer.schema file which contains the namespaced schema for each layer's defines (if provided). Then layer.yaml would be the computed merge of all layer.yamls with each layer overwriting the previou…
basic:
type: object
properties:
packages:
type: array
description: apt-packages to install
django:
type: object
properties:
install-path:
provides:
packages:
type: array
description: apt-packages to install
series: trusty
services:
mediawiki:
charm: "cs:trusty/mediawiki-4"
num_units: 1
expose: true
annotations:
"gui-x": "2605.752927655166"
"gui-y": "658.7669499228114"
to:
@marcoceppi
marcoceppi / activity.py
Created November 6, 2015 03:20
Charm store activity
import os
import humanize
import requests
import datetime
import tabulate
from dateutil.parser import parse
r = requests.get('https://api.jujucharms.com/charmstore/v4/changes/published?start=2015-10-28')
series: trusty
services:
ceph:
annotations:
gui-x: '750'
gui-y: '500'
charm: cs:trusty/ceph-38
num_units: 3
options:
fsid: 5a791d94-980b-11e4-b6f6-3c970e8b1cf7
#USB devices
SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", MODE="0666"
# Oculus HID Sensor naming and permissioning
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="2833", MODE="0666"
services:
haproxy:
charm: cs:trusty/haproxy
to: '0'
wordpress:
charm: cs:trusty/wordpress
to: lxc:0
mysql:
charm: cs:trusty/mysql
options:
@marcoceppi
marcoceppi / my-openstack.yaml
Last active October 6, 2015 22:57 — forked from jamesbeedy/stack-up.sh
stack-up.sh
services:
rabbitmq-server:
charm: cs:trusty/rabbitmq-server
options:
management_plugin: 'true'
to:
- lxc:10
ceilometer:
charm: ceilometer
options: