Revisions
-
jbz revised this gist
Feb 16, 2011 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ # This knife.rb orig. provided by [email protected] - but any mistakes are mine! current_dir = File.dirname(__FILE__) platform = "https://api.opscode.com/organizations" -
jbz revised this gist
Feb 16, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -24,7 +24,7 @@ log_location STDOUT node_name "<<username>>" client_key "#{current_dir}/<<username>>.pem" validation_client_name "#{orgname}-validator" cache_type 'BasicFile' cache_options( :path => "#{ENV['HOME']}/.chef/checksums" ) cookbook_path ["#{current_dir}/../cookbooks"] -
jbz revised this gist
Feb 16, 2011 . 1 changed file with 1 addition and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,19 +8,16 @@ case branch when "dev" orgname = "ourfirm-dev" url = "#{platform}/#{orgname}" when "test" orgname = "ourfirm-test" url = "#{platform}/#{orgname}" when "production" orgname = "ourfirm-production" url = "#{platform}/#{orgname}" end validation_key "#{current_dir}/#{orgname}-validator.pem" chef_server_url url log_level :info -
jbz created this gist
Feb 16, 2011 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,37 @@ current_dir = File.dirname(__FILE__) platform = "https://api.opscode.com/organizations" require 'grit' branch = Grit::Repo.new("#{current_dir}/..").head.name case branch when "dev" orgname = "ourfirm-dev" validator = "#{orgname}-" url = "#{platform}/#{orgname}" when "test" orgname = "ourfirm-test" validator = "#{orgname}-" url = "#{platform}/#{orgname}" when "production" orgname = "ourfirm-production" validator = "#{orgname}-" url = "#{platform}/#{orgname}" end validation_key "#{current_dir}/#{validator}validator.pem" chef_server_url url log_level :info log_location STDOUT node_name "<<username>>" client_key "#{current_dir}/<<username>>.pem" validation_client_name "#{validator}validator" cache_type 'BasicFile' cache_options( :path => "#{ENV['HOME']}/.chef/checksums" ) cookbook_path ["#{current_dir}/../cookbooks"] cookbook_copyright "Our Company, Inc." cookbook_license "apachev2" cookbook_email "[email protected]"