Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lvnilesh/4238887 to your computer and use it in GitHub Desktop.
Save lvnilesh/4238887 to your computer and use it in GitHub Desktop.
knife cookbook bulk delete '.*' -p
1021 rberger $ knife cookbook bulk delete '.*' -p -c ~/.chef.production/knife.rb
[
"activemq",
"apache2",
"apparmor",
"application",
"apt",
"aws",
"boost",
"bootstrap",
"build-essential",
"capistrano",
"chef",
"chef_admin_proxy_server",
"chef_aux",
"cloudkick",
"couchdb",
"cron",
"database",
"django",
"djbdns",
"drbd",
"dynect",
"dynomite",
"ec2",
"emacs",
"enable_chef_admin_access",
"erlang",
"fail2ban",
"gems",
"git",
"glassfish",
"god",
"hadoop",
"hadoop_cloudera_c3",
"haproxy",
"hbase",
"heartbeat",
"imagemagick",
"instiki",
"iptables",
"java",
"java_sun",
"jira",
"jruby",
"keepalived",
"kickstart",
"leiningen",
"logrotate",
"logwatch",
"lvm",
"man",
"maradns",
"memcached",
"mercurial",
"monitoring",
"munin",
"mysql",
"nagios",
"nanite",
"nginx",
"nscd",
"ntp",
"octopussy",
"ohai",
"openldap",
"openssh",
"openssl",
"openvpn",
"packages",
"pacman",
"passenger_apache2",
"passenger_enterprise",
"perl",
"php",
"postfix",
"postgresql",
"production",
"python",
"quick_start",
"rabbitmq",
"rabbitmq_chef",
"radiant",
"rails",
"rails_enterprise",
"redmine",
"reprepro",
"resolver",
"riak",
"rsync",
"rsyslog",
"ruby",
"ruby_enterprise",
"rubygems",
"runa_base",
"runa_redis",
"runit",
"rush",
"samba",
"sbuild",
"scout_agent",
"screen",
"solr",
"sqlite",
"ssh_known_hosts",
"staging",
"stompserver",
"subversion",
"sudo",
"swarm",
"teamspeak",
"teamspeak3",
"test",
"thrift",
"tmux",
"tomcat6",
"trac",
"ubuntu",
"ulimits",
"unicorn",
"users",
"varnish",
"vim",
"wordpress",
"xfs",
"xml",
"zlib",
"zsh"
]
Do you really want to delete these cookbooks? All versions will be deleted. (Y/N) y
Files that are common to multiple cookbooks are shared, so purging the files may disable other cookbooks. Are you sure you want to purge files instead of just deleting the cookbooks? (Y/N) y
INFO: Deleted cookbook apt [0.9.1]
INFO: Deleted cookbook rabbitmq [0.2.2]
WARN: HTTP Request Returned 500 Internal Server Error: Cannot find checksum 6551e94b1c34e20dd286bff31d7e66ad in CouchDB!
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:2097:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError)
from /Library/Ruby/Gems/1.8/gems/chef-0.9.10/lib/chef/rest.rb:233:in `api_request'
from /Library/Ruby/Gems/1.8/gems/chef-0.9.10/lib/chef/rest.rb:284:in `retriable_rest_request'
from /Library/Ruby/Gems/1.8/gems/chef-0.9.10/lib/chef/rest.rb:214:in `api_request'
from /Library/Ruby/Gems/1.8/gems/chef-0.9.10/lib/chef/rest.rb:116:in `delete_rest'
from /Library/Ruby/Gems/1.8/gems/chef-0.9.10/lib/chef/knife/cookbook_bulk_delete.rb:51:in `run'
from /Library/Ruby/Gems/1.8/gems/chef-0.9.10/lib/chef/knife/cookbook_bulk_delete.rb:50:in `each'
from /Library/Ruby/Gems/1.8/gems/chef-0.9.10/lib/chef/knife/cookbook_bulk_delete.rb:50:in `run'
from /Library/Ruby/Gems/1.8/gems/chef-0.9.10/lib/chef/knife/cookbook_bulk_delete.rb:48:in `each'
from /Library/Ruby/Gems/1.8/gems/chef-0.9.10/lib/chef/knife/cookbook_bulk_delete.rb:48:in `run'
from /Library/Ruby/Gems/1.8/gems/chef-0.9.10/lib/chef/knife.rb:127:in `run'
from /Library/Ruby/Gems/1.8/gems/chef-0.9.10/lib/chef/application/knife.rb:121:in `run'
from /Library/Ruby/Gems/1.8/gems/chef-0.9.10/bin/knife:25
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment