GithubHelp home page GithubHelp logo

Dependency is missing about zookeeper-cookbook HOT 4 CLOSED

spuder avatar spuder commented on September 28, 2024
Dependency is missing

from zookeeper-cookbook.

Comments (4)

jeffbyrnes avatar jeffbyrnes commented on September 28, 2024

I'll let @jakedavis speak up regarding using Vagrant on its own for testing this cookbook, but my encouragement would be to use Test Kitchen to test cookbooks.

This cookbook is really meant to be wrapped by a cookbook specific to your own needs, and that pattern is most easily followed by using Berkshelf (which this cookbook is set up to use).

I'd encourage installing the Chef DK to get all set up with Chef, Test Kitchen, Berkshelf, and a few other goodies to more easily test. You’ll still need Vagrant & VirtualBox/VMWare for local VMs, but it will drastically simplify things.

As an example, your wrapper cookbook would, at the very least, have a metadata.rb something like this:

name             'your_zookeeper'
maintainer       'You'
maintainer_email '[email protected]'
license          'All rights reserved'
description      'Installs/Configures zookeeper'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version          '1.0.0'

depends 'zookeeper',       '~> 2.5'

And a recipes/default.rb like this:

#
# Cookbook Name:: your_zookeeper
# Recipe:: default
#
# Copyright (C) 2015 You
#
# All rights reserved - Do Not Redistribute
#

include_recipe 'zookeeper::default'

You can also override attributes & other things, or even take advantage of the separate recipes available in this cookbook, or even utilize the resources this cookbook provides directly.

from zookeeper-cookbook.

jakedavis avatar jakedavis commented on September 28, 2024

+1 on TK and probably +1 on deprecating Vagrant.

from zookeeper-cookbook.

solarce avatar solarce commented on September 28, 2024

fwiw, I have a sample wrapper up at https://github.com/solarce/zk-wrapper

from zookeeper-cookbook.

spuder avatar spuder commented on September 28, 2024

Thanks, I am using test kitchen now.

Just realized that this cookbook comes from simple.com. I've been telling everyone about how awesome that bank is.

from zookeeper-cookbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.