Skip to content

Instantly share code, notes, and snippets.

Hart Hoover hhoover

Block or report user

Report or block hhoover

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View kind-config.yaml
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
nodes:
- role: control-plane
- role: worker
- role: worker
@hhoover
hhoover / customize.sh
Created Feb 23, 2018
Raspberry Pi K8S disks
View customize.sh
#!/bin/bash
set -x
# Localse, uncomment if user-data didn't fix these
export LANGUAGE=en_US.UTF-8; export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; locale-gen en_US.UTF-8
# Set locale to en_US.UTF-8
sudo cp /etc/locale.gen /etc/locale.gen.dist
sudo sed -i -e "/^[^#]/s/^/#/" -e "/en_US.UTF-8/s/^#//" /etc/locale.gen
@hhoover
hhoover / make-ics.py
Last active Oct 21, 2016 — forked from dstanek/make-ics.py
Create a personalized iCal for the OpenStack Newton Summit schedule
View make-ics.py
#!/usr/bin/env python3
# Download https://www.openstack.org/summit/barcelona-2016/summit-schedule/mine/?goback=1
# to mine.html and then run this script. The my.ics can be imported into your
# calendar.
#
# Common problems:
# - i've only tested against my calendar (and got feedback about bugs from others) so
# so you may find the parsing isn't quite right
View gist:996191094b22cb441234
machine 'mysql-master' do
machine_options ssh_username: 'root',
bootstrap_options: {
key_name: 'id_rsa',
flavor_id: 'onmetal-io1',
image_id: 'd22ea57e-e12e-4a0a-ad6b-680dd676fd7c'
}
recipe 'apt'
recipe 'mysql::server'
tag 'database'
View metal.rb
node.set['apt']['compile_time_update'] = true
include_recipe 'apt'
node.set['build-essential']['compile_time'] = true
include_recipe 'build-essential'
chef_gem 'chef-metal' do
version '0.11.2'
action :install
end
View gist:e10bcd35ac1799ef70a7
case node['recipes']
when 'cookbook::recipe'
take some action
when 'cookbook::other_recipe'
take other action
end
View django-single.yaml
heat_template_version: 2013-05-23
description: |
Heat template to deploy a single Django server
parameters:
database_host:
description: Cloud Database hostname.
type: string
@hhoover
hhoover / .kitchen.local.yml
Created Jan 20, 2014
Test-Kitchen files for Rackspace (chef training)
View .kitchen.local.yml
driver_config:
rackspace_username: USERNAME
rackspace_api_key: APIKEY
public_key_path: /root/.ssh/id_rsa.pub
@hhoover
hhoover / Vagrantfile
Last active Jan 3, 2016
Vagrantfile for Chef Dev Bastion
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
config.vm.box = 'dummy'
config.vm.box_url = 'https://github.com/mitchellh/vagrant-rackspace/raw/master/dummy.box'
config.vm.provision 'shell', inline: <<-EOF
apt-get update
apt-get -y install curl git vim zlib1g-dev libssl-dev libreadline6-dev libyaml-dev libxml2-dev libxslt-dev build-essential
@hhoover
hhoover / Berksfile
Last active Dec 25, 2015
Copy/paste for chef class
View Berksfile
site :opscode
cookbook 'apt'
cookbook 'build-essential'
cookbook 'python'
metadata
You can’t perform that action at this time.