Skip to content

Instantly share code, notes, and snippets.

View rmb938's full-sized avatar

Ryan Belgrave rmb938

  • Software Engineer @Optum
  • Minneapolis, MN
View GitHub Profile
@RichardBronosky
RichardBronosky / README.md
Last active June 20, 2024 02:57
Using cloud-init for cloudless provisioning of Raspberry Pi

Installing cloud-init on a fresh Raspbian Lite image

This is a work in Progress!

Purpose

This mainly demonstrates my goal of preparing a Raspberry Pi to be provisioned prior to its first boot. To do this I have chosen to use the same cloud-init that is the standard for provisioning servers at Amazon EC2, Microsoft Azure, OpenStack, etc.

I found this to be quite challenging because there is little information available for using cloud-init without a cloud. So, this project also servers as a demonstration for anyone on any version of Linux who may want to install from source, and/or use without a cloud. If you fall into that later group, you probably just want to read the code. It's bash so everything I do, you could also do at the command line. (Even the for loop.)

@canni
canni / enum.py
Last active November 5, 2015 02:11
SQLAlchemy Enum column type using python's enum34
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from enum import Enum
from sqlalchemy.types import SchemaType, TypeDecorator
from sqlalchemy.types import Enum as SAEnum
class EnumType(SchemaType, TypeDecorator):
def __init__(self, enum, name):
@derektamsen
derektamsen / puppet_master_crl_cache_update
Last active August 6, 2017 00:22
This script will connect to the rest api of the puppetca listed in your puppet config and update the local copy certificate revocation list. This is useful when you have distributed puppet masters fronted by a webserver and passenger.
#!/usr/bin/env bash
# This script will connect to the rest api of the puppetca listed in your
# puppet config and update the local copy certificate revocation list.
#
# This is useful when you have distributed puppet masters fronted by
# a webserver and passenger.
#
# https://docs.puppetlabs.com/guides/rest_api.html#certificate-revocation-list
# https://ask.puppetlabs.com/question/3843/multiple-puppet-masters-with-single-ca-server/