Skip to content

Instantly share code, notes, and snippets.

# mounts/recipes/default.rb
if node['platform'] == "solaris2"
raise "#{cookbook_name}::#{recipe_name} no mount resource provider for Solaris (bug CHEF-2824)"
end
@jblaine
jblaine / gist:5554618
Created May 10, 2013 14:08
Parenting
Me: "What did you do at the playground? What games did you play?"
Sophia: "I don't know."
Me: "You were playing with Dutchie under the pirate ship, mama was saying...?"
Sophia: "Yeah!"
Jessica: "What were you guys doing under there?"
Sophia: "I don't know..."
Jessica: "It looked like you were sleeping or playing a sleeping game..."
Sophia: "Yeah!"
Jessica: "What was that game called?"
Sophia: "Sleeping under the pirate ship."
@jblaine
jblaine / gist:5605767
Created May 18, 2013 20:57
test-kitchen windows 8 failures

5/18/2013

Windows 8 cmd.exe

C:\Users\jblaine>set PATH=%PATH%;C:\opscode\chef\embedded\bin

C:\Users\jblaine>cd test-kitchen-test

C:\Users\jblaine\test-kitchen-test>dir

Volume in drive C has no label.

Converging 5 resources
Recipe: virtualbox::default
* windows_package[Oracle VM VirtualBox 4.2.12] action install[2013-06-07T21:51:59-04:00] INFO: Pro
cessing windows_package[Oracle VM VirtualBox 4.2.12] action install (virtualbox::default line 37)
(up to date)
Recipe: vagrant::windows
* windows_package[Vagrant 1.2.2] action install[2013-06-07T21:51:59-04:00] INFO: Processing window
s_package[Vagrant 1.2.2] action install (vagrant::windows line 1)
[2013-06-07T21:51:59-04:00] INFO: Installing windows_package[Vagrant 1.2.2] version latest
Recipe: <Dynamically Defined Resource>
@jblaine
jblaine / gist:6168667
Created August 6, 2013 21:09
Chef client 11.4.0 on RHEL 6.4
Chef client 11.4.0 on RHEL 6.4
...
mtc-sge-exec1 Recipe: rcf-mounts::mtc
mtc-sge-exec1 * directory[/mtcnas] action create
mtc-sge-exec1 (up to date)
mtc-sge-exec1 * directory[/mtcnas/platform] action create
mtc-sge-exec1
mtc-sge-exec1 ================================================================================
mtc-sge-exec1 Error executing action `create` on resource 'directory[/mtcnas/platform]'
Upgrading to 0.9.12
(graphite)graphite% pip install carbon --upgrade --install-option="--prefix=/rcf-monitor/graphite" --install-option="--install-lib=/rcf-monitor/graphite/lib/python2.6/site-packages"
...
copying conf/whitelist.conf.example -> /rcf-monitor/graphite/conf
copying conf/carbon.amqp.conf.example -> /rcf-monitor/graphite/conf
error: can't copy 'distro/redhat/init.d/carbon-cache': doesn't exist or not a regular file
@jblaine
jblaine / gist:6374128
Last active December 21, 2015 22:18
Kathy Sierra
Focus not on upgrading your product but upgrading your
user’s capabilities. If you can’t enhance your product,
enhance the context in which your product is used. Pro-
vide better and more inspiring documentation. Make YouTube
tutorials. Join forums and offer expert help where it’s
most needed. Use every nanosecond of your social media
time to help people become better at something for them-
selves. Understand and design for Social Objects. Relent-
lessly ask, “How are we helping our users kick ass? What
can we inspire, amplify, teach, enable, empower?”
https://wiki.opscode.com/display/chef/Working+with+Git Says:
[jblaine@dev:~/src] $ git clone [email protected]:jblaine/chef.git
Initialized empty Git repository in /home/jblaine/src/chef/.git/
...
[jblaine@dev:~/src] $ cd chef
[jblaine@dev:~/src/chef] git remote add opscode git://github.com/opscode/chef.git
[jblaine@dev:~/src/chef] git config branch.master.remote opscode
[jblaine@dev:~/src/chef] git checkout --track -b CHEF-4418 opscode/master
fatal: git checkout: updating paths is incompatible with switching branches.
require 'spec_helper'
describe 'line-cookbook::tester' do
let(:chef_run) { ChefSpec::ChefRunner.new.converge 'line-cookbook::tester' }
it 'creates dangerfile' do
expect(chef_run).to create_cookbook_file '/tmp/dangerfile'
expect(chef_run).to create_file_with_content '/tmp/dangerfile', 'HI I AM STRING'
file = chef_run.cookbook_file '/tmp/dangerfile'
expect(file).to be_owned_by('root')
@jblaine
jblaine / gist:6554754
Created September 13, 2013 19:06
fpm solaris fail
collectd-5.4.0:cairo> /usr/rcf/bin/sudo /usr/rcf-tools/ruby-1.9.3/bin/fpm -t solaris -s dir --name collectd-rcf --version 5.4.0 -a all --prefix /usr/rcf-tools/collectd-5.4.0 /usr/rcf-tools/collectd-5.4.0
Password:
## Building pkgmap from package prototype file. {:level=>:error}
## Processing pkginfo file. {:level=>:error}
WARNING: parameter <PSTAMP> set to "cairo.mitre.org20130913190412" {:level=>:error}
## Attempting to volumize 216 entries in pkgmap. {:level=>:error}
part 1 -- 40228 blocks, 1914 entries {:level=>:error}
## Packaging one part. {:level=>:error}
/tmp/package-solaris-build20130913-13321-1lg6ruz/collectd-rcf/pkgmap {:level=>:error}
/tmp/package-solaris-build20130913-13321-1lg6ruz/collectd-rcf/pkginfo {:level=>:error}