approx
: Installs the approx server and a basic configuration fileapprox::systemd_socket
: alter port/ip to listen if using systemd
approx::repository
: Add a repository line to an approx proxy
Approx apt proxy server, main class
specific repositories have to be defined with apt::approx::repository.
approx::config:
debian:
url: 'http://ftp.ch.debian.org/debian'
debian-security:
url: 'http://security.debian.org/debian-security'
debian-backports:
url: 'http://ftp.ch.debian.org/debian-backports'
approx::create_resources:
xinetd::service:
approx:
server: '/usr/sbin/approx'
user: 'approx'
Will result in executing:
xinetd::service{'approx':
server => '/usr/sbin/approx'
user => 'approx'
The following parameters are available in the approx
class:
conffile
cache
ensure_cache
interval
max_rate
max_redirects
user
group
syslog
pdiffs
offline
max_wait
verbose
debug
config
create_resources
Data type: String
path to the configuration file
Data type: Optional[String]
path of the approx cache directory
Default value: undef
Data type: Boolean
if true it ensures that the cache directories are created
Default value: true
Data type: Optional[Integer]
time in minutes after which a cached file will be considered too old to deliver
Default value: undef
Data type: Optional[Variant[Integer, Enum['unlimited']]]
maximum download rate from remote repositories, in bytes per second
Default value: undef
Data type: Optional[Integer]
maximum number of HTTP redirections
Default value: undef
Data type: Optional[String]
user that owns the files in cache
Default value: undef
Data type: Optional[String]
group that owns the files in cache
Default value: undef
Data type: Optional[String]
syslog facility to use when logging
Default value: undef
Data type: Optional[Boolean]
whether to support IndexFile diffs
Default value: undef
Data type: Optional[Boolean]
whether to deliver (possibly out-of-date) cached files
Default value: undef
Data type: Optional[Integer]
how many seconds an approx(8) process will wait for a concurrent download
Default value: undef
Data type: Optional[Boolean]
whether informational messages should be printed in the log
Default value: undef
Data type: Optional[Boolean]
whether debugging messages should be printed in the log
Default value: undef
Data type: Hash
Hash of repositories to configure
Default value: {}
Data type: Hash
a Hash of Hashes to create additional resources Defaults to {} (do not create any additional resources)
Default value: {}
if on a system with systemd, you can use this class to alter port/ip to listen on.
The following parameters are available in the approx::systemd_socket
class:
Data type: Optional[Array[String]]
Array of ListenStream option to listen if undef (default) the dropin is set to absent Example (yaml): approx::systemd_socket::listen_streams: - '127.0.0.1:9999' - '[::1]:9999'
Default value: undef
Data type: Systemd::Unit
The target unit file to create
Default value: 'approx.socket'
Data type: String[1]
the name of the service we want to ensure
Default value: 'approx.socket'
Data type: String[1]
state of the service to ensure
Default value: 'running'
Data type: Boolean
if the service should be enabled or not
Default value: true
Add a repository line to an approx proxy
approx::repository{'debian-security':
url => 'http://security.debian.org/debian-security',
}
The following parameters are available in the approx::repository
defined type:
Data type: String
URL to add to the proxy
Data type: String
Name for this repository on the approx proxy. Defaults to $title.
Default value: $title
Data type: String
Order for the concat. Defaults to '50'
Default value: '50'