goiardi

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2013 License: Apache-2.0 Imports: 21 Imported by: 0

README

Goiardi

Goiardi is a simple implementation of the Chef server (http://www.opscode.com) written in Go. It currently runs entirely in memory, and draws heavy inspiration from chef-zero.

It is very much a work in progress. At the moment basic functionality as tested with knife works, and chef-client runs complete successfully. It is far enough along to run chef-pendant tests, even though it fails most of them.

DEPENDENCIES

Goiardi currently only has three dependencies: go-flags, go-cache, and go-trie. To install them, run:

   go get github.com/jessevdk/go-flags
   go get github.com/pmylund/go-cache
   go get github.com/ctdk/go-trie

from your $GOROOT.

If you would like to modify the search grammar, you'll need the peg package. To install that, run

   go get github.com/pointlander/peg

In the search/ directory, run peg -switch -inline search-parse.peg to generate the new grammar. If you don't plan on editing the search grammar, though, you won't need that.

INSTALLATION

  1. Install go. (http://golang.org/doc/install.html)

  2. Make sure your $GOROOT and PATH are set up correctly per the Go installation instructions.

  3. Download goairdi

   go get github.com/ctdk/goiardi
  1. Run tests, as soon as there are tests to run.

  2. Install the goiardi binaries.

   go install github.com/ctdk/goiardi
  1. Run goiardi.
   goiardi <options>

You can get a list of current options with the '-h' flag. Some of them may even work. As of this writing you can specify the hostname, IP address, and port goiardi uses and have it actually do something useful.

For more documentation on Chef, see (http://docs.opscode.com).

Goiardi does not actually care about .pem files at all at the moment, but you still need to have one to keep knife and chef-client happy. It's like chef-zero in that regard.

TODO

See the TODO file for an up-to-date list of what needs to be done. There's a lot.

BUGS

There's going to be a lot of these for a while, so we'll just keep those in a BUGS file, won't we?

WHY?

This started as a project to learn Go, and because I thought that an in memory chef server would be handy. Then I found out about chef-zero, but I still wanted a project to learn Go, so I kept it up. Chef 11 Server also only runs under Linux at this time, while Goiardi is developed under Mac OS X and ought to run under any platform Go supports (this is completely untested at this time though).

CONTRIBUTING

If you feel like contributing, great! Just fork the repo, make your improvements, and submit a pull request. Tests would, of course, be appreciated. Adding tests where there are no tests currently would be even more appreciated. At least, though, try and not break anything worse than it is. Test coverage is an ongoing concern.

AUTHOR

Jeremy Bingham (jbingham@gmail.com)

Copyright 2013, Jeremy Bingham

LICENSE

Like many Chef ecosystem programs, goairdi is licensed under the Apache 2.0 License. See the LICENSE file for details.

Chef is copyright (c) 2008-2013 Opscode, Inc. and its various contributors.

Thanks go out to the fine folks of Opscode and the Chef community for all their hard work.

Also, if you were wondering, Ettore Boiardi was the man behind Chef Boyardee. Wakka wakka.

Documentation

Overview

Goiardi is a simple implementation of the Chef server (http://www.opscode.com) written in Go. It currently runs entirely in memory, and draws heavy inspiration from chef-zero.

It is very much a work in progress. At the moment basic functionality as tested with knife works, and chef-client runs complete successfully. It is far enough along to run chef-pendant tests, even though it fails most of them.

Goiardi currently only has three dependencies: go-flags, go-cache, and go-trie. To install them, run:

go get github.com/jessevdk/go-flags
go get github.com/pmylund/go-cache
go get github.com/ctdk/go-trie

from your $GOROOT.

If you would like to modify the search grammar, you'll need the 'peg' package. To install that, run

go get github.com/pointlander/peg

In the 'search/' directory, run 'peg -switch -inline search-parse.peg' to generate the new grammar. If you don't plan on editing the search grammar, though, you won't need that.

To install:

1. Install go. (http://golang.org/doc/install.html)

  1. Make sure your $GOROOT and PATH are set up correctly per the Go installation instructions.

3. Download goairdi

go get github.com/ctdk/goiardi

4. Run tests, as soon as there are tests to run.

5. Install the goiardi binaries.

go install github.com/ctdk/goiardi

6. Run goiardi.

goiardi <options>

You can get a list of current options with the '-h' flag. Some of them may
even work. As of this writing you can specify the hostname, IP address, and
port goiardi uses and have it actually do something useful.

For more documentation on Chef, see http://docs.opscode.com.

Goiardi does not actually care about .pem files at all at the moment, but you still need to have one to keep knife and chef-client happy. It's like chef-zero in that regard.

To do:

See the TODO file for an up-to-date list of what needs to be done. There's a lot.

Bugs:

There's going to be a lot of these for a while, so we'll just keep those in a BUGS file, won't we?

Why?:

This started as a project to learn Go, and because I thought that an in memory chef server would be handy. Then I found out about chef-zero, but I still wanted a project to learn Go, so I kept it up. Chef 11 Server also only runs under Linux at this time, while Goiardi is developed under Mac OS X and ought to run under any platform Go supports (this is completely untested at this time though).

If you feel like contributing, great! Just fork the repo, make your improvements, and submit a pull request. Tests would, of course, be appreciated. Adding tests where there are no tests currently would be even more appreciated. At least, though, try and not break anything worse than it is. Test coverage is an ongoing concern.

Goiardi is authored and copyright (c) Jeremy Bingham, 2013. Like many Chef ecosystem programs, goairdi is licensed under the Apache 2.0 License. See the LICENSE file for details.

Chef is copyright (c) 2008-2013 Opscode, Inc. and its various contributors.

Thanks go out to the fine folks of Opscode and the Chef community for all their hard work.

Also, if you were wondering, Ettore Boiardi was the man behind Chef Boyardee. Wakka wakka.

Directories

Path Synopsis
Package actor in goiardi encompasses both Chef clients and users.
Package actor in goiardi encompasses both Chef clients and users.
Package chef_crypto bundles up crytographic routines for goairdi.
Package chef_crypto bundles up crytographic routines for goairdi.
Package cookbook handles the basic building blocks of any chef (or goiardi) run, the humble cookbook.
Package cookbook handles the basic building blocks of any chef (or goiardi) run, the humble cookbook.
Data bags provide a convenient way to store arbitrary data on the server.
Data bags provide a convenient way to store arbitrary data on the server.
Data store functionality.
Data store functionality.
Index objects that implement the Indexable interface.
Index objects that implement the Indexable interface.
Parse Solr queries with the PEG generated from 'search/search-parse.peg', located in search-parse.peg.go.
Parse Solr queries with the PEG generated from 'search/search-parse.peg', located in search-parse.peg.go.
Package util contains various utility functions that are useful across all of goiardi.
Package util contains various utility functions that are useful across all of goiardi.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL