Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

traefik: add customization options #496

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

khartahk
Copy link
Contributor

  • Updates traefik v2.4->v2.5 (I've done an in-place upgrade and it worked with no issues)
  • Adds ability to even further customize traefik2 configuration but keeps all the current settings as default
    • parametrize container image using traefik_image
    • parametrize templated files with traefik_template_files{,_custom} template custom files
    • parametrize container volumes with traefik_docker_volumes{,_custom} mount custom volumes to container
    • parametrize entryPoint.web port traefik_port_http
    • use ansible_nas_domain_root as added in netdata: allow customizing netdata.conf, allow custom host domain #495 to allow more customization for domain names
    • parametrize domains used to generate certificates using traefik_domain_san{,_custom}
  • Optionaly add certificatesResolvers.letsencryptTls that uses TLS to authenticate for domain certificates, usefull if you have some domains that aren't using default ansible_nas_domain or *.ansible_nas_domain domain

Example for templating:
I'm using this to seed the account-file.json to multiple server that I use as a failover. acme-dns uses it to store the "passwords" for domain certs it tries to / issues.

@khartahk khartahk changed the title Traefik: add customization options traefik: add customization options Nov 11, 2021
@khartahk khartahk force-pushed the role-traefik branch 8 times, most recently from 185f88e to caecaec Compare November 11, 2021 17:09
@khartahk khartahk force-pushed the role-traefik branch 2 times, most recently from d7250ca to c990a62 Compare June 30, 2022 14:16
- Updates traefik v2.4->v2.5 (I've done an in-place upgrade and it worked with no issues)
- Adds ability to even further customize traefik2 configuration but keeps all the current settings as default
    - parametrize container image using `traefik_image`
    - parametrize templated files with `traefik_template_files{,_custom}` template custom files
    - parametrize container volumes with `traefik_docker_volumes{,_custom}` mount custom volumes to container
    - parametrize entryPoint.web port `traefik_port_http`
    - use `ansible_nas_domain_root` as added in davestephens#495 to allow more customization for domain names
    - parametrize domains used to generate certificates using `traefik_domain_san{,_custom}`
- Optionaly add `certificatesResolvers.letsencryptTls` that uses TLS to authenticate for domain certificates, usefull if you have some domains that aren't using default `ansible_nas_domain` or `*.ansible_nas_domain` domain

Example for templating:
I'm using this to seed the account-file.json to multiple server that I use as a failover. `acme-dns` uses it to store the "passwords" for domain certs it tries to / issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant