From d92848fb9f3d67202b5a2624ddfe2409b9dbb2b1 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 31 Mar 2023 14:45:04 +0000 Subject: [PATCH] Release prep v6.5.0 --- CHANGELOG.md | 17 + REFERENCE.md | 1039 +++++++++++++++++++++++++------------------------ metadata.json | 2 +- 3 files changed, 551 insertions(+), 507 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41cc499e..83bebaa8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,23 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org). +## [v6.5.0](https://github.com/puppetlabs/puppetlabs-haproxy/tree/v6.5.0) (2023-03-31) + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-haproxy/compare/v6.4.0...v6.5.0) + +### Added + +- \(CONT-353\) Syntax update [\#536](https://github.com/puppetlabs/puppetlabs-haproxy/pull/536) ([LukasAud](https://github.com/LukasAud)) + +### Fixed + +- \(CONT-651\) Adjusting datatypes [\#540](https://github.com/puppetlabs/puppetlabs-haproxy/pull/540) ([LukasAud](https://github.com/LukasAud)) +- \(CONT-560\) Fix facter typos after syntax update [\#539](https://github.com/puppetlabs/puppetlabs-haproxy/pull/539) ([LukasAud](https://github.com/LukasAud)) +- \(CONT-173\) - Updating deprecated facter instances [\#534](https://github.com/puppetlabs/puppetlabs-haproxy/pull/534) ([jordanbreen28](https://github.com/jordanbreen28)) +- pdksync - \(CONT-189\) Remove support for RedHat6 / Scientific6 [\#533](https://github.com/puppetlabs/puppetlabs-haproxy/pull/533) ([david22swan](https://github.com/david22swan)) +- pdksync - \(CONT-130\) - Dropping Support for Debian 9 [\#530](https://github.com/puppetlabs/puppetlabs-haproxy/pull/530) ([jordanbreen28](https://github.com/jordanbreen28)) +- update resolver parameters [\#526](https://github.com/puppetlabs/puppetlabs-haproxy/pull/526) ([bugfood](https://github.com/bugfood)) + ## [v6.4.0](https://github.com/puppetlabs/puppetlabs-haproxy/tree/v6.4.0) (2022-10-03) [Full Changelog](https://github.com/puppetlabs/puppetlabs-haproxy/compare/v6.3.0...v6.4.0) diff --git a/REFERENCE.md b/REFERENCE.md index f1aedad3..cf8dedae 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -7,38 +7,38 @@ ### Classes * [`haproxy`](#haproxy): A Puppet module, using storeconfigs, to model an haproxy configuration. Currently VERY limited - assumes Redhat/CentOS setup. Pull requests a -* [`haproxy::globals`](#haproxyglobals): For global configuration options used by all haproxy instances. -* [`haproxy::params`](#haproxyparams): This is a container class holding default parameters for for haproxy class. +* [`haproxy::globals`](#haproxy--globals): For global configuration options used by all haproxy instances. +* [`haproxy::params`](#haproxy--params): This is a container class holding default parameters for for haproxy class. ### Defined types #### Public Defined types -* [`haproxy::backend`](#haproxybackend): This type will setup a backend service configuration block inside the +* [`haproxy::backend`](#haproxy--backend): This type will setup a backend service configuration block inside the haproxy.cfg file on an haproxy load balancer. -* [`haproxy::balancermember`](#haproxybalancermember): This type will setup a balancer member inside a listening service +* [`haproxy::balancermember`](#haproxy--balancermember): This type will setup a balancer member inside a listening service configuration block in /etc/haproxy/haproxy.cfg on the load balancer. -* [`haproxy::defaults`](#haproxydefaults): This type will setup a additional defaults configuration block inside the +* [`haproxy::defaults`](#haproxy--defaults): This type will setup a additional defaults configuration block inside the haproxy.cfg file on an haproxy load balancer. -* [`haproxy::frontend`](#haproxyfrontend): This type will setup a frontend service configuration block inside +* [`haproxy::frontend`](#haproxy--frontend): This type will setup a frontend service configuration block inside the haproxy.cfg file on an haproxy load balancer. -* [`haproxy::instance`](#haproxyinstance): Manages haproxy permitting multiple instances to run on the same machine. -* [`haproxy::instance_service`](#haproxyinstance_service): Set up the environment for an haproxy service. -* [`haproxy::listen`](#haproxylisten): This type will setup a listening service configuration block inside +* [`haproxy::instance`](#haproxy--instance): Manages haproxy permitting multiple instances to run on the same machine. +* [`haproxy::instance_service`](#haproxy--instance_service): Set up the environment for an haproxy service. +* [`haproxy::listen`](#haproxy--listen): This type will setup a listening service configuration block inside the haproxy.cfg file on an haproxy load balancer. -* [`haproxy::mailer`](#haproxymailer): This type will set up a mailer entry inside the mailers configuration block in +* [`haproxy::mailer`](#haproxy--mailer): This type will set up a mailer entry inside the mailers configuration block in haproxy.cfg on the load balancer. -* [`haproxy::mailers`](#haproxymailers): This type will set up a mailers entry in haproxy.cfg on the load balancer. -* [`haproxy::mapfile`](#haproxymapfile): Manage an HAProxy map file as documented in +* [`haproxy::mailers`](#haproxy--mailers): This type will set up a mailers entry in haproxy.cfg on the load balancer. +* [`haproxy::mapfile`](#haproxy--mapfile): Manage an HAProxy map file as documented in https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#7.3.1-map -* [`haproxy::mapfile::entry`](#haproxymapfileentry): Manage an HAProxy map file as documented in +* [`haproxy::mapfile::entry`](#haproxy--mapfile--entry): Manage an HAProxy map file as documented in https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#7.3.1-map -* [`haproxy::peer`](#haproxypeer): This type will set up a peer entry inside the peers configuration block in haproxy.cfg on the load balancer. -* [`haproxy::peer::collect_exported`](#haproxypeercollect_exported): Private define -* [`haproxy::peers`](#haproxypeers): This type will set up a peers entry in haproxy.cfg -* [`haproxy::resolver`](#haproxyresolver): This type will setup resolvers configuration block inside +* [`haproxy::peer`](#haproxy--peer): This type will set up a peer entry inside the peers configuration block in haproxy.cfg on the load balancer. +* [`haproxy::peer::collect_exported`](#haproxy--peer--collect_exported): Private define +* [`haproxy::peers`](#haproxy--peers): This type will set up a peers entry in haproxy.cfg +* [`haproxy::resolver`](#haproxy--resolver): This type will setup resolvers configuration block inside the haproxy.cfg file on an haproxy load balancer. -* [`haproxy::userlist`](#haproxyuserlist): This type will set up a userlist configuration block inside the haproxy.cfg +* [`haproxy::userlist`](#haproxy--userlist): This type will set up a userlist configuration block inside the haproxy.cfg file on an haproxy load balancer. #### Private Defined types @@ -98,36 +98,36 @@ class { 'haproxy': The following parameters are available in the `haproxy` class: -* [`package_ensure`](#package_ensure) -* [`package_name`](#package_name) -* [`service_ensure`](#service_ensure) -* [`service_manage`](#service_manage) -* [`service_name`](#service_name) -* [`service_options`](#service_options) -* [`chroot_dir_manage`](#chroot_dir_manage) -* [`sysconfig_options`](#sysconfig_options) -* [`global_options`](#global_options) -* [`defaults_options`](#defaults_options) -* [`merge_options`](#merge_options) -* [`restart_command`](#restart_command) -* [`custom_fragment`](#custom_fragment) -* [`config_dir`](#config_dir) -* [`config_file`](#config_file) -* [`config_validate_cmd`](#config_validate_cmd) -* [`manage_config_dir`](#manage_config_dir) -* [`manage_service`](#manage_service) -* [`enable`](#enable) - -##### `package_ensure` - -Data type: `String[1]` +* [`package_ensure`](#-haproxy--package_ensure) +* [`package_name`](#-haproxy--package_name) +* [`service_ensure`](#-haproxy--service_ensure) +* [`service_manage`](#-haproxy--service_manage) +* [`service_name`](#-haproxy--service_name) +* [`service_options`](#-haproxy--service_options) +* [`chroot_dir_manage`](#-haproxy--chroot_dir_manage) +* [`sysconfig_options`](#-haproxy--sysconfig_options) +* [`global_options`](#-haproxy--global_options) +* [`defaults_options`](#-haproxy--defaults_options) +* [`merge_options`](#-haproxy--merge_options) +* [`restart_command`](#-haproxy--restart_command) +* [`custom_fragment`](#-haproxy--custom_fragment) +* [`config_dir`](#-haproxy--config_dir) +* [`config_file`](#-haproxy--config_file) +* [`config_validate_cmd`](#-haproxy--config_validate_cmd) +* [`manage_config_dir`](#-haproxy--manage_config_dir) +* [`manage_service`](#-haproxy--manage_service) +* [`enable`](#-haproxy--enable) + +##### `package_ensure` + +Data type: `Variant[Enum['present', 'absent', 'purged', 'disabled', 'installed', 'latest'], String[1]]` Ensure the package is present (installed), absent or a specific version. Defaults to 'present' Default value: `'present'` -##### `package_name` +##### `package_name` Data type: `String` @@ -136,7 +136,7 @@ NOTE: haproxy::instance has a different default. Default value: `$haproxy::params::package_name` -##### `service_ensure` +##### `service_ensure` Data type: `Variant[Enum['running', 'stopped'], Boolean]` @@ -145,16 +145,16 @@ stopped and disabled at boot. Defaults to 'running' Default value: `'running'` -##### `service_manage` +##### `service_manage` Data type: `Boolean` Chooses whether the haproxy service state should be managed by puppet at all. Defaults to true -Default value: ``true`` +Default value: `true` -##### `service_name` +##### `service_name` Data type: `String` @@ -163,7 +163,7 @@ NOTE: haproxy::instance has a different default. Default value: `$haproxy::params::service_name` -##### `service_options` +##### `service_options` Data type: `String` @@ -171,25 +171,25 @@ Contents for the `/etc/defaults/haproxy` file on Debian. Defaults to "ENABLED=1\ Default value: `$haproxy::params::service_options` -##### `chroot_dir_manage` +##### `chroot_dir_manage` Data type: `Boolean` Chooses whether the haproxy chroot directory should be managed by puppet at all. Defaults to true -Default value: ``true`` +Default value: `true` -##### `sysconfig_options` +##### `sysconfig_options` -Data type: `Any` +Data type: `String` Contents for the `/etc/sysconfig/haproxy` file on RedHat(-based) systems. Defaults to OPTIONS="" on RedHat(-based) systems and is ignored on others Default value: `$haproxy::params::sysconfig_options` -##### `global_options` +##### `global_options` Data type: `Hash` @@ -200,7 +200,7 @@ A hash of all the haproxy global options. If you want to specify more Default value: `$haproxy::params::global_options` -##### `defaults_options` +##### `defaults_options` Data type: `Hash` @@ -211,7 +211,7 @@ A hash of all the haproxy defaults options. If you want to specify more Default value: `$haproxy::params::defaults_options` -##### `merge_options` +##### `merge_options` Data type: `Boolean` @@ -222,19 +222,19 @@ false, but will default to true in future releases. Default value: `$haproxy::params::merge_options` -##### `restart_command` +##### `restart_command` -Data type: `Any` +Data type: `Optional[String]` Command to use when restarting the on config changes. Passed directly as the 'restart' parameter to the service resource. Defaults to undef i.e. whatever the service default is. -Default value: ``undef`` +Default value: `undef` -##### `custom_fragment` +##### `custom_fragment` -Data type: `Any` +Data type: `Optional[String]` Allows arbitrary HAProxy configuration to be passed through to support additional configuration not available via parameters, or to short-circute @@ -242,9 +242,9 @@ the defined resources such as haproxy::listen when an operater would rather just write plain configuration. Accepts a string (ie, output from the template() function). Defaults to undef -Default value: ``undef`` +Default value: `undef` -##### `config_dir` +##### `config_dir` Data type: `Stdlib::Absolutepath` @@ -254,7 +254,7 @@ resides. Will also be used for storing any managed map files (see Default value: `$haproxy::params::config_dir` -##### `config_file` +##### `config_file` Data type: `Optional[Stdlib::Absolutepath]` @@ -263,9 +263,9 @@ Default depends on platform. Default value: `$haproxy::params::config_file` -##### `config_validate_cmd` +##### `config_validate_cmd` -Data type: `Any` +Data type: `Variant[Stdlib::Absolutepath, String]` Optional. Command used by concat validate_cmd to validate new config file concat is a valid haproxy config. @@ -273,31 +273,31 @@ Default /usr/sbin/haproxy -f % -c Default value: `$haproxy::params::config_validate_cmd` -##### `manage_config_dir` +##### `manage_config_dir` -Data type: `Any` +Data type: `Boolean` Optional. Default value: `$haproxy::params::manage_config_dir` -##### `manage_service` +##### `manage_service` -Data type: `Any` +Data type: `Optional[Boolean]` Deprecated -Default value: ``undef`` +Default value: `undef` -##### `enable` +##### `enable` -Data type: `Any` +Data type: `Optional[Boolean]` Deprecated -Default value: ``undef`` +Default value: `undef` -### `haproxy::globals` +### `haproxy::globals` For global configuration options used by all haproxy instances. @@ -305,18 +305,18 @@ For global configuration options used by all haproxy instances. The following parameters are available in the `haproxy::globals` class: -* [`sort_options_alphabetic`](#sort_options_alphabetic) +* [`sort_options_alphabetic`](#-haproxy--globals--sort_options_alphabetic) -##### `sort_options_alphabetic` +##### `sort_options_alphabetic` Data type: `Boolean` Sort options either alphabetic or custom like haproxy internal sorts them. Defaults to true. -Default value: ``true`` +Default value: `true` -### `haproxy::params` +### `haproxy::params` This is a container class holding default parameters for for haproxy class. @@ -325,7 +325,7 @@ extended by changing package names and configuration file paths. ## Defined types -### `haproxy::backend` +### `haproxy::backend` === Authors @@ -358,57 +358,61 @@ haproxy::backend { 'puppet00': The following parameters are available in the `haproxy::backend` defined type: -* [`section_name`](#section_name) -* [`mode`](#mode) -* [`description`](#description) -* [`options`](#options) -* [`collect_exported`](#collect_exported) -* [`config_file`](#config_file) -* [`sort_options_alphabetic`](#sort_options_alphabetic) -* [`defaults`](#defaults) -* [`instance`](#instance) +* [`section_name`](#-haproxy--backend--section_name) +* [`mode`](#-haproxy--backend--mode) +* [`description`](#-haproxy--backend--description) +* [`options`](#-haproxy--backend--options) +* [`collect_exported`](#-haproxy--backend--collect_exported) +* [`config_file`](#-haproxy--backend--config_file) +* [`sort_options_alphabetic`](#-haproxy--backend--sort_options_alphabetic) +* [`defaults`](#-haproxy--backend--defaults) +* [`instance`](#-haproxy--backend--instance) -##### `section_name` +##### `section_name` -Data type: `Any` +Data type: `String[1]` This name goes right after the 'backend' statement in haproxy.cfg Default: $name (the namevar of the resource). Default value: `$name` -##### `mode` +##### `mode` -Data type: `Any` +Data type: `Optional[Enum['tcp', 'http', 'health']]` The mode of operation for the backend service. Valid values are undef, 'tcp', 'http', and 'health'. -Default value: ``undef`` +Default value: `undef` -##### `description` +##### `description` -Data type: `Any` +Data type: `Optional[String]` Allows to add a sentence to describe the related object in the HAProxy HTML stats page. The description will be printed on the right of the object name it describes. Usefull in huge environments -Default value: ``undef`` +Default value: `undef` -##### `options` +##### `options` -Data type: `Any` +Data type: `Variant[Hash, Array[Hash]]` A hash of options that are inserted into the backend configuration block. -Default value: `{ +Default value: + +```puppet +{ 'balance' => 'roundrobin', - }` + } +``` -##### `collect_exported` +##### `collect_exported` -Data type: `Any` +Data type: `Boolean` Boolean, default 'true'. True means 'collect exported @@balancermember resources' (for the case when every balancermember node exports itself), @@ -417,9 +421,9 @@ Boolean, default 'true'. True means 'collect exported @@balancermember haproxy::balancermember with array arguments, which allows you to deploy everything in 1 run) -Default value: ``true`` +Default value: `true` -##### `config_file` +##### `config_file` Data type: `Optional[Stdlib::Absolutepath]` @@ -427,35 +431,35 @@ Optional. Path of the config file where this entry will be added. Assumes that the parent directory exists. Default: $haproxy::params::config_file -Default value: ``undef`` +Default value: `undef` -##### `sort_options_alphabetic` +##### `sort_options_alphabetic` -Data type: `Any` +Data type: `Boolean` Sort options either alphabetic or custom like haproxy internal sorts them. Defaults to true. -Default value: ``undef`` +Default value: `true` -##### `defaults` +##### `defaults` -Data type: `Any` +Data type: `Optional[String]` Name of the defaults section this backend will use. Defaults to undef which means the global defaults section will be used. -Default value: ``undef`` +Default value: `undef` -##### `instance` +##### `instance` -Data type: `Any` +Data type: `String` Optional. Defaults to 'haproxy' Default value: `'haproxy'` -### `haproxy::balancermember` +### `haproxy::balancermember` This type will setup a balancer member inside a listening service configuration block in /etc/haproxy/haproxy.cfg on the load balancer. @@ -529,34 +533,34 @@ haproxy::balancermember { 'haproxy': The following parameters are available in the `haproxy::balancermember` defined type: -* [`listening_service`](#listening_service) -* [`ports`](#ports) -* [`port`](#port) -* [`server_names`](#server_names) -* [`ipaddresses`](#ipaddresses) -* [`prefix`](#prefix) -* [`amount`](#amount) -* [`fqdn`](#fqdn) -* [`options`](#options) -* [`define_cookies`](#define_cookies) -* [`defaults`](#defaults) -* [`config_file`](#config_file) -* [`verifyhost`](#verifyhost) -* [`weight`](#weight) -* [`instance`](#instance) -* [`type`](#type) - -##### `listening_service` - -Data type: `Any` +* [`listening_service`](#-haproxy--balancermember--listening_service) +* [`ports`](#-haproxy--balancermember--ports) +* [`port`](#-haproxy--balancermember--port) +* [`server_names`](#-haproxy--balancermember--server_names) +* [`ipaddresses`](#-haproxy--balancermember--ipaddresses) +* [`prefix`](#-haproxy--balancermember--prefix) +* [`amount`](#-haproxy--balancermember--amount) +* [`fqdn`](#-haproxy--balancermember--fqdn) +* [`options`](#-haproxy--balancermember--options) +* [`define_cookies`](#-haproxy--balancermember--define_cookies) +* [`defaults`](#-haproxy--balancermember--defaults) +* [`config_file`](#-haproxy--balancermember--config_file) +* [`verifyhost`](#-haproxy--balancermember--verifyhost) +* [`weight`](#-haproxy--balancermember--weight) +* [`instance`](#-haproxy--balancermember--instance) +* [`type`](#-haproxy--balancermember--type) + +##### `listening_service` + +Data type: `String` The haproxy service's instance name (or, the title of the haproxy::listen resource). This must match up with a declared haproxy::listen resource. -##### `ports` +##### `ports` -Data type: `Any` +Data type: `Optional[Variant[Array, String]]` An array or commas-separated list of ports for which the balancer member will accept connections from the load balancer. Note that cookie values @@ -564,19 +568,19 @@ An array or commas-separated list of ports for which the balancer member configuration. If you use an array in server_names and ipaddresses, the same port is used for all balancermembers. -Default value: ``undef`` +Default value: `undef` -##### `port` +##### `port` -Data type: `Any` +Data type: `Optional[Variant[String, Stdlib::Port]]` A port for server-template. It is an optional specification. -Default value: ``undef`` +Default value: `undef` -##### `server_names` +##### `server_names` -Data type: `Any` +Data type: `Variant[String[1], Array]` The name of the balancer member server as known to haproxy in the listening service's configuration block. This defaults to the @@ -584,28 +588,28 @@ The name of the balancer member server as known to haproxy in the in which case a balancermember is created for each pair of server_names and ipaddresses (in lockstep). -Default value: `$::hostname` +Default value: `$hostname` -##### `ipaddresses` +##### `ipaddresses` -Data type: `Any` +Data type: `Variant[String, Array]` The ip address used to contact the balancer member server. Can be an array, see documentation to server_names. -Default value: `$::ipaddress` +Default value: `$ipaddress` -##### `prefix` +##### `prefix` -Data type: `Any` +Data type: `String` A prefix for the server-template for the server names to be built. Default value: `'server'` -##### `amount` +##### `amount` -Data type: `Any` +Data type: `String` If "amount" is provided, the server-template initializes servers with 1 up to as server name suffixes. A range of numbers @@ -614,42 +618,42 @@ If "amount" is provided, the server-template initializes servers Default value: `'1'` -##### `fqdn` +##### `fqdn` -Data type: `Any` +Data type: `Optional[String]` A FQDN for all the servers the server-template initializes. -Default value: `''` +Default value: `undef` -##### `options` +##### `options` -Data type: `Any` +Data type: `Optional[Variant[String, Array]]` An array of options to be specified after the server declaration in the listening service's configuration block. -Default value: `''` +Default value: `undef` -##### `define_cookies` +##### `define_cookies` -Data type: `Any` +Data type: `Boolean` If true, then add "cookie SERVERID" stickiness options. Default false. -Default value: ``false`` +Default value: `false` -##### `defaults` +##### `defaults` -Data type: `Any` +Data type: `Optional[String]` Name of the defaults section the backend or listener use. Defaults to undef. -Default value: ``undef`` +Default value: `undef` -##### `config_file` +##### `config_file` Data type: `Optional[Stdlib::Absolutepath]` @@ -657,36 +661,36 @@ Optional. Path of the config file where this entry will be added. Assumes that the parent directory exists. Default: $haproxy::params::config_file -Default value: ``undef`` +Default value: `undef` -##### `verifyhost` +##### `verifyhost` -Data type: `Any` +Data type: `Boolean` Optional. Will add the verifyhost option to the server line, using the specific host from server_names as an argument. Default: false -Default value: ``false`` +Default value: `false` -##### `weight` +##### `weight` -Data type: `Any` +Data type: `Optional[Variant[String, Integer]]` Optional. Will add the weight option to the server line Default: undef -Default value: ``undef`` +Default value: `undef` -##### `instance` +##### `instance` -Data type: `Any` +Data type: `String` Optional. Defaults to 'haproxy' Default value: `'haproxy'` -##### `type` +##### `type` Data type: `Enum['server', 'default-server', 'server-template']` @@ -694,7 +698,7 @@ Optional. Defaults to 'server' Default value: `'server'` -### `haproxy::defaults` +### `haproxy::defaults` This type will setup a additional defaults configuration block inside the haproxy.cfg file on an haproxy load balancer. @@ -708,36 +712,36 @@ defaults name. The following parameters are available in the `haproxy::defaults` defined type: -* [`options`](#options) -* [`sort_options_alphabetic`](#sort_options_alphabetic) -* [`instance`](#instance) +* [`options`](#-haproxy--defaults--options) +* [`sort_options_alphabetic`](#-haproxy--defaults--sort_options_alphabetic) +* [`instance`](#-haproxy--defaults--instance) -##### `options` +##### `options` -Data type: `Any` +Data type: `Hash` A hash of options that are inserted into the defaults configuration block. Default value: `{}` -##### `sort_options_alphabetic` +##### `sort_options_alphabetic` -Data type: `Any` +Data type: `Boolean` Sort options either alphabetic or custom like haproxy internal sorts them. Defaults to true. -Default value: ``undef`` +Default value: `true` -##### `instance` +##### `instance` -Data type: `Any` +Data type: `String` Optional. Defaults to 'haproxy'. Default value: `'haproxy'` -### `haproxy::frontend` +### `haproxy::frontend` === Authors @@ -774,131 +778,135 @@ haproxy::frontend { 'puppet00': The following parameters are available in the `haproxy::frontend` defined type: -* [`section_name`](#section_name) -* [`ports`](#ports) -* [`bind`](#bind) -* [`ipaddress`](#ipaddress) -* [`mode`](#mode) -* [`description`](#description) -* [`bind_options`](#bind_options) -* [`options`](#options) -* [`sort_options_alphabetic`](#sort_options_alphabetic) -* [`defaults`](#defaults) -* [`defaults_use_backend`](#defaults_use_backend) -* [`config_file`](#config_file) -* [`collect_exported`](#collect_exported) -* [`instance`](#instance) - -##### `section_name` - -Data type: `Any` +* [`section_name`](#-haproxy--frontend--section_name) +* [`ports`](#-haproxy--frontend--ports) +* [`bind`](#-haproxy--frontend--bind) +* [`ipaddress`](#-haproxy--frontend--ipaddress) +* [`mode`](#-haproxy--frontend--mode) +* [`description`](#-haproxy--frontend--description) +* [`bind_options`](#-haproxy--frontend--bind_options) +* [`options`](#-haproxy--frontend--options) +* [`sort_options_alphabetic`](#-haproxy--frontend--sort_options_alphabetic) +* [`defaults`](#-haproxy--frontend--defaults) +* [`defaults_use_backend`](#-haproxy--frontend--defaults_use_backend) +* [`config_file`](#-haproxy--frontend--config_file) +* [`collect_exported`](#-haproxy--frontend--collect_exported) +* [`instance`](#-haproxy--frontend--instance) + +##### `section_name` + +Data type: `String[1]` This name goes right after the 'frontend' statement in haproxy.cfg Default: $name (the namevar of the resource). Default value: `$name` -##### `ports` +##### `ports` -Data type: `Any` +Data type: `Optional[Variant[Array, String]]` Ports on which the proxy will listen for connections on the ip address specified in the ipaddress parameter. Accepts either a single comma-separated string or an array of strings which may be ports or hyphenated port ranges. -Default value: ``undef`` +Default value: `undef` -##### `bind` +##### `bind` Data type: `Optional[Hash]` Set of ip addresses, port and bind options $bind = { '10.0.0.1:80' => ['ssl', 'crt', '/path/to/my/crt.pem'] } -Default value: ``undef`` +Default value: `undef` -##### `ipaddress` +##### `ipaddress` -Data type: `Any` +Data type: `Optional[Variant[String, Array]]` The ip address the proxy binds to. Empty addresses, '*', and '0.0.0.0' mean that the proxy listens to all valid addresses on the system. -Default value: ``undef`` +Default value: `undef` -##### `mode` +##### `mode` -Data type: `Any` +Data type: `Optional[Enum['tcp', 'http', 'health']]` The mode of operation for the frontend service. Valid values are undef, 'tcp', 'http', and 'health'. -Default value: ``undef`` +Default value: `undef` -##### `description` +##### `description` -Data type: `Any` +Data type: `Optional[String]` Allows to add a sentence to describe the related object in the HAProxy HTML stats page. The description will be printed on the right of the object name it describes. Usefull in huge environments -Default value: ``undef`` +Default value: `undef` -##### `bind_options` +##### `bind_options` -Data type: `Any` +Data type: `Optional[Array]` (Deprecated) An array of options to be specified after the bind declaration in the listening serivce's configuration block. -Default value: `''` +Default value: `undef` -##### `options` +##### `options` -Data type: `Any` +Data type: `Variant[Hash, Array[Hash]]` A hash of options that are inserted into the frontend service configuration block. -Default value: `{ - 'option' => [ +Default value: + +```puppet +{ + 'option' => [ 'tcplog', ], - }` + } +``` -##### `sort_options_alphabetic` +##### `sort_options_alphabetic` -Data type: `Any` +Data type: `Boolean` Sort options either alphabetic or custom like haproxy internal sorts them. Defaults to true. -Default value: ``undef`` +Default value: `true` -##### `defaults` +##### `defaults` -Data type: `Any` +Data type: `Optional[String]` Name of the defaults section this backend will use. Defaults to undef which means the global defaults section will be used. -Default value: ``undef`` +Default value: `undef` -##### `defaults_use_backend` +##### `defaults_use_backend` -Data type: `Any` +Data type: `Boolean` If defaults are used and a default backend is configured use the backend name for ordering. This means that the frontend is placed in the configuration file before the backend configuration. Defaults to true. -Default value: ``true`` +Default value: `true` -##### `config_file` +##### `config_file` Data type: `Optional[Stdlib::Absolutepath]` @@ -906,25 +914,25 @@ Optional. Path of the config file where this entry will be added. Assumes that the parent directory exists. Default: $haproxy::params::config_file -Default value: ``undef`` +Default value: `undef` -##### `collect_exported` +##### `collect_exported` -Data type: `Any` +Data type: `Boolean` Boolean. Default true -Default value: ``true`` +Default value: `true` -##### `instance` +##### `instance` -Data type: `Any` +Data type: `String` Optional. Defaults to 'haproxy' Default value: `'haproxy'` -### `haproxy::instance` +### `haproxy::instance` template() function). Defaults to undef @@ -1008,42 +1016,42 @@ Multiple instances of haproxy, one with a custom haproxy package: The following parameters are available in the `haproxy::instance` defined type: -* [`package_ensure`](#package_ensure) -* [`package_name`](#package_name) -* [`service_ensure`](#service_ensure) -* [`service_manage`](#service_manage) -* [`chroot_dir_manage`](#chroot_dir_manage) -* [`service_name`](#service_name) -* [`global_options`](#global_options) -* [`defaults_options`](#defaults_options) -* [`restart_command`](#restart_command) -* [`custom_fragment`](#custom_fragment) -* [`config_file`](#config_file) -* [`config_validate_cmd`](#config_validate_cmd) -* [`config_dir`](#config_dir) -* [`merge_options`](#merge_options) -* [`service_options`](#service_options) -* [`sysconfig_options`](#sysconfig_options) - -##### `package_ensure` - -Data type: `String[1]` +* [`package_ensure`](#-haproxy--instance--package_ensure) +* [`package_name`](#-haproxy--instance--package_name) +* [`service_ensure`](#-haproxy--instance--service_ensure) +* [`service_manage`](#-haproxy--instance--service_manage) +* [`chroot_dir_manage`](#-haproxy--instance--chroot_dir_manage) +* [`service_name`](#-haproxy--instance--service_name) +* [`global_options`](#-haproxy--instance--global_options) +* [`defaults_options`](#-haproxy--instance--defaults_options) +* [`restart_command`](#-haproxy--instance--restart_command) +* [`custom_fragment`](#-haproxy--instance--custom_fragment) +* [`config_file`](#-haproxy--instance--config_file) +* [`config_validate_cmd`](#-haproxy--instance--config_validate_cmd) +* [`config_dir`](#-haproxy--instance--config_dir) +* [`merge_options`](#-haproxy--instance--merge_options) +* [`service_options`](#-haproxy--instance--service_options) +* [`sysconfig_options`](#-haproxy--instance--sysconfig_options) + +##### `package_ensure` + +Data type: `Variant[Enum['present', 'absent', 'purged', 'disabled', 'installed', 'latest'], String[1]]` Ensure the package is present (installed), absent or a specific version. Defaults to 'present' Default value: `'present'` -##### `package_name` +##### `package_name` Data type: `Optional[String]` The package name of haproxy. Defaults to undef, and no package is installed. NOTE: Class['haproxy'] has a different default. -Default value: ``undef`` +Default value: `undef` -##### `service_ensure` +##### `service_ensure` Data type: `Variant[Enum['running', 'stopped'], Boolean]` @@ -1052,25 +1060,25 @@ stopped and disabled at boot. Defaults to 'running' Default value: `'running'` -##### `service_manage` +##### `service_manage` Data type: `Boolean` Chooses whether the haproxy service state should be managed by puppet at all. Defaults to true -Default value: ``true`` +Default value: `true` -##### `chroot_dir_manage` +##### `chroot_dir_manage` Data type: `Boolean` Chooses whether the haproxy chroot directory should be managed by puppet at all. Defaults to true -Default value: ``true`` +Default value: `true` -##### `service_name` +##### `service_name` Data type: `Optional[String]` @@ -1078,9 +1086,9 @@ The service name for haproxy. Defaults to undef. If no name is given then the value computed for $instance_name will be used. NOTE: Class['haproxy'] has a different default. -Default value: ``undef`` +Default value: `undef` -##### `global_options` +##### `global_options` Data type: `Optional[Hash]` @@ -1089,9 +1097,9 @@ A hash of all the haproxy global options. If you want to specify more options as an array and you will get a line for each of them in the resultant haproxy.cfg file. -Default value: ``undef`` +Default value: `undef` -##### `defaults_options` +##### `defaults_options` Data type: `Optional[Hash]` @@ -1100,30 +1108,30 @@ A hash of all the haproxy defaults options. If you want to specify more options as an array and you will get a line for each of them in the resultant haproxy.cfg file. -Default value: ``undef`` +Default value: `undef` -##### `restart_command` +##### `restart_command` -Data type: `Any` +Data type: `Optional[String]` Command to use when restarting the on config changes. Passed directly as the 'restart' parameter to the service resource. # Defaults to undef i.e. whatever the service default is. -Default value: ``undef`` +Default value: `undef` -##### `custom_fragment` +##### `custom_fragment` -Data type: `Any` +Data type: `Optional[String]` Allows arbitrary HAProxy configuration to be passed through to support additional configuration not available via parameters, or to short-circuit the defined resources such as haproxy::listen when an operater would rather just write plain configuration. Accepts a string (ie, output from the -Default value: ``undef`` +Default value: `undef` -##### `config_file` +##### `config_file` Data type: `Optional[Stdlib::Absolutepath]` @@ -1137,11 +1145,11 @@ will be generated as follows: The parent directory will be created automatically. Defaults to undef. -Default value: ``undef`` +Default value: `undef` -##### `config_validate_cmd` +##### `config_validate_cmd` -Data type: `Any` +Data type: `Variant[Stdlib::Absolutepath, String]` Command used by concat validate_cmd to validate new config file concat is a valid haproxy config. @@ -1149,39 +1157,39 @@ Default /usr/sbin/haproxy -f % -c Default value: `$haproxy::params::config_validate_cmd` -##### `config_dir` +##### `config_dir` -Data type: `Any` +Data type: `Optional[Stdlib::Absolutepath]` Optional. Default undef. -Default value: ``undef`` +Default value: `undef` -##### `merge_options` +##### `merge_options` -Data type: `Any` +Data type: `Boolean` Default value: `$haproxy::params::merge_options` -##### `service_options` +##### `service_options` -Data type: `Any` +Data type: `String` Default value: `$haproxy::params::service_options` -##### `sysconfig_options` +##### `sysconfig_options` -Data type: `Any` +Data type: `String` Default value: `$haproxy::params::sysconfig_options` -### `haproxy::instance_service` +### `haproxy::instance_service` Set up the environment for an haproxy service. @@ -1201,12 +1209,12 @@ In particular: The following parameters are available in the `haproxy::instance_service` defined type: -* [`haproxy_package`](#haproxy_package) -* [`bindir`](#bindir) -* [`haproxy_init_source`](#haproxy_init_source) -* [`haproxy_unit_template`](#haproxy_unit_template) +* [`haproxy_package`](#-haproxy--instance_service--haproxy_package) +* [`bindir`](#-haproxy--instance_service--bindir) +* [`haproxy_init_source`](#-haproxy--instance_service--haproxy_init_source) +* [`haproxy_unit_template`](#-haproxy--instance_service--haproxy_unit_template) -##### `haproxy_package` +##### `haproxy_package` Data type: `String` @@ -1216,7 +1224,7 @@ Defaults to 'haproxy' Default value: `'haproxy'` -##### `bindir` +##### `bindir` Data type: `Stdlib::Absolutepath` @@ -1225,23 +1233,23 @@ Defaults to '/opt/haproxy' Default value: `'/opt/haproxy/bin'` -##### `haproxy_init_source` +##### `haproxy_init_source` Data type: `Optional[String]` The init.d script that will start/restart/reload this instance. -Default value: ``undef`` +Default value: `undef` -##### `haproxy_unit_template` +##### `haproxy_unit_template` Data type: `String` - +The template that will be used to create an unit file. Default value: `'haproxy/instance_service_unit.erb'` -### `haproxy::listen` +### `haproxy::listen` === Authors @@ -1277,104 +1285,108 @@ haproxy::listen { 'puppet00': The following parameters are available in the `haproxy::listen` defined type: -* [`section_name`](#section_name) -* [`ports`](#ports) -* [`ipaddress`](#ipaddress) -* [`bind`](#bind) -* [`mode`](#mode) -* [`description`](#description) -* [`options`](#options) -* [`bind_options`](#bind_options) -* [`collect_exported`](#collect_exported) -* [`sort_options_alphabetic`](#sort_options_alphabetic) -* [`defaults`](#defaults) -* [`config_file`](#config_file) -* [`instance`](#instance) - -##### `section_name` +* [`section_name`](#-haproxy--listen--section_name) +* [`ports`](#-haproxy--listen--ports) +* [`ipaddress`](#-haproxy--listen--ipaddress) +* [`bind`](#-haproxy--listen--bind) +* [`mode`](#-haproxy--listen--mode) +* [`description`](#-haproxy--listen--description) +* [`options`](#-haproxy--listen--options) +* [`bind_options`](#-haproxy--listen--bind_options) +* [`collect_exported`](#-haproxy--listen--collect_exported) +* [`sort_options_alphabetic`](#-haproxy--listen--sort_options_alphabetic) +* [`defaults`](#-haproxy--listen--defaults) +* [`config_file`](#-haproxy--listen--config_file) +* [`instance`](#-haproxy--listen--instance) + +##### `section_name` -Data type: `Any` +Data type: `String[1]` This name goes right after the 'listen' statement in haproxy.cfg Default: $name (the namevar of the resource). Default value: `$name` -##### `ports` +##### `ports` -Data type: `Any` +Data type: `Optional[Variant[Array, String]]` Ports on which the proxy will listen for connections on the ip address specified in the ipaddress parameter. Accepts either a single comma-separated string or an array of strings which may be ports or hyphenated port ranges. -Default value: ``undef`` +Default value: `undef` -##### `ipaddress` +##### `ipaddress` -Data type: `Any` +Data type: `Optional[Variant[String, Array]]` The ip address the proxy binds to. Empty addresses, '*', and '0.0.0.0' mean that the proxy listens to all valid addresses on the system. -Default value: ``undef`` +Default value: `undef` -##### `bind` +##### `bind` Data type: `Optional[Hash]` Set of ip addresses, port and bind options $bind = { '10.0.0.1:80' => ['ssl', 'crt', '/path/to/my/crt.pem'] } -Default value: ``undef`` +Default value: `undef` -##### `mode` +##### `mode` -Data type: `Any` +Data type: `Optional[Enum['tcp', 'http', 'health']]` The mode of operation for the listening service. Valid values are undef, 'tcp', 'http', and 'health'. -Default value: ``undef`` +Default value: `undef` -##### `description` +##### `description` -Data type: `Any` +Data type: `Optional[String]` Allows to add a sentence to describe the related object in the HAProxy HTML stats page. The description will be printed on the right of the object name it describes. Usefull in huge environments -Default value: ``undef`` +Default value: `undef` -##### `options` +##### `options` -Data type: `Any` +Data type: `Variant[Hash, Array[Hash]]` A hash of options that are inserted into the listening service configuration block. -Default value: `{ - 'option' => [ +Default value: + +```puppet +{ + 'option' => [ 'tcplog', ], - 'balance' => 'roundrobin', - }` + 'balance' => 'roundrobin', + } +``` -##### `bind_options` +##### `bind_options` -Data type: `Any` +Data type: `Optional[Array]` (Deprecated) An array of options to be specified after the bind declaration in the listening serivce's configuration block. -Default value: `''` +Default value: `undef` -##### `collect_exported` +##### `collect_exported` -Data type: `Any` +Data type: `Boolean` Boolean, default 'true'. True means 'collect exported @@balancermember resources' (for the case when every balancermember node exports itself), false means @@ -1382,27 +1394,27 @@ Boolean, default 'true'. True means 'collect exported @@balancermember resources know the full set of balancermembers in advance and use haproxy::balancermember with array arguments, which allows you to deploy everything in 1 run) -Default value: ``true`` +Default value: `true` -##### `sort_options_alphabetic` +##### `sort_options_alphabetic` -Data type: `Any` +Data type: `Boolean` Sort options either alphabetic or custom like haproxy internal sorts them. Defaults to true. -Default value: ``undef`` +Default value: `true` -##### `defaults` +##### `defaults` -Data type: `Any` +Data type: `Optional[String]` Name of the defaults section this backend will use. Defaults to undef which means the global defaults section will be used. -Default value: ``undef`` +Default value: `undef` -##### `config_file` +##### `config_file` Data type: `Optional[Stdlib::Absolutepath]` @@ -1410,17 +1422,17 @@ Optional. Path of the config file where this entry will be added. Assumes that the parent directory exists. Default: $haproxy::params::config_file -Default value: ``undef`` +Default value: `undef` -##### `instance` +##### `instance` -Data type: `Any` +Data type: `String` Optional. Defaults to 'haproxy' Default value: `'haproxy'` -### `haproxy::mailer` +### `haproxy::mailer` This type will set up a mailer entry inside the mailers configuration block in haproxy.cfg on the load balancer. @@ -1435,21 +1447,21 @@ block and then collecting them on all load balancers. The following parameters are available in the `haproxy::mailer` defined type: -* [`mailers_name`](#mailers_name) -* [`server_names`](#server_names) -* [`ipaddresses`](#ipaddresses) -* [`port`](#port) -* [`instance`](#instance) +* [`mailers_name`](#-haproxy--mailer--mailers_name) +* [`server_names`](#-haproxy--mailer--server_names) +* [`ipaddresses`](#-haproxy--mailer--ipaddresses) +* [`port`](#-haproxy--mailer--port) +* [`instance`](#-haproxy--mailer--instance) -##### `mailers_name` +##### `mailers_name` -Data type: `Any` +Data type: `String` Specifies the mailer in which this load balancer needs to be added. -##### `server_names` +##### `server_names` -Data type: `Any` +Data type: `Variant[String[1], Array]` Sets the name of the mailer server in the mailers configuration block. Defaults to the hostname. Can be an array. If this parameter is @@ -1457,34 +1469,34 @@ Sets the name of the mailer server in the mailers configuration block. ipaddresses parameter's array. A mailer is created for each pair of server\_names and ipaddresses in the array. -Default value: `$::hostname` +Default value: `$hostname` -##### `ipaddresses` +##### `ipaddresses` -Data type: `Any` +Data type: `Variant[String, Array]` Specifies the IP address used to contact the mailer member server. Can be an array. If this parameter is specified as an array it must be the same length as the server\_names parameter's array. A mailer is created for each pair of address and server_name. -Default value: `$::ipaddress` +Default value: `$ipaddress` -##### `port` +##### `port` -Data type: `Any` +Data type: `Variant[String, Stdlib::Port]` Sets the port on which the mailer is going to share the state. -##### `instance` - -Data type: `Any` +##### `instance` +Data type: `String` +The instance name of the mailer entry. Default value: 'haproxy'. Default value: `'haproxy'` -### `haproxy::mailers` +### `haproxy::mailers` This type will set up a mailers entry in haproxy.cfg on the load balancer. @@ -1494,26 +1506,26 @@ This type will set up a mailers entry in haproxy.cfg on the load balancer. The following parameters are available in the `haproxy::mailers` defined type: -* [`instance`](#instance) -* [`collect_exported`](#collect_exported) +* [`instance`](#-haproxy--mailers--instance) +* [`collect_exported`](#-haproxy--mailers--collect_exported) -##### `instance` +##### `instance` -Data type: `Any` +Data type: `String` Optional. Defaults to 'haproxy'. Default value: `'haproxy'` -##### `collect_exported` +##### `collect_exported` -Data type: `Any` +Data type: `Boolean` Boolean. Defaults to true. -Default value: ``true`` +Default value: `true` -### `haproxy::mapfile` +### `haproxy::mapfile` Manage an HAProxy map file as documented in https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#7.3.1-map @@ -1526,21 +1538,21 @@ definitions. The following parameters are available in the `haproxy::mapfile` defined type: -* [`name`](#name) -* [`mappings`](#mappings) -* [`ensure`](#ensure) -* [`owner`](#owner) -* [`group`](#group) -* [`mode`](#mode) -* [`instances`](#instances) +* [`name`](#-haproxy--mapfile--name) +* [`mappings`](#-haproxy--mapfile--mappings) +* [`ensure`](#-haproxy--mapfile--ensure) +* [`owner`](#-haproxy--mapfile--owner) +* [`group`](#-haproxy--mapfile--group) +* [`mode`](#-haproxy--mapfile--mode) +* [`instances`](#-haproxy--mapfile--instances) -##### `name` +##### `name` The namevar of the defined resource type is the filename of the map file (without any extension), relative to the `haproxy::config_dir` directory. A '.map' extension will be added automatically. -##### `mappings` +##### `mappings` Data type: `Array[Variant[String, Hash]]` @@ -1549,7 +1561,7 @@ single key-value pair each (preferably) or simple Strings. Default: `[]` Default value: `[]` -##### `ensure` +##### `ensure` Data type: `Enum['present', 'absent']` @@ -1558,31 +1570,31 @@ Default: 'present' Default value: `'present'` -##### `owner` +##### `owner` -Data type: `Any` +Data type: `String` The owner of the underlying file resource. Defaut: 'root' Default value: `'root'` -##### `group` +##### `group` -Data type: `Any` +Data type: `String` The group of the underlying file resource. Defaut: 'root' Default value: `'root'` -##### `mode` +##### `mode` -Data type: `Any` +Data type: `String` The mode of the underlying file resource. Defaut: '0644' Default value: `'0644'` -##### `instances` +##### `instances` Data type: `Array` @@ -1592,7 +1604,7 @@ multiple HAproxy instances. Default: `[ 'haproxy' ]` Default value: `['haproxy']` -### `haproxy::mapfile::entry` +### `haproxy::mapfile::entry` Manage an HAProxy map file as documented in https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#7.3.1-map @@ -1604,18 +1616,18 @@ specified in the `mappings` array. The following parameters are available in the `haproxy::mapfile::entry` defined type: -* [`name`](#name) -* [`mappings`](#mappings) -* [`mapfile`](#mapfile) -* [`order`](#order) +* [`name`](#-haproxy--mapfile--entry--name) +* [`mappings`](#-haproxy--mapfile--entry--mappings) +* [`mapfile`](#-haproxy--mapfile--entry--mapfile) +* [`order`](#-haproxy--mapfile--entry--order) -##### `name` +##### `name` The namevar of the defined resource type is the filename of the map file (without any extension), relative to the `haproxy::config_dir` directory. A '.map' extension will be added automatically. -##### `mappings` +##### `mappings` Data type: `Array[Variant[String, Hash]]` @@ -1624,21 +1636,21 @@ single key-value pair each (preferably) or simple Strings. Default: `[]` Default value: `[$title]` -##### `mapfile` +##### `mapfile` Data type: `String` +A string that specifies the name of the mapfile. Default value: ''. - -##### `order` +##### `order` Data type: `Variant[String, Integer]` - +Defines the order for the mapfile. Accepts Integer or Strings. Default value: '10'. Default value: `'10'` -### `haproxy::peer` +### `haproxy::peer` This type will set up a peer entry inside the peers configuration block in haproxy.cfg on the load balancer. @@ -1649,22 +1661,22 @@ specify the instance name, ip address, ports and server_names. The following parameters are available in the `haproxy::peer` defined type: -* [`peers_name`](#peers_name) -* [`server_names`](#server_names) -* [`ipaddresses`](#ipaddresses) -* [`port`](#port) -* [`config_file`](#config_file) -* [`instance`](#instance) +* [`peers_name`](#-haproxy--peer--peers_name) +* [`server_names`](#-haproxy--peer--server_names) +* [`ipaddresses`](#-haproxy--peer--ipaddresses) +* [`port`](#-haproxy--peer--port) +* [`config_file`](#-haproxy--peer--config_file) +* [`instance`](#-haproxy--peer--instance) -##### `peers_name` +##### `peers_name` -Data type: `Any` +Data type: `String` Specifies the peer in which this load balancer needs to be added. -##### `server_names` +##### `server_names` -Data type: `Any` +Data type: `Variant[String[1], Array]` Sets the name of the peer server in the peers configuration block. Defaults to the hostname. Can be an array. If this parameter is @@ -1672,26 +1684,26 @@ specified as an array, it must be the same length as the ipaddresses parameter's array. A peer is created for each pair of server\_names and ipaddresses in the array. -Default value: `$::hostname` +Default value: `$hostname` -##### `ipaddresses` +##### `ipaddresses` -Data type: `Any` +Data type: `Variant[String, Array]` Specifies the IP address used to contact the peer member server. Can be an array. If this parameter is specified as an array it must be the same length as the server\_names parameter's array. A peer is created for each pair of address and server_name. -Default value: `$::ipaddress` +Default value: `$ipaddress` -##### `port` +##### `port` -Data type: `Any` +Data type: `Variant[String, Stdlib::Port]` Sets the port on which the peer is going to share the state. -##### `config_file` +##### `config_file` Data type: `Optional[Stdlib::Absolutepath]` @@ -1699,21 +1711,21 @@ Optional. Path of the config file where this entry will be added. Assumes that the parent directory exists. Default: $haproxy::params::config_file -Default value: ``undef`` - -##### `instance` +Default value: `undef` -Data type: `Any` +##### `instance` +Data type: `String` +The instance name of the mailer entry. Default value: 'haproxy'. Default value: `'haproxy'` -### `haproxy::peer::collect_exported` +### `haproxy::peer::collect_exported` Private define -### `haproxy::peers` +### `haproxy::peers` on the load balancer. This setting is required to share the current state of HAproxy with other HAproxy in High available @@ -1723,18 +1735,18 @@ configurations. The following parameters are available in the `haproxy::peers` defined type: -* [`name`](#name) -* [`config_file`](#config_file) -* [`instance`](#instance) -* [`collect_exported`](#collect_exported) +* [`name`](#-haproxy--peers--name) +* [`config_file`](#-haproxy--peers--config_file) +* [`instance`](#-haproxy--peers--instance) +* [`collect_exported`](#-haproxy--peers--collect_exported) -##### `name` +##### `name` Sets the peers' name. Generally it will be the namevar of the defined resource type. This value appears right after the 'peers' statement in haproxy.cfg -##### `config_file` +##### `config_file` Data type: `Optional[Stdlib::Absolutepath]` @@ -1742,9 +1754,9 @@ Optional. Path of the config file where this entry will be added. Assumes that the parent directory exists. Default: $haproxy::params::config_file -Default value: ``undef`` +Default value: `undef` -##### `instance` +##### `instance` Data type: `String` @@ -1752,15 +1764,15 @@ Optional. Defaults to 'haproxy' Default value: `'haproxy'` -##### `collect_exported` +##### `collect_exported` Data type: `Boolean` Boolean. Defaults to true -Default value: ``true`` +Default value: `true` -### `haproxy::resolver` +### `haproxy::resolver` === Authors @@ -1799,69 +1811,84 @@ haproxy::resolver { 'puppet00': The following parameters are available in the `haproxy::resolver` defined type: -* [`section_name`](#section_name) -* [`nameservers`](#nameservers) -* [`hold`](#hold) -* [`resolve_retries`](#resolve_retries) -* [`timeout`](#timeout) -* [`accepted_payload_size`](#accepted_payload_size) -* [`collect_exported`](#collect_exported) -* [`config_file`](#config_file) -* [`sort_options_alphabetic`](#sort_options_alphabetic) -* [`defaults`](#defaults) -* [`instance`](#instance) +* [`section_name`](#-haproxy--resolver--section_name) +* [`nameservers`](#-haproxy--resolver--nameservers) +* [`parse_resolv_conf`](#-haproxy--resolver--parse_resolv_conf) +* [`hold`](#-haproxy--resolver--hold) +* [`resolve_retries`](#-haproxy--resolver--resolve_retries) +* [`timeout`](#-haproxy--resolver--timeout) +* [`accepted_payload_size`](#-haproxy--resolver--accepted_payload_size) +* [`collect_exported`](#-haproxy--resolver--collect_exported) +* [`config_file`](#-haproxy--resolver--config_file) +* [`sort_options_alphabetic`](#-haproxy--resolver--sort_options_alphabetic) +* [`defaults`](#-haproxy--resolver--defaults) +* [`instance`](#-haproxy--resolver--instance) + +##### `section_name` -##### `section_name` - -Data type: `Any` +Data type: `String[1]` This name goes right after the 'resolvers' statement in haproxy.cfg Default: $name (the namevar of the resource). Default value: `$name` -##### `nameservers` +##### `nameservers` -Data type: `Any` +Data type: `Hash` Set of id, ip addresses and port options. $nameservers = { 'dns1' => '10.0.0.1:53', 'dns2' => '10.0.0.2:53' } +Either the 'nameservers' or the 'parse_resolv_conf' parameter must be +specified in order for the resolver to work. +Default: none specified. + +Default value: `{}` + +##### `parse_resolv_conf` + +Data type: `Boolean` -Default value: ``undef`` +If true, parse resolv.conf to retrieve an ordered set of nameservers. +This can be used instead of (or in addition to) the 'nameservers' +parameter. +Default: false + +Default value: `false` -##### `hold` +##### `hold` -Data type: `Any` +Data type: `Optional[Hash]` Defines during which the last name resolution should be kept based on last valid resolution status. $hold = { 'nx' => '30s', 'valid' => '10s' } -Default value: ``undef`` +Default value: `undef` -##### `resolve_retries` +##### `resolve_retries` -Data type: `Any` +Data type: `Optional[Integer]` Defines the number of queries to send to resolve a server name before giving up. $resolve_retries = 3 -Default value: ``undef`` +Default value: `undef` -##### `timeout` +##### `timeout` -Data type: `Any` +Data type: `Optional[Hash]` Defines timeouts related to name resolution in the listening serivce's configuration block. $timeout = { 'retry' => '1s' } -Default value: ``undef`` +Default value: `undef` -##### `accepted_payload_size` +##### `accepted_payload_size` -Data type: `Any` +Data type: `Optional[Integer[512, 8192]]` Defines the maximum payload size accepted by HAProxy and announced to all the name servers configured in this resolvers section. @@ -1869,11 +1896,11 @@ name servers configured in this resolvers section. by RFC 6891) Note: the maximum allowed value is 8192. -Default value: ``undef`` +Default value: `undef` -##### `collect_exported` +##### `collect_exported` -Data type: `Any` +Data type: `Boolean` Boolean, default 'true'. True means 'collect exported @@balancermember resources' (for the case when every balancermember node exports itself), @@ -1882,45 +1909,45 @@ Boolean, default 'true'. True means 'collect exported @@balancermember haproxy::balancermember with array arguments, which allows you to deploy everything in 1 run) -Default value: ``true`` +Default value: `true` -##### `config_file` +##### `config_file` -Data type: `Any` +Data type: `Optional[Stdlib::Absolutepath]` Optional. Path of the config file where this entry will be added. Assumes that the parent directory exists. Default: $haproxy::params::config_file -Default value: ``undef`` +Default value: `undef` -##### `sort_options_alphabetic` +##### `sort_options_alphabetic` -Data type: `Any` +Data type: `Boolean` Sort options either alphabetic or custom like haproxy internal sorts them. Defaults to true. -Default value: ``undef`` +Default value: `true` -##### `defaults` +##### `defaults` -Data type: `Any` +Data type: `Optional[String]` Name of the defaults section this backend will use. Defaults to undef which means the global defaults section will be used. -Default value: ``undef`` +Default value: `undef` -##### `instance` +##### `instance` -Data type: `Any` +Data type: `String` Optional. Defaults to 'haproxy' Default value: `'haproxy'` -### `haproxy::userlist` +### `haproxy::userlist` === Authors @@ -1932,40 +1959,40 @@ Jeremy Kitchen The following parameters are available in the `haproxy::userlist` defined type: -* [`section_name`](#section_name) -* [`users`](#users) -* [`groups`](#groups) -* [`config_file`](#config_file) -* [`instance`](#instance) +* [`section_name`](#-haproxy--userlist--section_name) +* [`users`](#-haproxy--userlist--users) +* [`groups`](#-haproxy--userlist--groups) +* [`config_file`](#-haproxy--userlist--config_file) +* [`instance`](#-haproxy--userlist--instance) -##### `section_name` +##### `section_name` -Data type: `String` +Data type: `String[1]` This name goes right after the 'userlist' statement in haproxy.cfg Default: $name (the namevar of the resource). Default value: `$name` -##### `users` +##### `users` Data type: `Optional[Array[Variant[String, Sensitive[String]]]]` An array of users in the userlist. See http://cbonte.github.io/haproxy-dconv/configuration-1.4.html#3.4-user -Default value: ``undef`` +Default value: `undef` -##### `groups` +##### `groups` Data type: `Optional[Array[String]]` An array of groups in the userlist. See http://cbonte.github.io/haproxy-dconv/configuration-1.4.html#3.4-group -Default value: ``undef`` +Default value: `undef` -##### `config_file` +##### `config_file` Data type: `Optional[Stdlib::Absolutepath]` @@ -1973,9 +2000,9 @@ Optional. Path of the config file where this entry will be added. Assumes that the parent directory exists. Default: $haproxy::params::config_file -Default value: ``undef`` +Default value: `undef` -##### `instance` +##### `instance` Data type: `String` diff --git a/metadata.json b/metadata.json index 60c12801..9af16da8 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "puppetlabs-haproxy", - "version": "6.4.0", + "version": "6.5.0", "author": "puppetlabs", "summary": "Configures HAProxy servers and manages the configuration of backend member servers.", "license": "Apache-2.0",