Skip to content

Instantly share code, notes, and snippets.

:octocat:
Being Awesome

Tim Hartmann tfhartmann

:octocat:
Being Awesome
Block or report user

Report or block tfhartmann

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
@tfhartmann
tfhartmann / hacky.rb
Created Sep 4, 2015
me hacking around with ansible_spec and ruby
View hacky.rb
#!/bin/env ruby
require 'hostlist_expression'
#
def parse_inventory_file (filecontent)
group_map = {}
group_map.default = []
group = []
g = Array.new
#parse the name of the group, and all hosts in it
filecontent.each_line{|line|
@tfhartmann
tfhartmann / consul.coffee
Created Mar 1, 2015
work in progress on a consul hubot script
View consul.coffee
# Description:
# Query Consul with Hubot
#
# Commands:
# hubot consul datacenters - Show Datacenters
# hubot consul services - Show Services
# hubot consul service <servicename> - Show Detailed info about a service
#
# Notes:
# They are commented out by default, because most of them are pretty silly and
View test.md

Testing

  • Test of Gihub Markdown formated Gist

I'm going to try and embed this in a media wiki!

  class { 'foo': }
  class { 'bar': }
View poc_readme.md
  1. Pointer to readme
  2. aws credentials
  3. git clone arch-poc
  4. setup python env
  5. install pip (easy install pip / homebrew)
  6. install boto
  7. script for creating 3 tier app via cloudformation
  • clones hu-python in location
  • install dev env (hu with different args)
  1. Cloudwatch monitoring
@tfhartmann
tfhartmann / app_server.md
Last active Dec 20, 2015
POC Notes for Puppet
View app_server.md

Put this in it's own deployment repo (branchs for differt types of server i.e. front end, app server etc)

https://github.com/huit/puppet-mediawiki

Needs a patch for db_server param in the puppet-mediawiki module

4 basic files

  1. "yamilifier" script that pulls env vars into hierra
  2. single shell script with standard name (bootstrap.sh)
@tfhartmann
tfhartmann / vagrant-mc.md
Last active Dec 20, 2015
Vagrant Minecraft overviewer Notes
View vagrant-mc.md

Problem

===

  • I was running a AWS instence to host a Minecraft Map ( http://map.ob3y.com/mcmap ) with friends and it was costing me a bunch of $$$
  • Rendering on a cluster was slow, since disk was a bit slow, and MC Overviewer would only use 1 single note (no parrallel feature)
  • rsyncing from the "map processing" nodes to the "web node" was slooooo
  • I ran out of disk space on the web node ... booo... and this equals small maps...

===

ideas

View aws_secnotes.md

entrance portal for amazon Joe suggestion - walk you though the different levels of proctections and what templates fill those obligations

lets get the definition of what the levels are - ala SOB and the security portals (TH)

reference architectures on cloud portal

from AWS the model of of shared security

@tfhartmann
tfhartmann / cloud_eng.md
Last active Dec 21, 2015
Cloud Eng Notes Aug27 2013
View cloud_eng.md

~ 6 month Project

  • "Where were going we don't need offices"

  • Everything should be open source and published publicly

A release is tagged every two weeks and we hold ourselves accountable to that Based on a two week scrum cycle

@tfhartmann
tfhartmann / haag_puppet.md
Created Sep 18, 2013
HAAG Puppet Example for Common Infrastructure Scaffolding - The API section of Integrated_Operations wiki page
View haag_puppet.md
class iam_ldap_server (
  <parameters go here>
) {
  # 389_server is the module written by IAM
  class { '389_server':
    ensure  => 'present',
    require => Class['server'],
    <other parameters go here>
  }
@tfhartmann
tfhartmann / s3_website.md
Last active Dec 23, 2015
How To install and configure s3_website on a mac
View s3_website.md

How I made this Blog - A Drama in Many Parts.

[The Quick and Dirty](#The Quick and Dirty) [Install s3_website](#Install s3_website)

This post may get a little long and ramble a bit, so let me skip directly to the payoff - quick and easy content managment on crazy robust and reliable infrastructure. Here's the commands I need to add and post new content:

 ]$ vim _posts/2013-09-27-hello-world.md 
 
You can’t perform that action at this time.