choice
This commit is contained in:
parent
921fc0f481
commit
b437572de9
2 changed files with 5 additions and 7 deletions
|
|
@ -3,8 +3,9 @@ Some suitable types
|
||||||
|
|
||||||
.. objectives:: Objectives
|
.. objectives:: Objectives
|
||||||
|
|
||||||
There aren't just the basic available types such as `string`, `integer` or `boolean`,
|
There isn't just the basic `string` available type, here we will discover new
|
||||||
that are some much more suited to our use case, such as `domainname` or `port`.
|
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
|
.. prerequisites:: Prerequisites
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
.. extinclude:: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/v1.1_010/firefox/00-proxy.yml
|
||||||
:linenos:
|
:linenos:
|
||||||
:language: yaml
|
: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:
|
address:
|
||||||
description: HTTP 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>`
|
: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:
|
In short, let's describe our `address` variable like this:
|
||||||
|
|
||||||
.. confval:: address
|
.. confval:: address
|
||||||
:type: `domainname`
|
|
||||||
:default: None
|
:default: None
|
||||||
|
|
||||||
This is the HTTP address of the proxy
|
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 `proxy_mode` value is set by default by the :term:`integrator`
|
||||||
- the `address` value is has been set by an :term:`operator`
|
- 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:
|
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:
|
In short:
|
||||||
|
|
||||||
.. confval:: port
|
.. confval:: port
|
||||||
:type: `port`
|
|
||||||
:default: 8080
|
:default: 8080
|
||||||
|
|
||||||
The HTTP Port
|
The HTTP Port
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue