8 Commits

Author SHA1 Message Date
Dalton Hubble
1ccee77050 api: Allow nested map[string]interface{} template data
* Support templating lists into Ignition (e.g. SSH authorized keys)
2016-02-05 15:12:23 -08:00
Dalton Hubble
76cec40b5a api: Add metadata endpoint with plain/text KEY=val's
* Show example with a custom metadata agent in Ignition
2016-01-31 01:13:53 -08:00
Dalton Hubble
481c99bf6a tests: Improve matcher and context handler test coverage 2016-01-15 18:05:07 -08:00
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
d9b5f10eb7 config: Require a -config file to run the api server
* Exit if no config file is supplied and the default doesn't exist
2016-01-14 16:16:37 -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
dae760e5bd api: Add Groups and GroupConfig with Requirements and Labels
* Add Group definitions to associate attribute matchers to particular
Spec specifications to supercede use of machine.json files
2016-01-07 14:35:36 -08:00