From d8a4d6d99171a1b6e5d6a1c2d0deb20c0b9fb7b7 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..fef010e087 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 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;