Skip to content

Instantly share code, notes, and snippets.

View logan2211's full-sized avatar

Logan V logan2211

View GitHub Profile
@logan2211
logan2211 / user_variables_cors.yml
Created October 11, 2017 18:49
Glance CORS configuration for Horizon
---
# Add any URLs used to access Horizon to this list.
openstack_cors_allowed_origin:
- 'https://cloud.lstn.net'
glance_cors_allowed_origin: "{{ openstack_cors_allowed_origin }}"
# TODO(logan): Monitor the need for the allow_headers CORS override based on
# the status of https://bugs.launchpad.net/oslo.middleware/+bug/1680062
glance_glance_api_conf_overrides:

Keybase proof

I hereby claim:

  • I am logan2211 on github.
  • I am loganv (https://keybase.io/loganv) on keybase.
  • I have a public key ASBFvSrPIjO6h4Bn4CqEJdiOn9GNFRewqUPE2o7Kd3rxgAo

To claim this, I am signing this object:

@logan2211
logan2211 / generated.yaml
Last active September 28, 2017 16:39
Ansible Role Requirements bumper
---
- name: apt_package_pinning
scm: git
src: https://git.openstack.org/openstack/openstack-ansible-apt_package_pinning
branch: master
version: dc560a65f9bbd9e867bcdf7bb9c52a95e0cfa8d5 # HEAD of "master" as of 2017/07/20
@logan2211
logan2211 / repo-apt-keys.yml
Created September 15, 2017 14:48
repo apt keys
---
- name: Install apt keys to repo
tags: repo-apt-keys
hosts: repo_all[0]
user: root
pre_tasks:
- name: Ensure apt-key destination directory exists
file:
path: "{{ key_dir }}"
@logan2211
logan2211 / output
Created August 17, 2017 16:39
Broken list output
ubuntu@dea9046af7b9:~$ ansible-playbook test.yml
[WARNING]: Host file not found: /etc/ansible/hosts
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [localhost] ******************************************************************************************************************************************************************
TASK [debug] **********************************************************************************************************************************************************************
ok: [localhost] => {
---
cidr_networks: &cidr_blocks
container: 172.29.236.0/22
tunnel: 172.29.240.0/22
storage: 172.29.244.0/22
used_ips:
- "172.29.236.1,172.29.236.50"
- "172.29.236.100"
- "172.29.240.1,172.29.240.50"
@logan2211
logan2211 / dynhost.py
Created August 13, 2017 06:35
PowerDNS Pipe Backend for automatic IP -> Hostname
#!/usr/bin/python
import socket
import struct
from sys import stdin, stdout
from time import time
data = stdin.readline()
stdout.write("OK\tDynhost Backend\n")
stdout.flush()
@logan2211
logan2211 / openstacklibvirt.py
Created August 10, 2017 16:39
Diamond Openstack libvirt plugin
# coding=utf-8
"""
Rewritten Libvirt centered around collecting Openstack
Nova VM statistics on a KVM hypervisor.
#### Dependencies
* python-libvirt, xml
@logan2211
logan2211 / base_specific1.j2
Created July 31, 2017 15:39
Broken jinja2 include inside loop
specific1
@logan2211
logan2211 / bootstrap_host_overrides.yml
Last active September 14, 2017 18:03
OSA CI Configuration for unbound + ceph + calico
---
# Copyright 2016, Logan Vig <logan2211@gmail.com>
#
# 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