rougail-tutorials/Rougail/socle/05-omogen.yml
Emmanuel Garette 15f450a5ab [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
2023-12-18 11:34:34 +01:00

15 lines
391 B
YAML

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