1 # @summary Configures Apt to connect to a proxy server.
4 # Specifies whether the proxy should exist. Valid options: 'file', 'present', and 'absent'. Prefer 'file' over 'present'.
7 # Specifies a proxy host to be stored in `/etc/apt/apt.conf.d/01proxy`. Valid options: a string containing a hostname.
10 # Specifies a proxy port to be stored in `/etc/apt/apt.conf.d/01proxy`. Valid options: an integer containing a port number.
13 # Specifies whether to enable https proxies.
16 # Specifies whether or not to use a `DIRECT` https proxy if http proxy is used but https is not.
18 type Apt::Proxy = Struct[
20 ensure => Optional[Enum['file', 'present', 'absent']],
21 host => Optional[String],
22 port => Optional[Integer[0, 65535]],
23 https => Optional[Boolean],
24 direct => Optional[Boolean],