Skip to content

Instantly share code, notes, and snippets.

View cheeseplus's full-sized avatar
🎯
Focusing

Seth Thomas cheeseplus

🎯
Focusing
View GitHub Profile
@cheeseplus
cheeseplus / vagrant_spec.rb
Created January 5, 2017 17:01
spec/kitchen/driver/vagrant_spec.rb
--- a/spec/kitchen/driver/vagrant_spec.rb
+++ b/spec/kitchen/driver/vagrant_spec.rb
@@ -1081,14 +1081,7 @@ describe Kitchen::Driver::Vagrant do
config[:box_check_update] = false
cmd
- expect(vagrantfile).to match(regexify(%{c.vm.box_check_update = "false"}))
- end
-
- it "sets vm.box_check_update if :box_check_update is set" do
---
driver:
name: vagrant
provisioner:
name: chef_solo
platforms:
- name: ubuntu-14.04
driver:
test.rb -l info
[2016-09-15T12:40:53-04:00] INFO: Run List is []
[2016-09-15T12:40:53-04:00] INFO: Run List expands to []
[2016-09-15T12:40:53-04:00] INFO: [:enable]
Recipe: (chef-apply cookbook)::(chef-apply recipe)
* ruby_block[config mount actions] action run[2016-09-15T12:40:53-04:00] INFO: Processing ruby_block[config mount actions] action run ((chef-apply cookbook)::(chef-apply recipe) line 3)
[2016-09-15T12:40:53-04:00] INFO: ruby_block[config mount actions] called
- execute the ruby block config mount actions
* log[test that actions was appended to] action write[2016-09-15T12:40:53-04:00] INFO: Processing log[test that actions was appended to] action write ((chef-apply cookbook)::(chef-apply recipe) line 9)
JSON of:
{
"buildkite" : {
"user" : "vagrant",
"group" : "wheel"
}
}
results in:
@cheeseplus
cheeseplus / default.rb
Last active September 6, 2016 18:12
repro for template
node.default['ip'] = '173.194.207.113'
template '/tmp/template_hack' do
source 'template.erb'
owner 'root'
group 'root'
mode 00744
end
Recipe: audit::default
* compliance_profile[ssh] action fetch
* chef_gem[inspec] action install (up to date)
- install/update inspec
* directory[/var/chef/cache/compliance] action create (up to date)
- create cache directory
================================================================================
Error executing action `fetch` on resource 'compliance_profile[ssh]'
================================================================================
@cheeseplus
cheeseplus / gist:7866128
Created December 9, 2013 01:22
kitchen log for FreeBSD boot
---- Begin output of vagrant up --no-provision --provider=virtualbox ----
STDOUT: Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'opscode-freebsd-9.2'...
Progress: 10%
Progress: 20%
Progress: 30%
Progress: 50%
Progress: 70%
Progress: 90%
[default] Matching MAC address for NAT networking...
@cheeseplus
cheeseplus / gist:7866088
Last active December 30, 2015 18:09
test-kitchen and FreeBSD not playing nice
cheeseplus at hanuman in ~/projects/cookbooks/riak on sgt-freebsd*
$ kitchen test default-freebsd
-----> Starting Kitchen (v1.1.0)
-----> Cleaning up any prior instances of <default-freebsd-92>
-----> Destroying <default-freebsd-92>...
Finished destroying <default-freebsd-92> (0m0.00s).
-----> Testing <default-freebsd-92>
-----> Creating <default-freebsd-92>...
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'opscode-freebsd-9.2'...
SHELL = /bin/sh
# V=0 quiet, V=1 verbose. other values don't work.
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
n=$(NULLCMD)
ECHO1 = $(V:1=@$n)
ECHO = $(ECHO1:0=@echo)
@cheeseplus
cheeseplus / gist:5092141
Created March 5, 2013 17:30
rubyracerp-ext-v8 makefile
SHELL = /bin/sh
# V=0 quiet, V=1 verbose. other values don't work.
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
n=$(NULLCMD)
ECHO1 = $(V:1=@$n)
ECHO = $(ECHO1:0=@echo)