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
Knife search works: | |
precursor:chef-repo cwj$ knife search node "run_list:role\[es_manager\]" | egrep fqdn | |
"fqdn": "master.drp.es.bluecoat.com", | |
"server_fqdn": "chef.drp.es.bluecoat.com", | |
search in recipe does not: | |
search(:node, "run_list:role\[es_manager\]") do |manager| |
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
sparkplug:~ cwj$ knife ssh "recipe:drtr" date -l debug | |
DEBUG: Signing the request as ops | |
DEBUG: Sending HTTP Request via GET to chef.drp.es.bluecoat.com:4000//search/node | |
DEBUG: Adding drtr6.drp.es.bluecoat.com | |
DEBUG: Adding drtr4.drp.es.bluecoat.com | |
DEBUG: Adding drtr5.drp.es.bluecoat.com | |
DEBUG: Adding drtr7.drp.es.bluecoat.com | |
DEBUG: Adding drtr1.drp.es.bluecoat.com | |
DEBUG: Adding drtr3.drp.es.bluecoat.com | |
DEBUG: Adding drtr2.drp.es.bluecoat.com |
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
include_recipe "pbuilder" | |
%w{ python-cheetah python-yaml git-core }.each do |pkg| | |
package pkg do | |
action :install | |
end | |
end | |
git "/usr/src/cobbler" do | |
#repository "git://git.fedoraproject.org/git/cobbler/" |
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
this is the original | |
now i add some text |
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
d-i partman-auto/disk string /dev/sda | |
d-i partman-auto/method string lvm | |
d-i partman-lvm/device_remove_lvm boolean true | |
d-i partman-lvm/device_remove_lvm_span boolean true | |
d-i partman-auto/purge_lvm_from_device boolean true | |
d-i partman-auto-lvm/new_vg_name string system | |
d-i partman-auto/init_automatically_partition \ | |
select Guided - use entire disk and set up LVM | |
d-i partman-auto/expert_recipe string \ | |
boot-root :: \ |
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
# Bits stolen from chef::server | |
# Cookbook Name:: chef | |
# Recipe:: manage_couchdb | |
# | |
# Copyright 2008-2009, Opscode, Inc | |
# Copyright 2009, 37signals | |
# | |
# 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
merb : worker (port 4000) ~ Started request handling: Tue Jun 22 17:24:40 +0000 2010 | |
merb : worker (port 4000) ~ undefined method `each' for nil:NilClass - (NoMethodError) | |
/usr/lib/ruby/1.8/chef/node.rb:329:in `json_create' | |
/usr/lib/ruby/1.8/json/common.rb:122:in `parse' | |
/usr/lib/ruby/1.8/json/common.rb:122:in `parse' | |
/usr/lib/ruby/1.8/merb-core/dispatch/request.rb:257:in `json_params' | |
/usr/lib/ruby/1.8/merb-core/dispatch/request.rb:293:in `params' | |
/usr/lib/ruby/1.8/merb-core/bootloader.rb:274 | |
/usr/lib/ruby/1.8/merb-core/dispatch/request.rb:93:in `call' | |
/usr/lib/ruby/1.8/merb-core/dispatch/request.rb:93:in `method' |
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
precursor:openldap cwj$ knife cookbook upload openldap -l debug | |
DEBUG: Uploading cookbooks from | |
INFO: ** openldap ** | |
INFO: Running syntax check on openldap | |
INFO: No change in checksum of /Users/cwj/chef-repo/site-cookbooks/openldap/recipes/server.rb | |
INFO: No change in checksum of /Users/cwj/chef-repo/cookbooks/openldap/attributes/default.rb | |
INFO: No change in checksum of /Users/cwj/chef-repo/cookbooks/openldap/metadata.rb | |
INFO: No change in checksum of /Users/cwj/chef-repo/cookbooks/openldap/recipes/auth.rb | |
INFO: No change in checksum of /Users/cwj/chef-repo/cookbooks/openldap/recipes/client.rb | |
INFO: No change in checksum of /Users/cwj/chef-repo/cookbooks/openldap/recipes/default.rb |
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
# | |
# Author:: Joshua Timberman <[email protected]> | |
# Author:: Joshua Sierles <[email protected]> | |
# Cookbook Name:: chef | |
# Recipe:: manage_couchdb | |
# | |
# Copyright 2008-2009, Opscode, Inc | |
# Copyright 2009, 37signals | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); |
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
root@drtr:~# chef-client -l debug | |
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- rubygems/spec_fetcher (LoadError) | |
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require' | |
from /usr/lib/ruby/1.8/chef/provider/package/rubygems.rb:31 | |
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' | |
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require' | |
from /usr/lib/ruby/1.8/chef/providers.rb:57 | |
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' | |
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require' | |
from /usr/lib/ruby/1.8/chef.rb:25 |