Name: chef-particle-base
Owner: Particle
Description: An Official opinionated Particle Cookbook used to install useful tools for interacting with Particle Devices and the Particle Cloud
Created: 2015-11-05 17:21:48.0
Updated: 2016-10-28 20:40:53.0
Pushed: 2018-01-03 18:18:03.0
Size: 552
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Installs/Configures useful command line tools for programming, testing, and interacting with Particle Devices (https://www.particle.io). By design it's meant to AS MINIMAL AS POSSIBLE so it can serve as a minimal base for other Particle chef cookbooks in a variety of compute contexts.
There are several hard and fast rules of what can go in this cookbook to keep it minimal:
$PATH
Cookbooks that build on this should:
/opt/particle-base
aka node['particle_base']['dir']/my-infrastructure-thing
[x] Provide a useful base for doing continuous integration against Particle Delivery on distributed RPis.
[x] Install a known to work version of particle-cli for target OS
[ ] Install programming tools like openocd + stlink with helper scripts for particle devices
These guides describe how to configure a machine from a binary OS image distribution into something that can run this cookbook to take it the rest of the way.
curl -sSL https://raw.githubusercontent.com/spark/chef-particle-base/master/bootstrap.bash | sudo bash
This will git clone this repo to the machine, build, and install modern Ruby and Chef.
sudo bash /opt/particle-base/bin/update-and-converge
Standard GitHub flow style: Discuss via GH Issues, PR with passing tests, Merging, and all that.
Development is done with ChefDK:
chef exec foodcritic .
chef exec rspec
kitchen verify
(todo; set up something using inspec)