Skip to content

Instantly share code, notes, and snippets.

View logan2211's full-sized avatar

Logan V logan2211

View GitHub Profile
@jbernard
jbernard / rbd-replication.md
Last active February 21, 2024 15:55
Cinder RBD Replication Guide

Replication Notes

Assumption: You have two clusters, access to both, and a pool that exists in both clustsers and you wish to replicate some or all images in that pool to the other cluster.

Mirroring in both directions is required for Cinder to properly implement failover and failback.

Make sure you have the rbd-mirror package installed.

@Informatic
Informatic / README.md
Last active May 23, 2024 02:47
cloud-init "nocloud" networking setup

cloud-init is absolute cancer. Its code is horrible. It has no documentation at all.

It took me 5 fucking hours to figure out how to properly configure networking on recent cloud-init (Ubuntu 16.04 cloud image) with local datasource.

It's not mentioned anywhere you need to provide dsmode: local. (but only if you need network-config, besides that everything is fine; someone below noted that -m flag does the same thing, good to know) Of course nobody needs documentation for network-config format either. (cloudinit/net/__init__.py is a protip, enjoy the feces dive)

Oh, and by the way - no, it's not possible to provide network-config to uvt-kvm without patching shit.

@evrardjp
evrardjp / osa-bulk-job-doer.sh
Created April 17, 2016 12:53 — forked from cloudnull/osa-bulk-job-doer.sh
Do something special on everything the OSA project supports.
#!/usr/bin/env bash
# This is a simple script to do bulk operations on all projects we support
# Operation:
# The script clones project config from OpenStack infra then parses the gerrit
# projects for all of our known projects. Known projects are determined by the
# name using "openstack/openstack-ansible". Once all projects are discovered a
# string is built with the "<NAME>|<URL>" and printed. The script then clones
# all projects into the workspace and runs the ``bulk_function``. When complete
# the script commits the changes using the message provided and submits
@spiette
spiette / jinja_variables_types.yml
Created March 3, 2016 14:52
Test the variables types in jinja2 templates, used here with ansible
---
- hosts: all
gather_facts: no
vars:
string: "string"
list:
- item1
- item2
dict:
key1: value1
@odyssey4me
odyssey4me / user_variables.yml
Last active May 17, 2017 10:45
OpenStack-Ansible Keystone SSL Configuration Example (using haproxy SSL offloading) [kilo]
---
#
# Important required settings
#
# set haproxy to handle ssl offloading
haproxy_ssl: true
# configure the SSL certificates for haproxy
# these file paths are on the deployment host
@DavidWittman
DavidWittman / supermicro-ipmi-mac-address.md
Last active August 17, 2023 08:05
Pull the LAN1/eth0 MAC address from SuperMicro IPMI

You can find the MAC address for LAN1/eth0 (not the BMC MAC) via the SuperMicro IPMI interface by running the following command:

$ ipmitool -U $IPMI_USER -P $IPMI_PASS -H $IPMI_HOST raw 0x30 0x21 | tail -c 18

The eth0 MAC address will be output in this format:

00 25 90 f0 be ef
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active June 1, 2024 14:20
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@smoser
smoser / mdserv
Created October 11, 2011 16:48
simple python web server that mimicks ec2 instance metadata service
#!/usr/bin/python
"""
To use this to mimic the EC2 metadata service entirely, run it like:
# where 'eth0' is *some* interface. if i used 'lo:0' i got 5 second or so delays on response.
sudo ifconfig eth0:0 169.254.169.254 netmask 255.255.255.255
sudo ./mdserv 169.254.169.254:80
Then:
wget -q http://169.254.169.254/latest/meta-data/instance-id -O -; echo
curl --silent http://169.254.169.254/latest/meta-data/instance-id ; echo