Skip to content

Latest commit

 

History

History
43 lines (22 loc) · 889 Bytes

README.md

File metadata and controls

43 lines (22 loc) · 889 Bytes

jarbas

A rather opinionated cookbook to provision and configure workstations

Pre-requisites

  • git: To checkout the repo
  • chef-workstation: Need chef-client and chef

How to use

Run the converge script to execute the entire setup

$ ./bin/converge.sh

Named run lists can be executed by passing the name as the first positional parameter

$ ./bin/converge.sh aws

After the first setup, converge.sh is aliased to j, so the above can be used as

$ j aws

Custom attributes

Node attributes are set on ${HOME}/.jarbas.json. This file will be created on the first run if not found.

To run additional recipes override jarbas['recipes'] with a list of any recipes you want to run on the node.

Testing

Unit

RSpec is used for unit tests.

$ chef exec rspec

Integration

Test kitchen is used for integration tests.

$ kitchen test