feat(vars/defaults): start working of configuration variables

This commit is contained in:
Bertrand Lanson 2024-01-29 23:03:27 +01:00
parent 8868ad49db
commit c8749accd8
4 changed files with 44 additions and 8 deletions

View File

@ -1,2 +1,34 @@
--- ---
# defaults file for deploy_haproxy # defaults file for deploy_haproxy
deploy_haproxy_deploy_method: host # deployment method, either host or docker
deploy_haproxy_version: latest
# Options from the "default" config block in haproxy.cfg
# The default values here are usually set, but you can change any of them.
deploy_haproxy_global:
- log /dev/log local0
- log /dev/log local1 notice
- stats socket {{ deploy_haproxy_socket }} level admin
- chroot {{ deploy_haproxy_chroot }}
- user {{ deploy_haproxy_user }}
- group {{ deploy_haproxy_group }}
- daemon
deploy_haproxy_defaults:
- log global
- mode http
- option httplog
- option dontlognull
- timeout connect 5000
- timeout client 5000
- timeout server 5000
deploy_haproxy_frontend:
- name: default
options:
- mode http
- bind :80
- default_backend default
deploy_haproxy_backend: []
deploy_haproxy_listen: []

View File

@ -1,12 +1,12 @@
--- ---
# meta file for deploy_haproxy # meta file for deploy_haproxy
galaxy_info: galaxy_info:
namespace: 'ednxzu' namespace: "ednxzu"
role_name: 'deploy_haproxy' role_name: "deploy_haproxy"
author: 'Bertrand Lanson' author: "Bertrand Lanson"
description: '' description: "Deploy HAProxy either directly or inside a docker container, on debian-based distributions"
license: 'license (BSD, MIT)' license: "license (BSD, MIT)"
min_ansible_version: '2.10' min_ansible_version: "2.10"
platforms: platforms:
- name: Ubuntu - name: Ubuntu
versions: versions:
@ -17,7 +17,9 @@ galaxy_info:
- bullseye - bullseye
- bookworm - bookworm
galaxy_tags: galaxy_tags:
- 'ubuntu' - "ubuntu"
- 'debian' - "debian"
- "haproxy"
- "docker"
dependencies: [] dependencies: []

2
tasks/prerequisites.yml Normal file
View File

@ -0,0 +1,2 @@
---
# task/prerequisites file for deploy_haproxy

0
templates/haproxy.cfg.j2 Normal file
View File