From 0fbde320ae862ec1036588fa21dbfa34ace5279a Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 18 Dec 2023 11:34:33 +0100 Subject: [PATCH] [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 --- Rougail/socle/04-apero.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Rougail/socle/04-apero.yml b/Rougail/socle/04-apero.yml index c1c2465..49d92d1 100644 --- a/Rougail/socle/04-apero.yml +++ b/Rougail/socle/04-apero.yml @@ -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