项目作者: zuazo

项目描述 :
A Chef Cookbook for testing CHEF-3029 ifconfig ticket.
高级语言: Ruby
项目地址: git://github.com/zuazo/chef3029-cookbook.git
创建时间: 2013-06-12T17:43:16Z
项目社区:https://github.com/zuazo/chef3029-cookbook

开源协议:

下载


CHEF-3029 Cookbook

This is a cookbook for testing the following Opscode ticket:

It tests the ifconfig resource against Debian and Ubuntu using test-kitchen.

The vagrant boxes are publicly downloadable, see the kitchen.yml file. This boxes have a non-stable version of Chef 11.4.0 from the last Pull Request on the ticket (2013-05-24).

It is recommended to look at the used recipe and the tests.

Tested Platforms

This version of Chef has been tested in the following platforms using this cookbook:

  • Debian 6.0.7 (ifconfig resource NOT supported)
  • Debian 7.0.0
  • Ubuntu 10.04 (ifconfig resource NOT supported)
  • Ubuntu 11.10
  • CentOS 6.4

Requirements

nil

Usage

This cookbook is aimed to be used with test-kitchen for testing the ifconfig resource.

  1. $ kitchen list
  2. Instance Last Action
  3. default-debian6-chef3029 <Not Created>
  4. default-debian7-chef3029 <Not Created>
  5. default-ubuntu10-chef3029 <Not Created>
  6. default-ubuntu11-chef3029 <Not Created>
  7. default-centos6-chef3029 <Not Created>
  1. $ kitchen verify
  2. -----> Starting Kitchen (v1.0.0.alpha.7)
  3. # [...]
  1. Instance Last Action
  2. default-debian6-chef3029 Verified
  3. default-debian7-chef3029 Verified
  4. default-ubuntu10-chef3029 Verified
  5. default-ubuntu11-chef3029 Verified
  6. default-centos6-chef3029 Verified

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write you change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Author

Author: Xabier de Zuazo (xabier@onddo.com)
Copyright: Copyright (c) 2013 Onddo Labs, SL. (www.onddo.com)
License: Apache License, Version 2.0

Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  1. http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.