Skip to content

Instantly share code, notes, and snippets.

[Tue, 03 Feb 2009 20:25:47 +0000] INFO: Starting Chef Run
[Tue, 03 Feb 2009 20:25:47 +0000] INFO: Loading plugin os
[Tue, 03 Feb 2009 20:25:47 +0000] INFO: Loading plugin ruby
[Tue, 03 Feb 2009 20:25:47 +0000] INFO: Loading plugin languages
[Tue, 03 Feb 2009 20:25:47 +0000] DEBUG: Setting attribute languages to [{}]
[Tue, 03 Feb 2009 20:25:47 +0000] DEBUG: Getting attribute languages, value {}
[Tue, 03 Feb 2009 20:25:47 +0000] DEBUG: Getting attribute languages, value {"ruby"=>{}}
[Tue, 03 Feb 2009 20:25:47 +0000] DEBUG: Getting attribute languages, value {"ruby"=>{"platform"=>"x86_64-linux"}}
[Tue, 03 Feb 2009 20:25:47 +0000] DEBUG: Getting attribute languages, value {"ruby"=>{"version"=>"1.8.7", "platform"=>"x86_64-linux"}}
[Tue, 03 Feb 2009 20:25:47 +0000] DEBUG: Getting attribute languages, value {"ruby"=>{"version"=>"1.8.7", "release_date"=>"2008-08-11", "platform"=>"x86_64-linux"}}
@btm
btm / wget.rb
Created February 3, 2009 22:56
# install wget
package "wget"
# remove wget
package "wget" do
action :remove
end
# would expect to install wget but doesn't
package "wget"
case node[:platform]
when "windows"
package "foo" do
case node[:kernel][:machine]
when "x86_64"
source "foo_x64.msi"
else
source "foo_x86.msi"
end
action :install
$ time ./jcouch.sh ; time ./jcouch.sh base64
File: /home/bryanm/images/bryanmetal.jpg
Size: 9566 bytes
Count: 100
Total: 956600 bytes
Writing data: ....................................................................................................
real 0m7.099s
user 0m1.296s
sys 0m0.064s
/*
* Copyright 2009 Bryan McLellan ([email protected])
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
#
# A simple icagent recipe. Takes all the facter facts and submits them to
# iClassify.
#
require 'rubygems'
require 'facter'
Facter.each do |name, value|
exists = @node.attribs.detect { |a| a[:name] == name }
We couldn’t find that file to show.
#
# Cookbook Name:: apt
# Recipe:: default
#
# Copyright 2008, OpsCode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# nagios apache configuration
#
# Generated by Chef for <%= @node[:fqdn] %>
#
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName nagios.prod.example.com
ServerAlias nagios
#
# Cookbook Name:: apache2
# Recipe:: default
#
# Copyright 2008, OpsCode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#