Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Add support for plugins #15

Merged
merged 3 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ devture_traefik_config_dir_path: "{{ devture_traefik_base_path }}/config"
devture_traefik_ssl_dir_enabled: "{{ devture_traefik_config_certificatesResolvers_acme_enabled }}"
devture_traefik_ssl_dir_path: "{{ devture_traefik_base_path }}/ssl"

# Controls whether devture_traefik_plugins_dir_path is created and mounted
devture_traefik_plugin_support_enabled: false
devture_traefik_plugins_dir_path: "{{ devture_traefik_base_path }}/plugins-storage"

devture_traefik_systemd_required_services_list: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"

devture_traefik_container_image: "{{ devture_traefik_container_image_registry_prefix }}traefik:{{ devture_traefik_container_image_tag }}"
Expand Down
2 changes: 2 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
when: true
- path: "{{ devture_traefik_ssl_dir_path }}"
when: "{{ devture_traefik_ssl_dir_enabled }}"
- path: "{{ devture_traefik_plugins_dir_path }}"
when: "{{ devture_traefik_plugin_support_enabled }}"

- when: devture_traefik_dashboard_basicauth_enabled | bool
block:
Expand Down
3 changes: 3 additions & 0 deletions templates/devture-traefik.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \
{% if devture_traefik_config_providers_docker_endpoint_is_unix_socket %}
--mount type=bind,src={{ devture_traefik_config_providers_docker_endpoint | replace('unix://', '') }},dst=/var/run/docker.sock,ro \
{% endif %}
{% if devture_traefik_plugin_support_enabled %}
--mount type=bind,src={{ devture_traefik_plugins_dir_path }},dst=/plugins-storage \
{% endif %}
{% if devture_traefik_container_extra_arguments | length > 0 %}
{{ devture_traefik_container_extra_arguments | join(" ") }} \
{% endif %}
Expand Down
Loading