diff --git a/seed/forgejo-formation/README.md b/seed/forgejo-formation/README.md index 4432c98..105c31a 100644 --- a/seed/forgejo-formation/README.md +++ b/seed/forgejo-formation/README.md @@ -33,12 +33,18 @@ Formation in Forgejo. ### Général (*general*) +#### network (*general.network*) + +| Description | Values | +|-----------------------------------------------------|----------| +| *[**incoming_ports**](dictionaries/32_forgejo.yml)* | 3333 | + #### forgejo (*general.forgejo*) | 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) | -| **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) | +| **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.yml)*) | [mail](https://forge.cloud.silique.fr/risotto/rougail/src/branch/main/doc/variable/README.md#le-type-de-la-variable) | - [+]: variable is multiple diff --git a/seed/forgejo-formation/dictionaries/32_forgejo.xml b/seed/forgejo-formation/dictionaries/32_forgejo.xml deleted file mode 100644 index 62cbaed..0000000 --- a/seed/forgejo-formation/dictionaries/32_forgejo.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 3333 - - - - - - - - - - domain_name_eth0 - forgejo_user - forgejo - cleartext - hide_secret - forgejo_password - - - diff --git a/seed/forgejo-formation/dictionaries/32_forgejo.yml b/seed/forgejo-formation/dictionaries/32_forgejo.yml new file mode 100644 index 0000000..ae69f21 --- /dev/null +++ b/seed/forgejo-formation/dictionaries/32_forgejo.yml @@ -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