Skip to content

Commit

Permalink
Merge pull request #730 from gabrielgradinaru/homepage-support-portainer
Browse files Browse the repository at this point in the history
Add homepage support for portainer
  • Loading branch information
davestephens authored Oct 9, 2024
2 parents feae98d + a4a2182 commit ed70b95
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/portainer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
traefik.http.services.portainer.loadbalancer.server.port: "9443"
traefik.http.routers.portainer.middlewares: "portainer-ipallowlist@docker"
traefik.http.middlewares.portainer-ipallowlist.ipallowlist.sourcerange: "{{ portainer_ip_allowlist }}"
homepage.group: System Tools
homepage.name: Portainer
homepage.icon: portainer.png
homepage.href: "https://{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:{{ portainer_port }}"
homepage.description: Container management
homepage.widget.type: portainer
homepage.widget.url: "https://{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:{{ portainer_port }}"
when: portainer_enabled is true

- name: Stop Portainer
Expand Down

0 comments on commit ed70b95

Please sign in to comment.