From 15f450a5ab0610a64fa8f6dd8a841689384d5f61 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 18 Dec 2023 11:34:34 +0100 Subject: [PATCH] [tutorial Rougail 3.0] a validator OMOGEN configuration ==================== Ask the keystore filename. This file must has jks extension. --- env_omogen: keystore: filename.jks Examples of Ops inventory file ============================== 1/ INVALID: --- env_omogen: keystore: filename.txt --- Rougail/socle/05-omogen.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Rougail/socle/05-omogen.yml diff --git a/Rougail/socle/05-omogen.yml b/Rougail/socle/05-omogen.yml new file mode 100644 index 0000000..c15360e --- /dev/null +++ b/Rougail/socle/05-omogen.yml @@ -0,0 +1,15 @@ +--- +version: '1.0' +env_omogen: + description: Configure OMOGEN + keystore: + description: Keystore filename to access to OMOGEN + help: This filename must ends with "kjs" extension + test: + - java.jks + validators: + - type: jinja + jinja: | + {% if not socle.env_omogen.keystore.endswith('.jks') %} + the extension must be "jks" + {% endif %}