8000 GitHub - sh9189/spoon: Chef Server API client written in Clojure.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sh9189/spoon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-spoon

Build Status

Chef Server API client written in Clojure.

Usage

When using the lein repl a default environment is set up based on your current username and home directory. These can be overriden using environment variables (CHEF_SERVER_HOST, CHEF_CLIENT_NAME and CHEF_CLIENT_KEY).

user=> (println *client-info*)
{:chef-host manage.chef.io, :client-name jbellone, :client-key /Users/jbellone/.chef/jbellone.pem}
nil

If you have an on-premises Chef Server you are going to need to override the client information. For example, let's assume that the Chef Server API that we're operating on is located at chef.internal.corporate.com. We are able to override the host in three ways:

  1. Set the environment variable CHEF_SERVER_HOST prior to running the lein repl command.
  2. Set the :chef-server-host in our Clojure development profile.
  3. Use the Clojure macro with-chef-server which overrides only the :chef-server-host key in the client-info object.

About

Chef Server API client written in Clojure.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 99.3%
  • Ruby 0.7%
0