tripleo-validations/roles/haproxy
Gael Chamoulaud 02ebd6b335
Validate the playboooks metadata structure
This patch add a custom ansible-lint rule to enforce the structure of
the validations playbooks:

*ValidationHasMetadataRule*:
Throw an ansible-lint error if:
- the *hosts* key is empty or not found,
- *vars* dictionary is missing,
- *metadata* dict is missing in *vars*
- *name*/*description*/*groups* keys are missing or found with a wrong
  data type
- the validation belongs to one or several groups NOT in the official list of
  groups (groups.yaml)

*YAMLLINT*:
- Enable yamllint check in tox linters
- WIP Fix detected yamllint errors

Change-Id: If233286aa9f4299f02f13dc34f1e8c05d89df851
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
(cherry picked from commit e50e1a067d)
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2020-01-23 14:56:25 +01:00
..
defaults Add haproxy role 2019-03-15 10:41:53 +01:00
molecule/default Validate the playboooks metadata structure 2020-01-23 14:56:25 +01:00
tasks Add haproxy role 2019-03-15 10:41:53 +01:00
vars Add haproxy role 2019-03-15 10:41:53 +01:00
README.md Add haproxy role 2019-03-15 10:41:53 +01:00

README.md

haproxy

An Ansible role to check if the HAProxy configuration has recommended values.

Requirements

This role requires an Up and Running Overcloud

Role Variables

  • config_file: '/var/lib/config-data/puppet-generated/haproxy/etc/haproxy/haproxy.cfg'
  • global_maxconn_min: 20480
  • defaults_maxconn_min: 4096
  • defaults_timeout_queue: '2m'
  • defaults_timeout_client: '2m'
  • defaults_timeout_server: '2m'
  • defaults_timeout_check: '10s'

Dependencies

No dependencies

Example Playbook

- hosts: undercloud
  roles:
     - { role: haproxy }

License

Apache

Author Information

Red Hat TripleO Validations Team.