A new variable which has the `boolean` type =============================================== .. objectives:: Objectives In this section we will learn: - how to make a boolean type variable .. prerequisites:: Reminders Let's summarize the configuration up to here Whe have the `proxy_mode` configuration here: .. extinclude:: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/v1.1_030/firefox/00-proxy.yml :language: yaml :caption: firefox/00-proxy.yml .. --- proxy_mode: description: Configure Proxy Access to the Internet choices: - No proxy - Auto-detect proxy settings for this network - Use system proxy settings - Manual proxy configuration - Automatic proxy configuration URL default: No proxy With the manual subfamily in case of the "Manual proxy configuration" configuration option has been chosen: .. extinclude:: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/v1.1_030/firefox/10-manual.yml :language: yaml :caption: firefox/10-manual.yml .. --- manual: description: Manual proxy configuration disabled: variable: proxy_mode when_not: 'Manual proxy configuration' http_proxy: description: HTTP Proxy address: description: HTTP address type: domainname params: allow_ip: true port: description: HTTP Port type: port default: 8080 .. type-along:: The HTTPS mode Now we will focus on configuring the HTTPS mode in case of "Manual proxy configuration". .. image:: images/firefox_manual_https.png Do we want to reuse, for the HTTPS mode, the same configuration as for the HTTP mode? A new `boolean` type variable ------------------------------- We have a new variable, named `use_for_https` here: .. confval:: use_for_https :type: `boolean` :default: `true` This is a setting that enables to reuse the HTTP proxy configuration for HTTPS Its description in the structure file gives us this: .. extinclude:: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/v1.1_030/firefox/20-manual.yml :language: yaml :caption: firefox/20-manual.yml .. --- manual: use_for_https: description: Also use this proxy for HTTPS type: boolean default: true