Release prep v9.1.0
[puppet-modules/puppetlabs-apt.git] / types / proxy_per_host.pp
1 # @summary Adds per-host overrides to the system default APT proxy configuration
2 #
3 # @param scope
4 #   Specifies the scope of the override.  Valid options: a string containing a hostname.
5 #
6 # @param host
7 #   Specifies a proxy host to be stored in `/etc/apt/apt.conf.d/01proxy`. Valid options: a string containing a hostname.
8 #
9 # @param port
10 #   Specifies a proxy port to be stored in `/etc/apt/apt.conf.d/01proxy`. Valid options: an integer containing a port number.
11 #
12 # @param https
13 #   Specifies whether to enable https for this override.
14 #
15 # @param direct
16 #   Specifies whether or not to use a `DIRECT` target to bypass the system default proxy.
17 #
18 type Apt::Proxy_Per_Host = Struct[
19   {
20     scope      => String,
21     host       => Optional[String],
22     port       => Optional[Integer[1, 65535]],
23     https      => Optional[Boolean],
24     direct     => Optional[Boolean],
25   }
26 ]