From a2475b2cc66e04bdb47757f997f61ec0fc381b94 Mon Sep 17 00:00:00 2001 From: James Adams Date: Wed, 13 Jun 2018 14:50:49 +0100 Subject: [PATCH] ncm-sysconfig: Break apart schema for clarification * Add annotations based on paraphrased description from pod. --- .../src/main/pan/components/sysconfig/schema.pan | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ncm-sysconfig/src/main/pan/components/sysconfig/schema.pan b/ncm-sysconfig/src/main/pan/components/sysconfig/schema.pan index 92a02b0127..bf0877c1e4 100755 --- a/ncm-sysconfig/src/main/pan/components/sysconfig/schema.pan +++ b/ncm-sysconfig/src/main/pan/components/sysconfig/schema.pan @@ -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 `prologue` and `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;