9 Commits

Author SHA1 Message Date
Dalton Hubble
bf72dde027 api: Convert handlers to ContextHandlers to isolate responsibility
* Add SpecMatcherHandler to match machine requests to Specs
2016-01-15 18:05:07 -08:00
Dalton Hubble
2dd017e850 api: Require "mac" matcher reqs to use normalized MAC addresses
* Cause a parse error if user defined matchers use a mac tag that is
not a normalized MAC address. This prevents users from silently defining
tags which will never match a machine.
* Fixes #25
2016-01-14 15:31:23 -08:00
Dalton Hubble
ccd3c7a839 api: Associate machines' attribute labels to specs by group matchers
* Use YAML group config to match machine labels to groups of zero or
more machines sharing a Specification
* Discontinue using machine.json resources representations which are
repetitive, don't support groups, and don't allow label matching
* Previous "default" special case now handled by a Group with an empty
matcher
2016-01-07 23:24:05 -08:00
Dalton Hubble
7482e94876 api: Allow default machine Spec selector
* Apply the data/machines/default/machine.json Spec to
machines which do not match any spec
2016-01-05 12:52:54 -08:00
Dalton Hubble
d880a332de api: Add API endpoint to provide ignition configs
* Add ignition_id field to Spec JSON schema
2016-01-04 15:19:06 -08:00
Dalton Hubble
50df3683cc Documentation: Update docs about the data directory
* Describe machine and spec resources
2015-12-31 15:16:33 -08:00
Dalton Hubble
72a782c4ef api: Use machine and spec resources to present cloud configs
* Change data/cloud directory to be a flat collection of cloud configs
2015-12-31 10:16:48 -08:00
Dalton Hubble
ca49ec6489 api: Use machine and spec resources to present boot scripts/JSON
* Discontinue using data/boot directory containing BootConfig JSON files
2015-12-30 17:42:09 -08:00
Dalton Hubble
16e9c7a773 api: Add machine and spec endpoints with FileStore backing 2015-12-30 16:50:52 -08:00