Skip to content

Instantly share code, notes, and snippets.

View d34dh0r53's full-sized avatar

Dave Wilde d34dh0r53

View GitHub Profile
@d34dh0r53
d34dh0r53 / Dinner.md
Created November 12, 2016 21:06
Dinner Menu

Appetizers

Ingredients for about 3 1/2 cups of Bacon Jam:

  • 1 1/2 pound bacon, cooked crisp, chopped fine
  • 2 tsp butter
  • 2 tsp reserved bacon fat
  • 4 large yellow onions (about 3 pounds), diced
  • 1 tsp salt, plus more to taste
  • 1/4 cup brown sugar
@d34dh0r53
d34dh0r53 / versioncheck.yml
Created October 11, 2016 20:28
Version Check
- name: Get ElasticSearch version
uri:
url: "http://{{ hostvars[groups['elasticsearch_container'][0]]['container_address'] }}:{{ elasticsearch_http_port }}/"
method: GET
status_code: 200
register: escontent
tags:
- elasticsearch-version
- debug: var=escontent.json.version.number
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():
@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
@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 / 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 / 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
---
# 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 / 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
@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