Skip to content

Instantly share code, notes, and snippets.

vagrant@vagrant-ubuntu-trusty-64:/vagrant_data/teamcity$ kitchen list -l debug
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ClientError
>>>>>> Message: Could not load the 'propeller' driver from the load path. Please ensure that your driver is installed as a gem or included in your Gemfile if using Bundler.
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
D ------Exception-------
D Class: Kitchen::ClientError
kitchen list -l debug
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ClientError
>>>>>> Message: Could not load the 'propeller' driver from the load path. Please ensure that your driver is installed as a gem or included in your Gemfile if using Bundler.
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
D ------Exception-------
D Class: Kitchen::ClientError
@rj-reilly
rj-reilly / kmskeys10.txt
Created March 18, 2017 18:45 — forked from CHEF-KOCH/kmskeys10.txt
Windows 10 KMS Keys
Windows.10.and.Office.2016.gVLK
#####################################################################
# technet.microsoft.com/en-us/library/jj612867.aspx?lc=1033 #
#####################################################################
Windows 10 Professional W269N-WFGWX-YVC9B-4J6C9-T83GX
Windows 10 Professional N MH37W-N47XK-V7XM9-C7227-GCQG9
Windows 10 Education NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Windows 10 Education N 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
chef_gem 'chef-provisioning-vsphere' do
action :install
compile_time true
end
require 'chef/provisioning/vsphere_driver'
with_vsphere_driver host: '192.168.1.4',
insecure: true,
user: '[email protected]',
sh "book.version = grep -i version metadata.rb|awk '{print \$2}'|sed s/'//g"
[app_jenkins_test-001-66IVBFYYEOA3TZ5NFR3UC6WM22HDZOH7VBK6SQSPALSQDXZJRQUQ] Running shell script
/Users/robertreilly/.jenkins/workspace/app_jenkins_test-001-66IVBFYYEOA3TZ5NFR3UC6WM22HDZOH7VBK6SQSPALSQDXZJRQUQ@tmp/durable-889e4419/script.sh: line 2: unexpected EOF while looking for matching `''
{
"variables": {
"version": ""
},
"builders": [
{
"type": "amazon-ebs",
"region": "us-east-1",
"instance_type": "m3.medium",
"source_ami": "ami-xxx",
2017/02/08 15:55:23 [INFO] Packer version: 0.12.2
2017/02/08 15:55:23 Packer Target OS/Arch: linux amd64
2017/02/08 15:55:23 Built with Go Version: go1.7.4
2017/02/08 15:55:23 Detected home directory from env var: /nfs/home/rxxxr
2017/02/08 15:55:23 Using internal plugin for hyperv-iso
2017/02/08 15:55:23 Using internal plugin for openstack
2017/02/08 15:55:23 Using internal plugin for profitbricks
2017/02/08 15:55:23 Using internal plugin for vmware-iso
2017/02/08 15:55:23 Using internal plugin for cloudstack
2017/02/08 15:55:23 Using internal plugin for docker
@rj-reilly
rj-reilly / gist:2e8df31e8b144d721c538ac585523eef
Last active December 23, 2016 16:56 — forked from mattjbarlow/gist:242b66cdae6938d34419
Chef Shell in Test Kitchen
cd /tmp/kitchen
sudo /opt/chef/embedded/bin/gem install chef-zero
/opt/chef/embedded/bin/chef-zero -d
sudo knife cookbook upload -a -c client.rb
sudo chef-shell -z -c client.rb -o 'demonops::default'
@rj-reilly
rj-reilly / batter.matchup.ggplot.R
Created December 16, 2016 20:23 — forked from bayesball/batter.matchup.ggplot.R
Finds estimates of true batting averages for all batters against a specific pitcher.
# loading in Retrosheet data for the seasons 1960 through 2013 from my website
load(url("http://bayes.bgsu.edu/baseball/pbp.1960.1979.Rdata"))
load(url("http://bayes.bgsu.edu/baseball/pbp.1980.1999.Rdata"))
load(url("http://bayes.bgsu.edu/baseball/pbp.2000.2013.Rdata"))
batter.matchup.ggplot <- function(Name, graph=TRUE, retroid=FALSE){
# this function assumes the data frames pbp.60.79, pbp.80.99, and pbp.00.13 are
# in the workspace
fit.model <- function(y, n){
require(LearnBayes)
import jenkins.model.*
import hudson.security.*
import com.cloudbees.plugins.credentials.*
import hudson.plugins.active_directory.*
def instance = Jenkins.getInstance()
def hudsonRealm = new ActiveDirectorySecurityRealm("domain", "site", "bindName", "bindPassword", "server", GroupLookupStrategy.CHAIN)
//def hudsonRealm = new HudsonPrivateSecurityRealm(false)
instance.setSecurityRealm(hudsonRealm)