[tutorial Rougail 1.4] a variable with multiple values

Proxy configuration
===================

Add env_proxy.no_proxy for proxy exception

---
env_proxy:
  host: proxy.example.net
  no_proxy:
    - localhost
    - 192.168.1.1
    - .ac-dijon.fr

Examples of Ops inventory file
==============================

1/ INVALID, must be a list:

---
env_proxy:
  host: proxy.example.net
  no_proxy: localhost

2/ INVALID, an integer:

---
env_proxy:
  host: proxy.example.net
  no_proxy:
    - 1

3/ INVALID, without value:

---
env_proxy:
  host: proxy.example.net
This commit is contained in:
egarette@silique.fr 2023-12-18 11:34:31 +01:00
parent d1a9c3321c
commit 069582559d

View file

@ -20,3 +20,20 @@ env_proxy:
description: The proxy server's port
type: port
default: "3128"
no_proxy:
description: Exclude proxy server
help: |
Network address(es), network address range(s) and domains to exclude from
using the proxy when initiating connection(s).
type: "domainname"
params:
allow_ip: true
allow_cidr_network: true
allow_without_dot: true
allow_startswith_dot: true
multi: true
test:
- 192.168.1.1
- 192.168.10.0/24
- www.silique.fr
- .internal.silique.fr