xml to yml

This commit is contained in:
egarette@silique.fr 2023-02-14 10:39:48 +01:00
parent 5f0b99ef19
commit 5c4382d386
3 changed files with 52 additions and 27 deletions

View file

@ -33,12 +33,18 @@ Formation in Forgejo.
### Général (*general*) ### Général (*general*)
#### network (*general.network*)
| Description | Values |
|-----------------------------------------------------|----------|
| *[**incoming_ports**](dictionaries/32_forgejo.yml)* | 3333 |
#### forgejo (*general.forgejo*) #### forgejo (*general.forgejo*)
| Description | Type | | Description | Type |
|-------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------| |-------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|
| **Utilisateur de type admin** (*[forgejo_user](dictionaries/32_forgejo.xml)*) | [unix_user](https://forge.cloud.silique.fr/risotto/rougail/src/branch/main/doc/variable/README.md#le-type-de-la-variable) | | **Utilisateur de type admin** (*[forgejo_user](dictionaries/32_forgejo.yml)*) | [unix_user](https://forge.cloud.silique.fr/risotto/rougail/src/branch/main/doc/variable/README.md#le-type-de-la-variable) |
| **Courriel de l'admin** (*[forgejo_email](dictionaries/32_forgejo.xml)*) | [mail](https://forge.cloud.silique.fr/risotto/rougail/src/branch/main/doc/variable/README.md#le-type-de-la-variable) | | **Courriel de l'admin** (*[forgejo_email](dictionaries/32_forgejo.yml)*) | [mail](https://forge.cloud.silique.fr/risotto/rougail/src/branch/main/doc/variable/README.md#le-type-de-la-variable) |
- [+]: variable is multiple - [+]: variable is multiple

View file

@ -1,25 +0,0 @@
<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
<variables>
<family name="network">
<variable name="incoming_ports" redefine="True">
<value>3333</value>
</variable>
</family>
<family name="forgejo">
<variable name="forgejo_user" type="unix_user" description="Utilisateur de type admin" mandatory="True"/>
<variable name="forgejo_email" type="mail" description="Courriel de l'admin" mandatory="True"/>
<variable name="forgejo_password" type="password" hidden="True" mandatory="True"/>
</family>
</variables>
<constraints>
<fill name="get_password">
<param name="server_name" type="variable">domain_name_eth0</param>
<param name="username" type="variable">forgejo_user</param>
<param name="description">forgejo</param>
<param name="type">cleartext</param>
<param name="hide" type="variable">hide_secret</param>
<target>forgejo_password</target>
</fill>
</constraints>
</rougail>

View file

@ -0,0 +1,44 @@
version: '0.10'
variables:
- family:
- name: network
variables:
- variable:
- name: incoming_ports
redefine: true
value:
- text: 3333
- name: forgejo
variables:
- variable:
- name: forgejo_user
type: unix_user
description: Utilisateur de type admin
mandatory: true
- name: forgejo_email
type: mail
description: Courriel de l'admin
mandatory: true
- name: forgejo_password
type: password
hidden: true
mandatory: true
constraints:
- fill:
- name: get_password
param:
- type: variable
name: server_name
text: domain_name_eth0
- type: variable
name: username
text: forgejo_user
- name: description
text: forgejo
- name: type
text: cleartext
- name: hide
type: variable
text: hide_secret
target:
- text: forgejo_password