Skip to content

Instantly share code, notes, and snippets.

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

Kevin Carter cloudnull

👨‍🚒
Yup
View GitHub Profile
@cloudnull
cloudnull / build_cdn_url.sh
Created May 21, 2014 16:14
Build a text file of all objects in a swift container using the full CDN URL for the object
#!/usr/bin/env bash
# Export the following variables and or modify this script with the following data
# Variables:
# CLOUD_USERNAME="The username of the cloud user"
# CLOUD_APIKEY="The API Key of the cloud user"
# CLOUD_REGION="The Region of the cloud user"
# CLOUD_CDNURL_TYPE="The cdn url type to build with"
# Available Values: x-cdn-ssl-uri, x-cdn-ios-uri, x-cdn-uri, x-cdn-streaming-uri
# CDNURLS_LOG="Name of this log file"
@cloudnull
cloudnull / creatingContainers.rst
Last active October 7, 2017 16:51
How to create a container using LXC >= 1.0

How to setup a host to use LXC

Create the bridge where all LXC devices will be attached

auto eth2
iface eth2 inet manual
@cloudnull
cloudnull / 1-lxc-glance-api.sh
Last active August 29, 2015 14:01
Install Glance Bits in a container
#!/usr/bin/env bash
# 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
# distributed under the License is distributed on an "AS IS" BASIS,
@cloudnull
cloudnull / 1-lxc-cinder-scheduler.sh
Last active August 29, 2015 14:01
Install Cinder Scheduler in a container
#!/usr/bin/env bash
# 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
# distributed under the License is distributed on an "AS IS" BASIS,
# Append any options in config to the host_vars of a container
container_vars = host_options.get('container_vars')
if isinstance(container_vars, dict):
for _keys, _vars in container_vars.items():
# Copy the options dictionary for manipulation
options = _vars.copy()
for _k, _v in options.items():
limit = None
# If a limit is set use the limit string as a filter
@cloudnull
cloudnull / f5-config-gen.py
Last active June 8, 2022 21:21
Python F5 configuration generator based on ansible-rpc-lxc inventory.
#!/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
#!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2014, Kevin Carter <[email protected]>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@cloudnull
cloudnull / rax-rpcv9.yml
Last active August 29, 2015 14:06
heat-rpcv9
# 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
# distributed under the License is distributed on an "AS IS" BASIS,
@cloudnull
cloudnull / iterm2-edit-or-restore-settings.rst
Created September 23, 2014 13:05
Edit or restore setting in iterm2

Restoring: replace the file ~/Library/Preferences/com.googlecode.iterm2.plist with your backed up version. run defaults read com.googlecode.iterm2 and killall cfprefsd to apply the changes:

Editing: Quit iTerm Edit the plist Run defaults read com.googlecode.iterm2 and killall cfprefsd Open iTerm

- hosts: keystone[0]
user: root
roles:
- keystone_add_service
vars_files:
- inventory/group_vars/keystone_all.yml
- vars/openstack_service_vars/keystonev3_endpoint.yml