This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install wget | |
package "wget" | |
# remove wget | |
package "wget" do | |
action :remove | |
end | |
# would expect to install wget but doesn't | |
package "wget" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# nagios apache configuration | |
# | |
# Generated by Chef for <%= @node[:fqdn] %> | |
# | |
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerName nagios.prod.example.com | |
ServerAlias nagios |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 | |
# |