Skip to content

Instantly share code, notes, and snippets.

View cloudnull's full-sized avatar
👨‍🚒
Yup

Kevin Carter cloudnull

👨‍🚒
Yup
View GitHub Profile
- hosts: hosts
user: root
tasks:
- name: Create a filesystem container
lxc-container:
name: test-container-started
container_log: true
template: ubuntu
state: started
template_options: --release trusty
@cloudnull
cloudnull / b1-inv.rst
Last active August 29, 2015 14:11
dynamic inventory update

The dynamic inventory script should be updated to allow for a cleaner, more easily consumable layout. Presently, there are more than a few entries in the inventory parser that have simply been added to container and host entries which are then consumed by the plays in a less than ideal way.

Problem Description

As the inventory is created it should be saved and rederented with the keys sorted so that if the inventory needs to be modified with a text editor its not a nightmare to pickthrough everything to find what needs the update.

Proposed Change

@cloudnull
cloudnull / blueprint-template.rst
Last active August 29, 2015 14:11
Openstack-Ansible Blueprint template

Overview

Provide a synopsis as to why you are creating this blueprint

Problem Description

Describe the problem

@cloudnull
cloudnull / bp2-galaxy.rst
Last active August 29, 2015 14:11
Update roles for galaxy compatibility

Overview

All of our roles should be galaxy compatible and generally deployable on their own. To do this the roles need to have a few bits added to them and consolidated where it makes.

Problem Description

Presently none of our roles are able to be updated to Ansible Galaxy. This should a capability of our deployment system.

@cloudnull
cloudnull / gist:3d005307322a933a7bb4
Created December 10, 2014 01:09
Remove rpc, rcbops, and rackspace names from files and variables

Overview

Being that the ansible project is now a community project we should change the "rpc_", "rackspace_", ect... variables and files to something more community driven.

Problem Description

rpc_ is everywhere throuhgout the stack and should be refactored. I don't know what we should change these references to I was thinking "opc" but then again, Im open to suggestions.

@cloudnull
cloudnull / bp3-dyn.rst
Created December 10, 2014 04:10
Change dynamic_inventory.py into a program

Overview

Ponder the idea of moving the dynamic_inventory.py script into an application that has entry points and a library that can be extended to support multiple storage backends; ie sql, reddis, json...

Problem Description

Presently the dynamic_inventory.py script is a bit one dementional. while it works well enough to build / scale out an infrastructure of both physical and container nodes it could be better developed, implement testing, and provide for a user importable API.

@cloudnull
cloudnull / gist:0b98c666d1c773b8f458
Created December 15, 2014 04:10
difference 10.0.0 to 10.1.0
* af6fdb8 - (HEAD, tag: 10.0.0) Change pointers to 10.0.0 tags ready for 10.0.0 release (10 days ago)
* bb0fe98 - (origin/proposed/juno, gerrit/proposed/juno) Adds the my_ip value to the cinder.conf (11 days ago)
* 53d4b00 - (proposed/juno) Merge pull request #614 from claco/issue-337-proposed-juno (3 weeks ago)
|\
| * 4665650 - Install lxml dependency (3 weeks ago)
|/
* 6ccdaf9 - (tag: 10.0.0rc5) Merge pull request #602 from mancdaz/proposed/juno-10.0.0rc5 (3 weeks ago)
|\
| * 132fb62 - 10.0.0rc5 release (3 weeks ago)
|/
@cloudnull
cloudnull / opc_inventory.json
Created December 16, 2014 20:31
/etc/opc_deploy/opc_inventory.json
{
"_meta": {
"hostvars": {
"infra1": {
"ansible_ssh_host": "172.29.236.100",
"cinder_default_availability_zone": "cinderAZ_1",
"cinder_storage_availability_zone": "cinderAZ_1",
"component": "nova_compute",
"container_address": "172.29.236.100",
"container_name": "infra1",
@cloudnull
cloudnull / server_sort.py
Last active August 29, 2015 14:11
Ansible module to deterministically sort a list of servers.
#!/usr/bin/env python
# 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
@cloudnull
cloudnull / gist:868a953a940f3643f226
Created February 13, 2015 04:45
br-vlan interface with a veth pluged into it.
auto br-vlan
iface br-vlan inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
address 172.29.248.100
netmask 255.255.252.0
# Create veth pair, don't bomb if already exists
pre-up ip link add br-vlan-veth type veth peer name eth12 || true
# Set both ends UP