Commit 450fb70c authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

Polish homer

parent f29608d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ homer_namespace: "homer"
# Dashboard Content
# ==========================================
homer_title: "i2CAT Operator Platform"
homer_subtitle: "OOP Federation Manager & Services"
homer_subtitle: "Operator Platform Services"

# ==========================================
# Theme Settings
+107 −61
Original line number Diff line number Diff line
---
{% set current_host_name = inventory_hostname %}
{% set current_host_ip = external_host_ip | default(host_ip) | default(ansible_host) | default("HOST_IP") %}
{% set peer_host_name = none %}
{% set peer_host_ip = none %}
{% set has_peer_platform = false %}
{% set show_lite2edge = edgecloud_platform | default('none') == 'lite2edge' %}
{% set show_i2edge = edgecloud_platform | default('none') == 'i2edge' %}
{% if groups['op1_nodes'] is defined and groups['op2_nodes'] is defined %}
{% if inventory_hostname in groups['op1_nodes'] %}
{% set peer_host_name = groups['op2_nodes'][0] %}
{% elif inventory_hostname in groups['op2_nodes'] %}
{% set peer_host_name = groups['op1_nodes'][0] %}
{% endif %}
{% if peer_host_name in hostvars %}
{% set peer_host_ip = hostvars[peer_host_name].external_host_ip | default(hostvars[peer_host_name].host_ip) | default(hostvars[peer_host_name].ansible_host) | default("HOST_IP") %}
{% set has_peer_platform = true %}
{% endif %}
{% endif %}
title: "{{ homer_title }}"
subtitle: "{{ homer_subtitle }}"
subtitle: "{{ homer_subtitle }} · {{ current_host_name }}"
logo: "{{ homer_logo }}"
# header: true
# footer: '<p>Created with <span class="has-text-danger">❤️</span> with <a href="https://bulma.io/">bulma</a>, <a href="https://vuejs.org/">vuejs</a> & <a href="https://fontawesome.com/">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i class="fab fa-github-alt"></i></a></p>' # set false if you want to hide it.
@@ -28,100 +46,128 @@ theme:
        link-hover: "{{ homer_color_hover }}"

services:
  - name: "Federation Manager Stack"
    icon: "fas fa-network-wired"
  - name: "Current Operator Platform ({{ current_host_name }})"
    icon: "fas fa-server"
    items:
      - name: "Federation Manager"
        logo: "assets/tools/sample.png"
        subtitle: "Manage Federation"
        subtitle: "{{ current_host_name }} · Manage federation"
        tag: "app"
        url: "http://{{ external_host_ip | default(host_ip) | default(ansible_host) | default("HOST_IP") }}:{{ federation_manager_local.nodeport | default(30989) }}"
        url: "http://{{ current_host_ip }}:{{ federation_manager_local.nodeport | default(30989) }}"
        target: "_blank"
      - name: "Keycloak"
        logo: "assets/tools/sample.png"
        subtitle: "Identity and Access Management"
        subtitle: "{{ current_host_name }} · Identity and access"
        tag: "auth"
        url: "http://{{ external_host_ip | default(host_ip) | default(ansible_host) | default("HOST_IP") }}:{{ federation_manager_local.keycloak_nodeport | default(30082) }}"
        url: "http://{{ current_host_ip }}:{{ federation_manager_local.keycloak_nodeport | default(30082) }}"
        target: "_blank"
      - name: "SRM"
        logo: "assets/tools/sample.png"
        subtitle: "{{ current_host_name }} · Service Resource Manager"
        tag: "oop"
        url: "http://{{ current_host_ip }}:{{ srm_nodeport | default(32415) }}/srm/1.0.0/ui/"
        target: "_blank"
      - name: "OEG"
        logo: "assets/tools/sample.png"
        subtitle: "{{ current_host_name }} · Open Exposure Gateway"
        tag: "oop"
        url: "http://{{ current_host_ip }}:{{ oeg_nodeport | default(32263) }}/oeg/1.0.0/docs/"
        target: "_blank"
      - name: "Artefact Manager"
        logo: "assets/tools/sample.png"
        subtitle: "{{ current_host_name }} · Manage artefacts"
        tag: "app"
        url: "http://{{ current_host_ip }}:{{ artefact_manager_nodeport | default(30080) }}/docs"
        target: "_blank"
      - name: "Homer"
        logo: "assets/tools/sample.png"
        subtitle: "{{ current_host_name }} · Dashboard"
        tag: "infra"
        url: "http://{{ current_host_ip }}:{{ homer_nodeport }}"
        target: "_blank"
      - name: "Zot"
        logo: "assets/tools/sample.png"
        subtitle: "{{ current_host_name }} · Container registry"
        tag: "infra"
        url: "http://{{ current_host_ip }}:{{ zot_http_nodeport }}"
        target: "_blank"
{% if show_lite2edge %}
      - name: "Lite2Edge"
        logo: "assets/tools/sample.png"
        subtitle: "{{ current_host_name }} · Edge platform"
        tag: "edge"
        url: "http://{{ current_host_ip }}:{{ lite2edge_nodeport | default(30081) }}/docs"
        target: "_blank"
{% endif %}
{% if show_i2edge %}
      - name: "i2Edge"
        logo: "assets/tools/sample.png"
        subtitle: "{{ current_host_name }} · Edge platform"
        tag: "edge"
        url: "http://{{ current_host_ip }}:{{ i2edge_nodeport | default(30769) }}/docs"
        target: "_blank"
{% endif %}

  - name: "Remote Federation Manager Stack"
    icon: "fas fa-network-wired"
{% if has_peer_platform %}
  - name: "Peer Operator Platform ({{ peer_host_name }})"
    icon: "fas fa-server"
    items:
      - name: "Remote Federation Manager"
      - name: "Federation Manager"
        logo: "assets/tools/sample.png"
        subtitle: "Manage Remote Federation"
        subtitle: "{{ peer_host_name }} · Manage federation"
        tag: "app"
        url: "http://{{ external_host_ip | default(host_ip) | default(ansible_host) | default("HOST_IP") }}:{{ federation_manager_remote.nodeport | default(30990) }}"
        url: "http://{{ peer_host_ip }}:{{ federation_manager_local.nodeport | default(30989) }}"
        target: "_blank"
      - name: "Remote Keycloak"
      - name: "Keycloak"
        logo: "assets/tools/sample.png"
        subtitle: "Remote Identity and Access Management"
        subtitle: "{{ peer_host_name }} · Identity and access"
        tag: "auth"
        url: "http://{{ external_host_ip | default(host_ip) | default(ansible_host) | default("HOST_IP") }}:{{ federation_manager_remote.keycloak_nodeport | default(30083) }}"
        url: "http://{{ peer_host_ip }}:{{ federation_manager_local.keycloak_nodeport | default(30082) }}"
        target: "_blank"

  - name: "Operator Platform Services"
    icon: "fas fa-cubes"
    items:
      - name: "SRM (Service Resource Manager)"
      - name: "SRM"
        logo: "assets/tools/sample.png"
        subtitle: "Service Resource Management API"
        subtitle: "{{ peer_host_name }} · Service Resource Manager"
        tag: "oop"
        url: "http://{{ external_host_ip | default(host_ip) | default(ansible_host) | default("HOST_IP") }}:{{ srm_nodeport | default(32415) }}/srm/1.0.0/ui/"
        url: "http://{{ peer_host_ip }}:{{ srm_nodeport | default(32415) }}/srm/1.0.0/ui/"
        target: "_blank"
      - name: "OEG (Open Exposure Gateway)"
      - name: "OEG"
        logo: "assets/tools/sample.png"
        subtitle: "Open Exposure Gateway API"
        subtitle: "{{ peer_host_name }} · Open Exposure Gateway"
        tag: "oop"
        url: "http://{{ external_host_ip | default(host_ip) | default(ansible_host) | default("HOST_IP") }}:{{ oeg_nodeport | default(32263) }}/oeg/1.0.0/docs/"
        url: "http://{{ peer_host_ip }}:{{ oeg_nodeport | default(32263) }}/oeg/1.0.0/docs/"
        target: "_blank"
      - name: "Artefact Manager"
        logo: "assets/tools/sample.png"
        subtitle: "Manage Artefacts"
        tag: "app"
        url: "http://{{ external_host_ip | default(host_ip) | default(ansible_host) | default("HOST_IP") }}:{{ artefact_manager_nodeport | default(30080) }}/docs"
        target: "_blank"
      - name: "i2edge"
        logo: "assets/tools/sample.png"
        subtitle: "Edge Cloud Platform"
        subtitle: "{{ peer_host_name }} · Manage artefacts"
        tag: "app"
        url: "http://{{ external_host_ip | default(host_ip) | default(ansible_host) | default("HOST_IP") }}:{{ i2edge_nodeport | default(30769) }}/docs"
        url: "http://{{ peer_host_ip }}:{{ artefact_manager_nodeport | default(30080) }}/docs"
        target: "_blank"
      - name: "lite2edge"
      - name: "Homer"
        logo: "assets/tools/sample.png"
        subtitle: "Kubernetes Adapter"
        tag: "app"
        url: "http://{{ external_host_ip | default(host_ip) | default(ansible_host) | default("HOST_IP") }}:{{ lite2edge_nodeport | default(30081) }}/docs"
        subtitle: "{{ peer_host_name }} · Dashboard"
        tag: "infra"
        url: "http://{{ peer_host_ip }}:{{ homer_nodeport }}"
        target: "_blank"

  - name: "Infrastructure"
    icon: "fas fa-server"
    items:
      - name: "Zot"
        logo: "assets/tools/sample.png"
        subtitle: "Container Registry"
        subtitle: "{{ peer_host_name }} · Container registry"
        tag: "infra"
        url: "http://{{ external_host_ip | default(host_ip) | default(ansible_host) | default("HOST_IP") }}:{{ zot_http_nodeport }}"
        target: "_blank"

  - name: "Monitoring"
    icon: "fas fa-chart-line"
    items:
      - name: "Grafana"
        logo: "assets/tools/sample.png"
        subtitle: "Metrics Dashboard"
        tag: "monitoring"
        url: "http://{{ external_host_ip | default(host_ip) | default(ansible_host) | default("HOST_IP") }}:{{ grafana_nodeport | default(30091) }}"
        url: "http://{{ peer_host_ip }}:{{ zot_http_nodeport }}"
        target: "_blank"
      - name: "Prometheus"
{% if show_lite2edge %}
      - name: "Lite2Edge"
        logo: "assets/tools/sample.png"
        subtitle: "Metrics Collection"
        tag: "monitoring"
        url: "http://{{ external_host_ip | default(host_ip) | default(ansible_host) | default("HOST_IP") }}:{{ prometheus_nodeport | default(30090) }}"
        subtitle: "{{ peer_host_name }} · Edge platform"
        tag: "edge"
        url: "http://{{ peer_host_ip }}:{{ lite2edge_nodeport | default(30081) }}/docs"
        target: "_blank"
      - name: "AlertManager"
{% endif %}
{% if show_i2edge %}
      - name: "i2Edge"
        logo: "assets/tools/sample.png"
        subtitle: "Alerting"
        tag: "monitoring"
        url: "http://{{ external_host_ip | default(host_ip) | default(ansible_host) | default("HOST_IP") }}:{{ alertmanager_nodeport }}"
        subtitle: "{{ peer_host_name }} · Edge platform"
        tag: "edge"
        url: "http://{{ peer_host_ip }}:{{ i2edge_nodeport | default(30769) }}/docs"
        target: "_blank"
{% endif %}
{% endif %}