[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
This commit is contained in:
egarette@silique.fr 2023-12-18 11:34:34 +01:00
parent 00a8e0fe00
commit 15f450a5ab

View file

@ -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 %}