Skip to content
Snippets Groups Projects
Commit 1072b1d8 authored by Eric Veiras Galisson's avatar Eric Veiras Galisson
Browse files

ci(yamlint): fix

parent 60e8d19f
No related branches found
No related tags found
No related merge requests found
#
# Example pillar configuration
#
---
haproxy:
# use lookup section to override 'map.jinja' values
......@@ -9,8 +10,10 @@ haproxy:
# group: 'custom-group'
# new setting to override configuration file path
# config_file: /etc/haproxy/haproxy.cfg
enabled: True
overwrite: True # Overwrite an existing config file if present (default behaviour unless set to false)
enabled: true
# Overwrite an existing config file if present
# (default behaviour unless set to false)
overwrite: true
# old setting to override configuration file path, kept for compatibility
# config_file_path: /etc/haproxy/haproxy.cfg
global:
......@@ -22,22 +25,24 @@ haproxy:
# Optional log-send-hostname parameter, sets the hostname field in the syslog header
log-send-hostname: localhost
stats:
enable: True
enable: true
socketpath: /var/lib/haproxy/stats
mode: 660
level: admin
# yamllint disable-line rule:line-length
# Optional extra bind parameter, for example to set the owner/group on the socket file
extra: user haproxy group haproxy
# yamllint disable-line rule:line-length
ssl-default-bind-ciphers: "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384"
ssl-default-bind-options: "no-sslv3 no-tlsv10 no-tlsv11"
user: haproxy
group: haproxy
chroot:
enable: True
enable: true
path: /var/lib/haproxy
daemon: True
daemon: true
userlists:
......@@ -45,9 +50,6 @@ haproxy:
users:
john: insecure-password doe
sam: insecure-password frodo
# groups:
# admins: users john sam
# guests: users jekyll hyde jane
defaults:
log: global
......@@ -58,6 +60,7 @@ haproxy:
- dontlognull
- forwardfor
- http-server-close
# yamllint disable-line rule:line-length
logformat: "%ci:%cp\\ [%t]\\ %ft\\ %b/%s\\ %Tq/%Tw/%Tc/%Tr/%Tt\\ %ST\\ %B\\ %CC\\ %CS\\ %tsc\\ %ac/%fc/%bc/%sc/%rc\\ %sq/%bq\\ %hr\\ %hs\\ %{+Q}r"
timeouts:
- http-request 10s
......@@ -82,7 +85,6 @@ haproxy:
503: /etc/haproxy/errors/503.http
504: /etc/haproxy/errors/504.http
{# Suported by HAProxy 1.6 #}
resolvers:
local_dns:
options:
......@@ -98,7 +100,7 @@ haproxy:
- "0.0.0.0:8998"
mode: http
stats:
enable: True
enable: true
uri: "/admin?stats"
refresh: "20s"
myservice:
......@@ -161,6 +163,7 @@ haproxy:
# www-https:
# bind: "*:443 ssl crt /etc/ssl/private/certificate-chain-and-key-combined.pem"
# yamllint disable-line rule:line-length
# logformat: "%ci:%cp\\ [%t]\\ %ft\\ %b/%s\\ %Tq/%Tw/%Tc/%Tr/%Tt\\ %ST\\ %B\\ %CC\\ %CS\\ %tsc\\ %ac/%fc/%bc/%sc/%rc\\ %sq/%bq\\ %hr\\ %hs\\ %{+Q}r\\ ssl_version:%sslv\\ ssl_cipher:%sslc"
# reqadds:
# - "X-Forwarded-Proto:\\ https"
......@@ -201,7 +204,7 @@ haproxy:
- httplog
cookie: "pm insert indirect"
stats:
enable: True
enable: true
uri: /url/to/stats
realm: LoadBalancer
auth: "user:password"
......
---
hosts:
- server1: 127.0.0.1
- server2: 127.0.0.1
......@@ -6,4 +7,3 @@ hosts:
- web3.example.com: 127.0.0.1
- apiserver1.example.com: 127.0.0.1
- apiserver2.example.com: 127.0.0.1
{% set hosts = salt['pillar.get']('hosts', []) %}
{% for host in hosts %}
......@@ -8,4 +7,3 @@
- ip: {{ ip }}
{% endfor %}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment