[tutorial Rougail 2.1] a choice option

Apero configuration
===================

Login is now mandatory
Use an existant user login

---
env_apero:
  access:
    - login: srep
      password: oIJuheu27__u2
    - login: snom
      password: oIJuheu27__u2
env_srep:
  apero_user: srep

Examples of Ops inventory file
==============================

1/ INVALID, use an unexisted user:

---
env_apero:
  access:
    - login: srep
      password: oIJuheu27__u2
    - login: snom
      password: oIJuheu27__u2
env_srep:
  apero_user: unknown
This commit is contained in:
egarette@silique.fr 2023-12-18 11:34:33 +01:00
parent 9d6cacfcf6
commit 0fbde320ae

View file

@ -14,9 +14,19 @@ env_apero:
The account name is typically the name of foreign services.
type: unix_user
multi: true
mandatory: false
test:
- srep
password:
description: Password
type: secret
env_srep:
description: SREP service
apero_user:
description: Account to access to Apero service
type: choice
choices:
type: variable
variable: socle.env_apero.access.login
test:
- srep