This file contains hidden or 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
>> root @ client1 [ /etc/chef ] | |
% hostname -f | |
client1.rack-dfw-int.37signals.com | |
>> root @ client1 [ /etc/chef ] | |
% ohai | grep hostname | |
"hostname": "client1", |
This file contains hidden or 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
asdf |
This file contains hidden or 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
test |
This file contains hidden or 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
uptime 1142 | |
pending_queries 0 | |
processing_queries 5 | |
bored_queryworkers 35 | |
queries 6141 | |
work_queue_for_delete 0 | |
work_queue_for_fsck 850 | |
. | |
This file contains hidden or 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
name "base" | |
description "Base role is applied to all servers." | |
recipes %w{ | |
build-essential | |
chef::client | |
man | |
openldap::auth | |
openssh | |
postfix |
This file contains hidden or 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
init([]) -> | |
{ok, Port} = application:get_env(poller, port), | |
PollServer = {poll_server, {mochiweb_http, start, [[{port, Port}, | |
{loop, fun campfire:poll/1}]]}, | |
permanent, 2000, worker, [mochiweb_http]}, | |
PollLogger = {poll_logger, {poll_logger, start_link, []}, | |
permanent, 2000, worker, [poll_logger]}, | |
{ok,{{one_for_one,0,1}, [PollServer, PollLogger]}}. | |
This file contains hidden or 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
configure "somepackage" do | |
source "http://foo.com/blah-1.2.3.tar.gz" | |
options "--prefix=/usr/local --disable-foo --enable-bar" | |
post_install "some_script_resource" # optional | |
end |
This file contains hidden or 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
diff --git a/chef-server-slice/app/controllers/application.rb b/chef-server-slice/app/controllers/application.rb | |
index de03021..7978809 100644 | |
--- a/chef-server-slice/app/controllers/application.rb | |
+++ b/chef-server-slice/app/controllers/application.rb | |
@@ -22,6 +22,8 @@ require "chef" / "cookbook_loader" | |
class ChefServerSlice::Application < Merb::Controller | |
+ include Chef::Mixin::Checksum | |
+ |
This file contains hidden or 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
>> mark @ chef-server [ /home/mark/workspace/chef/chef-server ] | |
% gem list | grep chef | |
>> mark @ chef-server [ /home/mark/workspace/chef/chef-server ] | |
% ./bin/chef-server | |
Loading init file from /home/mark/workspace/chef/chef-server/config/init.rb | |
Loading /home/mark/workspace/chef/chef-server/config/environments/development.rb | |
~ Compiling routes... (totally normal to see 'Cannot find resource model') | |
~ Loaded slice 'ChefServerSlice' ... | |
~ Parent pid: 19182 |
This file contains hidden or 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
diff --git a/chef-server/bin/chef-server b/chef-server/bin/chef-server | |
index b6a8277..e7dd8a2 100755 | |
--- a/chef-server/bin/chef-server | |
+++ b/chef-server/bin/chef-server | |
@@ -27,6 +27,9 @@ require "chef" | |
Dir.chdir File.join(File.dirname(__FILE__),"..") | |
__DIR__ = Dir.getwd | |
+slice_source = File.join(File.dirname(__FILE__), "..", "..", "chef-server-slice", "lib", "chef-server-slice.rb") | |
+require slice_source if File.exists?(slice_source) |