Skip to content

Instantly share code, notes, and snippets.

View d34dh0r53's full-sized avatar

Dave Wilde d34dh0r53

View GitHub Profile
@d34dh0r53
d34dh0r53 / swift-gc-notes.md
Created August 26, 2015 18:43
Swift Global Clustering Notes

As a prerequisite the deployment will need to have their VPN tunnels configured with all relevant VLANs, tunnels and routes ready to place on the host machines. I think that the host machine will also need to have ip_forward enabled:

echo 1 > /proc/sys/net/ipv4/ip_forward

br-repl

On any host that will be part of the mesh will need a br-repl bridge created with the host-local IPs on it. Any tunnels/VLANs/etc that need to be on the host belong in this bridge. An example I wrote for the [host networking chapter][1]

  • Replication provider br-repl:
@d34dh0r53
d34dh0r53 / infuse.py
Created October 1, 2015 18:18 — forked from Apsu/infuse.py
Destiny Item Infusion Calculator
#!/usr/bin/env python3
"""Destiny Item Infusion Calculator
Calculates infusion possibilities, showing costs and final light.
Usage:
infuse.py [-x] ITEM ITEM [ITEM ...]
Arguments:
@d34dh0r53
d34dh0r53 / NewSHAs.yml
Created January 22, 2016 20:38
Updated SHAs
- name: ceph-common
path: /opt/rpc-openstack/rpcd/playbooks/roles
src: https://github.com/ceph/ansible-ceph-common.git
version: 67633e56afb74ac9128cfc815e68c25d8c09db37
- name: ceph-mon
path: /opt/rpc-openstack/rpcd/playbooks/roles
src: https://github.com/ceph/ansible-ceph-mon.git
version: 84772668f7f67a0d0b058309c56cc8d9cba800ae
- name: ceph-osd
path: /opt/rpc-openstack/rpcd/playbooks/roles
@d34dh0r53
d34dh0r53 / JenkinsLog
Created January 28, 2016 22:10
JenkinsLog
This file has been truncated, but you can view the full file.
18:47:09 [EnvInject] - Inject global passwords.
18:47:09 [EnvInject] - Mask passwords passed as build parameters.
18:47:09 Started by upstream project "RPC-AIO-Master-PR" build number 104
18:47:09 originally caused by:
18:47:09 GitHub pull request #796 of commit 521f5197701ab1ef393ed3fda87c7e4308a286f8, no merge conflicts.
18:47:09 [EnvInject] - Loading node environment variables.
18:47:09 Building remotely on jrpcaioiad-f68 (rax-us-matt-jenkins rpcaio iad) in workspace /jenkins/workspace/RPC-AIO
18:47:10 Cloning the remote Git repository
18:47:10 Cloning repository https://github.com/rcbops/rpc-openstack
18:47:10 > git init /jenkins/workspace/RPC-AIO # timeout=10
---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@d34dh0r53
d34dh0r53 / cobbler-osa-multi-aio.sh
Created March 9, 2016 16:35 — forked from cloudnull/cobbler-osa-multi-aio.sh
Full Multi-Node OpenStack deployment using a single OnMetal host from the Rackspace Public Cloud. Read more in the "About this script" comment.
#!/usr/bin/env bash
# Copyright [2016] [Kevin Carter]
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@d34dh0r53
d34dh0r53 / tmux.conf
Created June 3, 2016 15:54
TMux Config
# Ring the bell if any background window rang a bell
set -g bell-action any
# Default termtype. If the rcfile sets $TERM, that overrides this value.
set -g default-terminal screen-256color
# Keep your finger on ctrl, or don't
bind-key ^D detach-client
# Create splits and vertical splits
@d34dh0r53
d34dh0r53 / logstash-fixup.patch
Created August 8, 2016 21:36
logstash-fixup
diff --git a/openstack-ansible b/openstack-ansible
index 5c8dd5b..d1e3e7f 160000
--- a/openstack-ansible
+++ b/openstack-ansible
@@ -1 +1 @@
-Subproject commit 5c8dd5bd8d7898ec7ce977d80c3699c8aa03233a
+Subproject commit d1e3e7f803ef6768abbe8734375eefb128fc7756-dirty
diff --git a/rpcd/playbooks/roles/elasticsearch/defaults/main.yml b/rpcd/playbooks/roles/elasticsearch/defaults/main.yml
index 97184b0..2ee6da6 100644
--- a/rpcd/playbooks/roles/elasticsearch/defaults/main.yml
@d34dh0r53
d34dh0r53 / elk_upgrade_tasks.md
Created August 15, 2016 16:34
ELK Upgrade Tasks

#ELK Upgrade Tasks

These are things we need to do and think about during an RPC L->M upgrade to ensure that the new ELK stack is up and running with existing data.

Beaver Removal

  • PIP package removal
  • Files left on the filesystem removal
  • Force log rotation so ensure that filebeats picks up a new, hopefully empty logfile
import argparse
def function_a(arg_a, arg_b=args.arg_b):
do_something
return something
def function_b(arg_a):
function_a(arg_a)
def main():