X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=types%2Fproxy.pp;h=ac00222f0800126a5150b536502719d0a184ef54;hb=refs%2Fheads%2Frelease-prep;hp=297bf1b52e0ada604a73ce02d796030148672120;hpb=3454627d0c8b7c6763c7f5d10bddace6847ec170;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/types/proxy.pp b/types/proxy.pp index 297bf1b..ac00222 100644 --- a/types/proxy.pp +++ b/types/proxy.pp @@ -1,9 +1,28 @@ +# @summary Configures Apt to connect to a proxy server. +# +# @param ensure +# Specifies whether the proxy should exist. Valid options: 'file', 'present', and 'absent'. Prefer 'file' over 'present'. +# +# @param host +# Specifies a proxy host to be stored in `/etc/apt/apt.conf.d/01proxy`. Valid options: a string containing a hostname. +# +# @param port +# Specifies a proxy port to be stored in `/etc/apt/apt.conf.d/01proxy`. Valid options: an integer containing a port number. +# +# @param https +# Specifies whether to enable https proxies. +# +# @param direct +# Specifies whether or not to use a `DIRECT` https proxy if http proxy is used but https is not. +# type Apt::Proxy = Struct[ { - ensure => Optional[Enum['file', 'present', 'absent']], - host => Optional[String], - port => Optional[Integer[0, 65535]], - https => Optional[Boolean], - direct => Optional[Boolean], + ensure => Optional[Enum['file', 'present', 'absent']], + host => Optional[String], + port => Optional[Integer[0, 65535]], + https => Optional[Boolean], + https_acng => Optional[Boolean], + direct => Optional[Boolean], + perhost => Optional[Array[Apt::Proxy_Per_Host]], } ]