Skip to content

Instantly share code, notes, and snippets.

"Forgot About Clay"
(feat. Patrick DeBois)
[Andrew Clay Shafer]
Y'all know me still the same OG
But I been low key
Hated on by most of these ops
With no skills, no tests, no quality, no empathy
No CI, no stories, and no speaker fees
Mad at me cause
@mattstratton
mattstratton / tkwin.md
Last active August 29, 2015 14:07
Notes from Test-Kitchen for Windows ChefSummit 2014 Meeting

What is needed for Minimum Viable Product of WinKitchen

  • Need a way to hint if command interpreter is bash or posh
  • Finalize the transport mechanism (Fletcher Nichol is the tech champ for this)
  • WinRM Transport
  • SSH Transport
  • Create command plugin layer (Jay Mundrawla is the tech champ for this)
  • Fletcher to push a small kitchen release (Fletcher Nichol to complete)
  • Regression test the new changes with existing functions (linux machines, etc) (Matt Stratton is the tech champ for this)
  • Small kitchen release mixed into a ChefDK release
@mattstratton
mattstratton / gist:1f946800321825c2c917
Created November 4, 2014 03:50
IIS Webserver Role
windows_feature 'IIS-WebServerRole' do
action :install
all true
end
@mattstratton
mattstratton / gist:9f971b78bcc23cc3fba0
Created November 4, 2014 16:13
output of chef-client for sean
Starting Chef Client, version 11.16.4
[2014-11-04T16:09:37+00:00] INFO: *** Chef 11.16.4 ***
[2014-11-04T16:09:37+00:00] INFO: Chef-client pid: 2844
[2014-11-04T16:09:49+00:00] INFO: Run List is [recipe[rj_iis]]
[2014-11-04T16:09:49+00:00] INFO: Run List expands to [rj_iis]
[2014-11-04T16:09:49+00:00] INFO: Starting Chef Run for sean-iis-3
[2014-11-04T16:09:49+00:00] INFO: Running start handlers
[2014-11-04T16:09:49+00:00] INFO: Start handlers complete.
resolving cookbooks for run list: ["rj_iis"]
[2014-11-04T16:09:54+00:00] INFO: Loading cookbooks [rj_iis@0.1.2, iis@2.1.5, windows@1.34.6, chef_handler@1.1.6]
@mattstratton
mattstratton / gist:c116ab9a86a30ba94002
Created November 5, 2014 01:10
vagrantfile for sean
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.require_version ">= 1.5.0"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.omnibus.chef_version = '11.16'
E, [2014-11-06T10:56:26.618928 #32710] ERROR -- Kitchen: ------Exception-------
E, [2014-11-06T10:56:26.619006 #32710] ERROR -- Kitchen: Class: Kitchen::ClientError
E, [2014-11-06T10:56:26.619027 #32710] ERROR -- Kitchen: Message: Could not load the 'windows_chef_zero' provisioner from the load path. Please ensure that your provisioner is installed as a gem or included in your Gemfile if using Bundler.
E, [2014-11-06T10:56:26.619044 #32710] ERROR -- Kitchen: ---Nested Exception---
E, [2014-11-06T10:56:26.619129 #32710] ERROR -- Kitchen: Class: LoadError
E, [2014-11-06T10:56:26.619158 #32710] ERROR -- Kitchen: Message: cannot load such file -- kitchen/provisioner/windows_chef_zero
E, [2014-11-06T10:56:26.619174 #32710] ERROR -- Kitchen: ------Backtrace-------
E, [2014-11-06T10:56:26.619187 #32710] ERROR -- Kitchen: /Users/mattstratton/.chefdk/gem/2.1.0/bundler/gems/test-kitchen-b575957073ed/lib/kitchen/provisioner.rb:46:in `rescue in for_plugin'
E, [2014-11-06T10:56:26.619203 #32710] ERROR -- Kitchen: /Users/m
#
# Cookbook Name:: rj_iis
# Recipe:: matt_iis
#
# Copyright 2014
#
# All rights reserved - Do Not Redistribute
#
# This recipe just temporarily hosts some stuff Matt is trying.
---
driver_plugin: vagrant
provisioner:
name: chef_zero
transport:
name: winrm
platforms:
 ~/cookbooks/vagrant_test/ [master] be kitchen create
-----> Starting Kitchen (v1.3.0)
-----> Creating <default-win2k12r2core>...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'win2k12r2core'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: default-win2k12r2core_default_1416870025751_12714
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
@mattstratton
mattstratton / Preferences.sublime-settings
Last active August 29, 2015 14:12
Sublime User Settings
{
"detect_indentation": false,
"font_size": 13,
"ignored_packages":
[
"BeautifyRuby",
"Vintage",
"WordPress",
"SideBarEnhancements"
],