Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neutrinet
infra-ansible
Commits
f810fff7
Commit
f810fff7
authored
Aug 18, 2021
by
HgO
Browse files
rename haproxy certificates
parent
507354cc
Pipeline
#420
passed with stage
in 1 minute and 35 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
roles/haproxy/files/haproxy.py
View file @
f810fff7
...
...
@@ -35,7 +35,7 @@ if not result:
domain
=
result
.
group
(
1
)
# Define a path for HAproxy where you want to write the .pem file.
deploy_path
=
"/etc/haproxy/ssl/"
+
domain
+
".pem"
deploy_path
=
"/etc/haproxy/ssl/"
+
domain
.
replace
(
'.'
,
'-'
)
+
".pem"
# The source files can be found in below paths, constructed with the lineage
# path
...
...
roles/haproxy/templates/telegraf/haproxy.conf.j2
View file @
f810fff7
...
...
@@ -12,7 +12,8 @@
## Prefix your entry with 'file://' if you intend to use relative paths
sources = [
{% for domain in letsencrypt.domains_gandi %}
"/etc/haproxy/ssl/{{ domain }}.pem",
"/etc/haproxy/ssl/{{ domain }}-ecdsa.pem"{% if not loop.last %},{% endif %}
"/etc/haproxy/ssl/{{ domain | replace('.', '-') }}.pem",
"/etc/haproxy/ssl/{{ domain | replace('.', '-') }}-ecdsa.pem"{% if not loop.last %},{% endif %}
{% endfor %}
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment