Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
haproxy-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
haproxy-formula
Commits
1072b1d8
Commit
1072b1d8
authored
5 years ago
by
Eric Veiras Galisson
Browse files
Options
Downloads
Patches
Plain Diff
ci(yamlint): fix
parent
60e8d19f
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
pillar.example
+40
-37
40 additions, 37 deletions
pillar.example
test/salt/pillar/hosts.sls
+1
-1
1 addition, 1 deletion
test/salt/pillar/hosts.sls
test/salt/salt/hosts/init.sls
+0
-2
0 additions, 2 deletions
test/salt/salt/hosts/init.sls
with
41 additions
and
40 deletions
pillar.example
+
40
−
37
View file @
1072b1d8
#
# 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:
T
rue
enable:
t
rue
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:
T
rue
enable:
t
rue
path: /var/lib/haproxy
daemon:
T
rue
daemon:
t
rue
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:
T
rue
enable:
t
rue
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:
T
rue
enable:
t
rue
uri: /url/to/stats
realm: LoadBalancer
auth: "user:password"
...
...
This diff is collapsed.
Click to expand it.
test/salt/pillar/hosts.sls
+
1
−
1
View file @
1072b1d8
---
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
This diff is collapsed.
Click to expand it.
test/salt/salt/hosts/init.sls
+
0
−
2
View file @
1072b1d8
{% set hosts = salt['pillar.get']('hosts', []) %}
{% for host in hosts %}
...
...
@@ -8,4 +7,3 @@
- ip: {{ ip }}
{% endfor %}
{% endfor %}
This diff is collapsed.
Click to expand it.
Dennis Ahrens
@ahrensde
mentioned in commit
dfce6574
·
5 years ago
mentioned in commit
dfce6574
mentioned in commit dfce657454a286a20bdbb289b965597172c0fc98
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment