Skip to content

Instantly share code, notes, and snippets.

@coderforhire
Created October 10, 2012 00:24
Show Gist options
  • Save coderforhire/3862385 to your computer and use it in GitHub Desktop.
Save coderforhire/3862385 to your computer and use it in GitHub Desktop.
if RAILS_ENV == 'production'
Spice.setup do |s|
s.server_url = "http://chef.cloudpokerdb.com:4000"
s.client_name = "cloudpokerdb-webserver"
s.client_key = Spice.read_key_file("/etc/chef/client.pem")
s.chef_version = "0.10.14"
end
else
Spice.setup do |s|
s.server_url = "http://chef.cloudpokerdb.com:4000"
s.client_name = "anthony_home"
s.client_key = Spice.read_key_file("/home/anthony/.chef/cloudpoker_anthony_home.pem")
s.chef_version = "0.10.14"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment