What is the currently-preferred cookbook skeleton generator?
Berkshelf, knife, ChefDK’s chef, and Test Kitchen each offers some
combination of skeleton cookbook generation and modification of a
cookbook for use with itself. Last time I created a new cookbook, I
walked clumsily through each, merging results until I had something that
seemed to be a reasonable combination of the various utilities’ actions.
What is the currently-preferred cookbook skeleton generator?
Berkshelf, knife, ChefDK's chef, and Test Kitchen each offers some
combination of skeleton cookbook generation and modification of a
cookbook for use with itself. Last time I created a new cookbook, I
walked clumsily through each, merging results until I had something that
seemed to be a reasonable combination of the various utilities' actions.
Most people seem to do what you did, check into a git repo then simply
clone that when they write new cookbooks.
On Aug 22, 2014 1:26 PM, "Phil Mocek" phil-lists@mocek.org wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
What is the currently-preferred cookbook skeleton generator?
Berkshelf, knife, ChefDK's chef, and Test Kitchen each offers some
combination of skeleton cookbook generation and modification of a
cookbook for use with itself. Last time I created a new cookbook, I
walked clumsily through each, merging results until I had something that
seemed to be a reasonable combination of the various utilities' actions.
I think the generators in chefdk are a good idea, but haven't had time to
build out something using them.
On Fri, Aug 22, 2014 at 11:53 AM, Sean Carolan scarolan@gmail.com wrote:
Most people seem to do what you did, check into a git repo then simply
clone that when they write new cookbooks.
On Aug 22, 2014 1:26 PM, "Phil Mocek" phil-lists@mocek.org wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
What is the currently-preferred cookbook skeleton generator?
Berkshelf, knife, ChefDK's chef, and Test Kitchen each offers some
combination of skeleton cookbook generation and modification of a
cookbook for use with itself. Last time I created a new cookbook, I
walked clumsily through each, merging results until I had something that
seemed to be a reasonable combination of the various utilities' actions.
I maintain meez which generates opinionated cookbook skeletons - GitHub - paulczar/meez: rubygem to set up opinionated TDD chef cookbook. The goal for it is to be able to run a rake test immediately after generating and have rubocop, foodcritic,
chefspec and TK/serverspec all run and pass on the initial empty cookbook.
there's a few gem dependecies that you have to fix manually right now with
chefdk 0.2 but it sets up and installs for TK, chefspec, serverspec, guard,
etc and dumps down some slightly modified templates for them.
Most people seem to do what you did, check into a git repo then simply
clone that when they write new cookbooks.
On Aug 22, 2014 1:26 PM, "Phil Mocek" phil-lists@mocek.org wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
What is the currently-preferred cookbook skeleton generator?
Berkshelf, knife, ChefDK's chef, and Test Kitchen each offers some
combination of skeleton cookbook generation and modification of a
cookbook for use with itself. Last time I created a new cookbook, I
walked clumsily through each, merging results until I had something that
seemed to be a reasonable combination of the various utilities' actions.
I maintain meez which generates opinionated cookbook skeletons - GitHub - paulczar/meez: rubygem to set up opinionated TDD chef cookbook. The goal for it is to be able to run
a rake test immediately after generating and have rubocop, foodcritic,
chefspec and TK/serverspec all run and pass on the initial empty cookbook.
there's a few gem dependecies that you have to fix manually right now with
chefdk 0.2 but it sets up and installs for TK, chefspec, serverspec, guard,
etc and dumps down some slightly modified templates for them.
Most people seem to do what you did, check into a git repo then simply
clone that when they write new cookbooks.
On Aug 22, 2014 1:26 PM, "Phil Mocek" phil-lists@mocek.org wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
What is the currently-preferred cookbook skeleton generator?
Berkshelf, knife, ChefDK's chef, and Test Kitchen each offers some
combination of skeleton cookbook generation and modification of a
cookbook for use with itself. Last time I created a new cookbook, I
walked clumsily through each, merging results until I had something that
seemed to be a reasonable combination of the various utilities' actions.
there's a few gem dependecies that you have to fix manually
right now with chefdk 0.2 but [meez] sets up and installs for
TK, chefspec, serverspec, guard, etc and dumps down some
slightly modified templates for them.
This looks great. Thanks for sharing it.
Can you offer suggestions for fixing those gem dependencies? I
get the following result with a newly-created cookbook:
$ bundle install
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "rspec":
In Gemfile:
serverspec (>= 1.10) ruby depends on
rspec (~> 2.99) ruby
chefspec (> 4) ruby depends on
rspec (3.0.0)
Unless I'm mistaken, if you're just using Serverspec as a TK
verification step you don't actually need the gem in your Gemfile.
It gets installed with the busser inside of the VM during the 'kitchen
verify' run.
If you're running Serverspec against infrastructure from your host
machine, then what I'm saying is totally wrong, but we just removed it
from our Gemfile for that very reason.
there's a few gem dependecies that you have to fix manually
right now with chefdk 0.2 but [meez] sets up and installs for
TK, chefspec, serverspec, guard, etc and dumps down some
slightly modified templates for them.
This looks great. Thanks for sharing it.
Can you offer suggestions for fixing those gem dependencies? I
get the following result with a newly-created cookbook:
$ bundle install
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "rspec":
In Gemfile:
serverspec (>= 1.10) ruby depends on
rspec (~> 2.99) ruby
chefspec (> 4) ruby depends on
rspec (3.0.0)
there's a few gem dependecies that you have to fix manually
right now with chefdk 0.2 but [meez] sets up and installs for
TK, chefspec, serverspec, guard, etc and dumps down some
slightly modified templates for them.
This looks great. Thanks for sharing it.
Can you offer suggestions for fixing those gem dependencies? I
get the following result with a newly-created cookbook:
$ bundle install
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "rspec":
In Gemfile:
serverspec (>= 1.10) ruby depends on
rspec (~> 2.99) ruby
chefspec (> 4) ruby depends on
rspec (3.0.0)