Skip to content

Instantly share code, notes, and snippets.

View johnduarte's full-sized avatar

John Duarte johnduarte

View GitHub Profile
# quick and dirty expression of automating importation
# of L/XL data into grafana from gplt metrics collector data
require "yaml"
time = "1571690335" # this should be introspected from the data directory
tag = "slv-649" # passed as an argument
source = "data/#{tag}"
# parse yaml
data = YAML.load(File.read("jrd-gplt-01/build/pe_xl/nodes.yaml"))
@johnduarte
johnduarte / markdown.md
Created October 4, 2019 16:36
Markdown anchor test

Title

Heading One

Sub-heading

Heading Two

Sub-heading

@johnduarte
johnduarte / create_issues.rb
Created July 11, 2019 14:51
PoC script to create Jira tickets from a given YAML file
# frozen_string_literal: true
# This file needs to be in the winston project
# Requires a yaml file with ticket information in the following
# format:
#
# ---
# issuetype: "1" # global: bug
#
# issues:

Session Based testing

What is it

@johnduarte
johnduarte / gist:133df86fc791dd1430b2c7d60bcac46f
Last active May 23, 2019 18:57
Experiment with command line arguments in Rake task
➜ jrd-gplt git:(master) ✗ git diff <<<
diff --git a/rakefile b/rakefile
index 41f6ecd..af067a8 100644
--- a/rakefile
+++ b/rakefile
@@ -253,7 +253,40 @@ rototiller_task :performance_without_provision do |t|
end
desc 'Run Performance setup for clamps'
-rototiller_task :performance_clamps do |t|
@johnduarte
johnduarte / mnaio_deploy_master_images.sh
Created October 4, 2018 22:35
MNAIO deploy with images
# per https://docs.openstack.org/project-deploy-guide/openstack-ansible/latest/deploymenthost.html#configure-ubuntu
apt-get update
apt-get dist-upgrade
# reboot
apt-get install aptitude build-essential git ntp ntpdate openssh-server python-dev sudo
# deploy
git clone -b master https://git.openstack.org/openstack/openstack-ansible /opt/openstack-ansible
cd /opt/openstack-ansible/
scripts/bootstrap-ansible.sh
diff --git a/.flake8 b/.flake8
new file mode 100644
index 0000000..5429527
--- /dev/null
+++ b/.flake8
@@ -0,0 +1,16 @@
+[flake8]
+ignore = W503
+max-line-length = 80
+pytest_mark1 = name=test_id
@johnduarte
johnduarte / README.md
Last active March 20, 2018 20:47
Broken meathod of MNAIO deploy

Multi-node-aio (mnaio)

WIP: This is still not functional Deploy ironic node, attach 1.3TB volume. Checkout the desired branch and run the test suites

screen -L
sudo su -
cd /opt/rpc-openstack
@johnduarte
johnduarte / Vagrantfile
Created December 8, 2017 19:21
Base Ubuntu Trusty Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
end
@johnduarte
johnduarte / testing_rpc-openstack.md
Last active December 6, 2017 18:56
Testing rpc-openstack

Testing rpc-openstack

This document will illustrate the steps for testing against a local checkout of the rpc-openstack repository using either a Phobos instance or a Vagrant instance running in VirtualBox.

The presence of VirtualBox and Vagrant on your development system along with a checkout of the rpc-openstack repo are assumed. The installation of this software is left as an exercise for the user.