Skip to content

Instantly share code, notes, and snippets.

View eheydrick's full-sized avatar

Eric Heydrick eheydrick

View GitHub Profile
Recipe: chef-dk::default
* chef_dk[chef_dk] action install
Recipe: <Dynamically Defined Resource>
* chef_gem[omnijack] action install (up to date)
================================================================================
Error executing action `install` on resource 'chef_dk[chef_dk]'
================================================================================
OpenURI::HTTPError
@eheydrick
eheydrick / multi-component-repo.sh
Last active November 12, 2015 21:24
multi component apt repo publishing with aptly
#!/bin/bash
#
# multi-component apt repo publishing with aptly - http://www.aptly.info/
# Usage:
# ./multi-component-repo.sh <component>
# where component is the component to put the package in
#
# See http://www.aptly.info/doc/feature/multi-component/ for more info
#
@eheydrick
eheydrick / pg_gem.rb
Created October 5, 2015 22:50
install the pg gem into sensu's ruby installation
# Super hacky way to get the pg gem installed into Sensu's ruby installation.
# Ripped off from https://github.com/hw-cookbooks/postgresql/blob/develop/recipes/ruby.rb
# Credit to chrisroberts for this
gem_installed = system("/opt/sensu/embedded/bin/ruby -e \"require 'pg'\"")
pg_gem_version = '0.18.3'
unless gem_installed
Chef::Log.warn('pg gem is not installed in the sensu ruby installation. Installing it')
@eheydrick
eheydrick / ssh.rb
Created July 31, 2015 19:09
Kerberos/GSSAPI support for knife ssh
--- chef/lib/chef/knife/ssh.rb 2015-07-31 18:59:12.325073131 +0000
+++ /opt/chef/embedded/apps/chef/lib/chef/knife/ssh.rb 2015-07-31 18:58:04.727929333 +0000
@@ -25,6 +25,7 @@
deps do
require 'net/ssh'
require 'net/ssh/multi'
+ require 'net/ssh/kerberos'
require 'chef/monkey_patches/net-ssh-multi'
require 'readline'
require 'chef/exceptions'
nginx conf for proxying the FreeIPA UI. ipa.my.org is the proxy name, realipa.my.org is the master.
server {
listen 443 ssl;
server_name ipa.my.org;
ssl on;
ssl_certificate /etc/nginx/ssl/ipa.crt;
ssl_certificate_key /etc/nginx/ssl/ipa.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers AES256+EECDH:AES256+EDH:AES128+EECDH!aNULL;