Skip to content

englishm/chef_testing_example

 
 

Repository files navigation

Build Status

Chef Testing Example

DevOps West Michigan

Test cookbook that sets up Apache2 with mod_rewrite.

Supported Platforms

  • Ubuntu 14.04 LTS

Attributes

Key Type Description Default
['chef_testing_example']['hostname'] String FQDN Apache should respond to. true

Testing

Getting started...

  • bundle install

ChefSpec tests

  • bundle exec rake spec

Test-Kitchen w/Serverspec tests on local vagrant

  • bundle exec rake kitchen:all

Foodcritic linting

  • bundle exec rake foodcritic

Rubocop linting

  • bundle exec rake rubocop

Usage

chef_testing_example::default

Include chef_testing_example in your node's run_list:

{
  "run_list": [
    "recipe[chef_testing_example::default]"
  ]
}

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (i.e. add-new-recipe)
  3. Write your change
  4. Write tests for your change
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request

License and Authors

Author:: Justin Kulesza (justin.kulesza@atomicobject.com)

About

DevOps West Michigan: Test cookbook that sets up Apache2 with mod_rewrite.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors