Comments (4)
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.
+1 on TK and probably +1 on deprecating Vagrant.
from zookeeper-cookbook.
fwiw, I have a sample wrapper up at https://github.com/solarce/zk-wrapper
from zookeeper-cookbook.
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)
- Upstart services fail to start zookeeper HOT 8
- Question about your pinning strategy HOT 2
- link logic for ZK not working. HOT 1
- No way to set Java Opts? HOT 2
- service[zookeeper] cannot be found in the resource collection. HOT 10
- cookbook dependancies in the metadata HOT 4
- Support "package" install style HOT 4
- Make the defaults for install_dir consistent across resources HOT 1
- Checksum has not changed with 3.4.9 update HOT 1
- Any feedback with ZK 3.5.2 dynamic configuration ? HOT 3
- Zookeeper sysv script
- How to run ZooKeeper as a service HOT 1
- Support Ubuntu 16.04 HOT 3
- support direct link to tar for download path HOT 2
- zookeeper-3.5.3-beta artifact breaks due to (lack of) gzip compression HOT 3
- 2.6.0 version error using chef-client 12 HOT 2
- MYID HOT 4
- Passing java options with special characters has unexpected output HOT 6
- Default install fails with failure to download Zookeeper 3.4.12 HOT 2
- Inconsistency in username properties across resources HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zookeeper-cookbook.