This commit is contained in:
gwen 2025-12-04 19:30:01 +01:00
parent 921fc0f481
commit b437572de9
2 changed files with 5 additions and 7 deletions

View file

@ -3,8 +3,9 @@ Some suitable types
.. objectives:: Objectives
There aren't just the basic available types such as `string`, `integer` or `boolean`,
that are some much more suited to our use case, such as `domainname` or `port`.
There isn't just the basic `string` available type, here we will discover new
variable types, for example the `boolean` type, and even types that are much more
suited to our use case, such as `domainname` or `port`.
.. prerequisites:: Prerequisites

View file

@ -34,7 +34,7 @@ We have this choice variable in its structure definition file:
.. extinclude:: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/v1.1_010/firefox/00-proxy.yml
:linenos:
:language: yaml
:caption: The `proxy_mode` choice type variable in the :file:`firefox/00-proxy.yml` structure file
:caption: The `proxy_mode` choice variable in the :file:`firefox/00-proxy.yml` structure file
..
---
@ -173,7 +173,6 @@ This time, the type of this new variable is a `domainname` type:
address:
description: HTTP address
type: domainname
:tutorial:`Download this file from the rougail-tutorials git repository <src/tag/v1.1_022/firefox/10-manual.yml>`
@ -182,7 +181,6 @@ Now that the :confval:`address` variable is declared, the :term:`operator` can s
In short, let's describe our `address` variable like this:
.. confval:: address
:type: `domainname`
:default: None
This is the HTTP address of the proxy
@ -259,7 +257,7 @@ Let's recap about the user datas. We can see in this Rougail CLI output that:
- the `proxy_mode` value is set by default by the :term:`integrator`
- the `address` value is has been set by an :term:`operator`
.. type-along:: A second variable in the `http_proxy` family
.. type-along:: A `port` variable in the `http_proxy` family
Now let's add a `port` variable in the `http_proxy` family:
@ -289,7 +287,6 @@ Now let's add a `port` variable in the `http_proxy` family:
In short:
.. confval:: port
:type: `port`
:default: 8080
The HTTP Port