Skip to content

Instantly share code, notes, and snippets.

View nrb's full-sized avatar
🤔

Nolan Brubaker nrb

🤔
View GitHub Profile
---
# in env.d, gist doesn't allow subdirectories
container_skel:
cinder_volumes_container:
belongs_to:
- storage-infra_containers
properties:
is_metal: false
@nrb
nrb / make_config.sh
Last active September 28, 2016 23:17
Quick, dirty, undocumented way to generate a complete openstack_user_config.yml file for openstack-ansible. Should work in stable/newton and master as it transitions to Ocata. If you wish to change the config, edit the .aio files in etc/openstack_deploy/(conf.d)
#!/bin/env bash
touch tests/__init__.py
python -c "from tests.test_inventory import make_config; make_config()"
echo "tests/inventory/openstack_user_config.yml created"
rm tests/__init__.py
@nrb
nrb / y260.md
Created April 28, 2016 20:26
Unorganized notes about getting ArchLinux running on a Lenovo Thinkpad Y260

Installing

Disable SecureBoot for the time being.

For booting my Archlinux kernel (4.3 series on the USB drive I made), I needed the following options:

nomodeset intel_pstates=no_hwp

You can edit the parameters by hitting the e key on the ArchISO boot option

@nrb
nrb / explore-osa.md
Last active January 15, 2016 21:23
Exploring openstack-ansible

Installing ansigenome is hugely helpful. This tool can inspect Ansible roles and provide information about dependencies, requirements, and variables.

All these examples assume being in the openstack-ansible/playbooks/roles directory

Generate a dependency graph PNG

ansigenome export -o dep-graph.png

Dump information about all roles (variables, facts, dependencies) as JSON

ansigenome export -t dump

@nrb
nrb / fallout.txt
Last active November 23, 2015 15:49
Roll 2d6. Consult the following table to take your next action:
12: Super Mutants kill you with Fat Man nuclear rocket launchers. You die.
11: A pack of feral ghouls descends on your camp and eat you. You die.
10: You stumble across a raider camp. They outgun you and scavenge your corpse. You die.
9: You drink irradiated river water. You die.
8: While descending into an old ravine, you lose your footing on the gravel. You fall and die.
7: You hit your head on a bulkhead while leaving the vault. You die.
6: A pack of feral dogs corner you and tear off your limbs. You die.
5: A dinner of rad roaches doesn't sit well with your stomach. You die.
{
"ErrorCode": 1,
"ErrorStatus": "Success",
"Message": "Ok",
"MessageData": {},
"Response": {
"data": {
"arena": [
{
"activeRewardIndexes": [
@nrb
nrb / cinder_test.yml
Created September 4, 2015 21:44
The cinder_test.yml file was used to identify why a storage host was trying to use the cinder SHA for a swift package.
--- │- hosts: 605093-storage01 │ user: root │ roles: │ - openstack_common │ tasks:
@nrb
nrb / gist:7a55230b76db26f30c69
Created August 21, 2015 14:12
Someone's confused
10:04 georgewang: #help
10:04 georgewang: whois
10:04 georgewang: whois georgewang
10:04 georgewang: #whois georgewang
10:04 georgewang: #whois
@nrb
nrb / gist:b0d544a460c043e9ec1c
Created August 8, 2015 00:57
Commits since the pin in r11.0.0rc12
32cada8 Merge "Set the correct variable in run-upgrade.sh" into kilo
ecbd6c6 Merge "Verify lxc cache file after download" into kilo
7e27462 Set the correct variable in run-upgrade.sh
64f7af7 Add irqbalance to apt package list
0ccf11e Verify lxc cache file after download
diff --git i/playbooks/inventory/dynamic_inventory.py w/playbooks/inventory/dynamic_inventory.py
index cb48e37..3723ffb 100755
--- i/playbooks/inventory/dynamic_inventory.py
+++ w/playbooks/inventory/dynamic_inventory.py
@@ -780,6 +780,11 @@ def _set_used_ips(user_defined_config, inventory):
address = host_entry.get('%s_address' % q_name)
if address:
append_if(array=USED_IPS, item=address)
+ elif not address and q_name == 'container':
+ import pdb; pdb.set_trace() # NOQA