This repo contains configuration files which are replicated to and
automatically updated on every OCF host at /etc/ocf/
. Configuration files are
written in YAML and have schemas defined in the schemas
folder.
To validate the files, simply run:
make
To add a new configuration file:
- Create the data file (
configs/yourconfig.yaml
). - Create the schema file (
schemas/yourconfig.schema.json
). - Add your file to
configs/validate.yaml
, and associate it with its schema. - Commit changes to this repo
- Add ocflib functions to read your config file
- Add tests in this repo that ensure the ocflib functions won't throw exceptions.