Skip to content

Commit

Permalink
ncm-sysconfig: Break apart schema for clarification
Browse files Browse the repository at this point in the history
* Add annotations based on paraphrased description from pod.
  • Loading branch information
jrha committed Jun 13, 2018
1 parent ae9f169 commit d8a4d6d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion ncm-sysconfig/src/main/pan/components/sysconfig/schema.pan
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,20 @@ declaration template components/sysconfig/schema;

include 'quattor/schema';

@documentation{
Contents of a sysconfig file modelled as a dict of key-value pairs.
Two reserved keys C<< prologue >> and C<< epilogue >> are treated specially,
their values will be copied verbatim into the file before or after the key-pair definitions.
}
type component_sysconfig_file = string(1..){};

type component_sysconfig = {
include structure_component
'files' ? string(1..){}{}
@{
dict of dicts with a file name as the first key and the contents of each file as the child dict.
}
'files' ? component_sysconfig_file{}
};

bind '/software/components/sysconfig' = component_sysconfig;

0 comments on commit d8a4d6d

Please sign in to comment.