Skip to content

Instantly share code, notes, and snippets.

View tmatilai's full-sized avatar

Teemu Matilainen tmatilai

View GitHub Profile
#!/bin/sh
set -e
CONF='.ec2-credentials'
if [ -f "$CONF" ]; then
# export EC2_URL=https://ec2.us-east-1.amazonaws.com/
# export EC2_ACCESS_KEY=''
# export EC2_SECRET_KEY=''
@tmatilai
tmatilai / knife-bootstrap-solo.md
Last active December 11, 2015 06:28
POC to integrate knife-solo to `knife bootstrap`

knife bootstrap --solo

Description

The knife-bootstrap-solo branch of tmatilai's knife-solo fork has a proof of concept implementation to integrate knife-solo plugin to Opscode Chef's knife bootstrap command, which also plugins like

@tmatilai
tmatilai / solo.rb
Last active February 28, 2018 22:01 — forked from matschaffer/solo.rb
knife[:solo_path] = 'chef-solo' # relative to $HOME, but can be '/tmp/chef-solo' etc.
# knife-solo sets the KNIFE_SOLO variable when runnin on the work station
solo_path = ENV['KNIFE_SOLO'] ? knife[:solo_path] : File.expand_path(File.dirname(__FILE__))
data_bag_path File.join(solo_path, 'data_bags')
encrypted_data_bag_secret File.join(solo_path, 'data_bag_key')
cookbook_path [ File.join(solo_path, "site-cookbooks"),
File.join(solo_path, "cookbooks") ]
role_path File.join(solo_path, "roles")
@tmatilai
tmatilai / README.md
Last active October 13, 2015 12:18
POC for integrating knife-ec2 and knife-solo plugins

knife-ec2-solo

Description

Proof of concept implementation to integrate knife-ec2 and knife-solo Chef Knife plugins. Adds --solo option to knife ec2 server create that uses knife solo bootstrap for bootstrapping the instance. Also other solo bootstrap options are available.

@tmatilai
tmatilai / todo-txt-colors-solarized-dark.config
Created January 18, 2012 16:18
todo.txt colors for dark Solarized color scheme
# todo.txt colors for dark Solarized color scheme
export PRI_A=$RED
export PRI_B=$BROWN
export PRI_C=$BLUE
export PRI_D=$CYAN
export PRI_E=$LIGHT_PURPLE
export PRI_X=$LIGHT_CYAN
export COLOR_DONE=$LIGHT_GREEN