Public Gists by fujin

Gravatar
Thu Nov 05 11:14:22 -0800 2009
1
2
3
users Mash.new unless attribute?("users")
groups Mash.new unless attribute?("groups")
ssh_keys Mash.new unless attribute?("ssh_keys")
Gravatar
Wed Nov 04 14:30:40 -0800 2009
1
2
3
j@AJ-Christensens-MacBook (branch: master) ~/Development/chef$ irb
>> require 'mixlib/log'
=> true
Gravatar
Wed Oct 28 12:12:50 -0700 2009
1
2
3
def install_gems
        gems_collection = Chef::ResourceCollection.new
        gem_packages.each { |rbgem| gems_collection << rbgem }
Gravatar
Wed Oct 28 11:07:10 -0700 2009
1
2
3
merb : worker (port 4000) ~ Started request handling: Thu Oct 29 07:04:59 +1300 2009
merb : worker (port 4000) ~ Routed to: {"submit"=>"Login →", "action"=>"login", "openid_identifier"=>"https://www.google.com/accounts/o8/id", "controller"=>"chef_server_slice/openid_consumer"}
merb : worker (port 40
Gravatar
Wed Oct 28 06:52:12 -0700 2009
1
2
3
# aj@AJ-Christensens-MacBook ~$ cat /etc/chef/server.rb
log_location STDOUT
log_level :debug
Gravatar
Tue Oct 27 08:51:16 -0700 2009
1
2
3
[Wed, 28 Oct 2009 05:07:48 +1300] INFO: RECV [push] (621 bytes) <013d179c7005c116936adcb768355c7f> /index/add from mapper
[Wed, 28 Oct 2009 05:07:48 +1300] INFO: Indexing role ed4082d4-4681-4dee-9886-9717ce50baaf from chef_integration status ok
[Wed, 28 Oct 2009 05:07:50 +1300] ERROR: RECV Could not
Gravatar
Mon Oct 26 15:10:21 -0700 2009
1
2
3
DEBUG: Converging node chef_jaunty_local
DEBUG: Processing package[postfix]
DEBUG: package[postfix] using Chef::Provider::Package::Apt
Gravatar
Sun Oct 18 08:45:08 -0700 2009
1
2
3
@provider @package @rubygems
Feature: Gem package
  In order to manage software and applications that require ruby gem packages
Gravatar
Wed Oct 14 02:51:37 -0700 2009
1
2
3
def initialize(name, collection=nil, node=nil)
  super(name, collection, node)
  puts "Overridden initialize"
Gravatar
Tue Oct 13 10:11:03 -0700 2009
1
2
3
diff --git a/chef-server-slice/app/controllers/nodes.rb b/chef-server-slice/app/controllers/nodes.rb
index 4faa3c7..939e092 100644
--- a/chef-server-slice/app/controllers/nodes.rb
Gravatar
Tue Oct 13 01:39:36 -0700 2009
1
2
3
aj@AJ-Christensens-MacBook (branch: master) ~/Development/chef$ mtr --report -c 5 125.214.73.36
HOST: AJ-Christensens-MacBook.loc Loss% Snt Last Avg Best Wrst StDev
  1. 192.168.1.1 0.0% 5 1.9 2.7 1.9 4.4 1.1
Gravatar
Mon Oct 12 23:25:38 -0700 2009
1
2
3
@provider @git @deploy
Feature: Deploy
  In order to repeatably and reliably deploy web apps from a source repository from the comfort of chef
Gravatar
Wed Sep 30 22:40:41 -0700 2009
1
2
3
1)
Errno::ENOENT in 'Chef::Provider::RemoteFile do_remote_file should not transfer the file if it has not been changed'
No such file or directory - /Users/aj/Development/chef/chef/spec/data/cookbooks/openldap/metadata.json
Gravatar
Sat Sep 19 18:26:09 -0700 2009
1
2
3
aj@AJ-Christensens-MacBook ~/Development/chef-repo$ sudo rm /tmp/foo
aj@AJ-Christensens-MacBook ~/Development/chef-repo$ sudo chef-solo -j test.json -r cookbooks.tar -l debug
[Sun, 20 Sep 2009 13:38:16 +1200] DEBUG: Creating path /var/chef to extract recipes into
Gravatar
Sat Sep 19 18:06:37 -0700 2009
1
2
3
def action_stop
        if @current_resource.running
          Chef::Log.debug("#{@new_resource}: attempting to stop")
Gravatar
Thu Sep 17 21:26:40 -0700 2009
1
2
3
if Gem.const_get "RubyGemsVersion" < "1.3.5"
  %w{
rubygems
Gravatar
Wed Sep 16 18:25:05 -0700 2009
1
2
3
diff --git a/chef/spec/unit/client_spec.rb b/chef/spec/unit/client_spec.rb
index 303306a..01b8bb7 100644
--- a/chef/spec/unit/client_spec.rb
Gravatar
Wed Sep 16 15:42:49 -0700 2009
1
2
3
)
NoMethodError in 'Chef::Client run should start the run clock timer'
undefined method `name' for nil:NilClass
Gravatar
Tue Sep 15 15:08:24 -0700 2009
1
2
3
aj@AJ-Christensens-MacBook (branch: v0.7.10) ~/Development/chef$ sudo irb -rchef -rferret
>> @index = Ferret::Index::Index.new(:path => Chef::Config[:search_index_path])
=> #<Ferret::Index::Index:0x1023bb0c0 @mon_entering_queue=[], @auto_flush=false, @mon_count=0, @dir=#<Ferret::Store::FSDirectory:0x1023bb070>, default_input_field:id, searchernil, readernil, mon_ownernil, qpnil, options{:lock_retry_time=>2, :analyzer=>#<Ferret::Analysis::StandardAnalyzer:0x1023baf30, :path="/var/chef/search_index", :dir=#<Ferret::Store::FSDirectory:0x1023bb070, :default_field=:*}, @close_dir=true, @default_field=:*, @writer=nil, @mon_waiting_queue=[], @open=true, @id_field=:id, @key=nil>
Gravatar
Thu Sep 10 20:08:14 -0700 2009
1
2
3
@provider @git @deploy
Feature: Deploy
  In order to repeatably and reliably deploy web apps from a source repository from the comfort of chef