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 / flake.nix
Created April 6, 2024 06:16 — forked from voidus/flake.nix
Build a cloudinit image in nixos
{
description = "A nixos cloudinit base image without nixos-infect";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
@cloudnull
cloudnull / ironic-setup-bonding.sh
Last active April 2, 2024 18:18
Nodes provisioned by Ironic will have a broken boot partition if the root fs is >1TB and resized by cloud-init. This script will create a new boot partition and reinstall grub. Additionally this script will bond the networks per the OSIC specs.
#!/bin/bash
# Copyright 2016, 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 / vxlan-mesh-create.sh
Last active February 3, 2024 15:51
Create a vxlan mesh on multiple hosts for multiple bridged interfaces to create isolated user networks. The primary use-case here is tenant Isolation with OpenStack Ironic.
#!/bin/bash
# Copyright 2016, 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 / unifi-debian11-install.sh
Last active January 7, 2024 21:25
Install the latest Unifi Controller on Debian 11
#!/usr/bin/env bash
set -ev
set -o pipefail
# Install dependencies
apt update
apt -y install apt-transport-https ca-certificates wget dirmngr gnupg gnupg2 software-properties-common
# Install old mongo (requried).
@cloudnull
cloudnull / rke1-openstack.sh
Last active November 24, 2023 21:04
RKE1 OpenStack
alias os='openstack --os-cloud rxt-mvp '
os network create osh1
os subnet create \
osh1-subnet \
--network osh1 \
--subnet-range 172.31.0.0/28 \
--dns-nameserver 8.8.8.8
@cloudnull
cloudnull / nopenstack-kvm-vm-create.sh
Last active November 11, 2023 13:43
Create KVM VMs similar to OpenStack with cloud init, networking, and such.
#!/bin/bash
set -ev
set -o pipefail
if [[ -f "/etc/default/vm-defaults" ]]; then
source /etc/default/vm-defaults
fi
export NAME=${NAME:-TargetVM}
@cloudnull
cloudnull / solus-oh-my-zsh-theme.png
Last active September 6, 2023 12:44
Solus zsh theme for oh-my-zsh
solus-oh-my-zsh-theme.png
@cloudnull
cloudnull / fig-up.rc
Last active August 4, 2023 15:58
compose omnibus protocol shell
function fig-up () {
function get_latest_release() {
curl $(curl --silent "https://api.github.com/repos/ovrclk/cosmos-omnibus/releases/latest" | jq ".url" -r) | jq -r .tag_name
}
function get_rpc_endpoint() {
curl --silent "https://cdn.jsdelivr.net/gh/cosmos/chain-registry@master/$1/chain.json" | jq ".apis.rpc[0].address" -r
}
if ! command -v jq &> /dev/null; then

Fleet Platform

date

2018-10-25

tags

RPC-Fleet, platform

This specification outlines the Rackspace Private Cloud Fleet Platform. The general idea governing "platform" is provide a foundation for all Rackspace Private Cloud deployments regardless of product, purpose, and operating system.

@cloudnull
cloudnull / gist:e81115119dddee5e2a06
Created January 7, 2016 06:06
Example network interface file using a single bonded interface
## The default networking requires several bridges. These bridges were named to be informative
## however they can be named what ever you like and is adaptable to any network infrastructure
## environment. This file serves as an example of how to setup basic networking and was ONLY
## built for the purpose of being an example of an environment with a single bonded interface.
# Physical interface
# ------------------
# All nodes will have some physical interface
auto eth0