diff --git a/docker/data/homepage/services.yaml b/docker/data/homepage/services.yaml index 5eaac75..a7ee27d 100644 --- a/docker/data/homepage/services.yaml +++ b/docker/data/homepage/services.yaml @@ -23,7 +23,7 @@ - Komga: icon: komga.png href: http://goon.kotori-waifu - description: Anime Tiddies + description: Manga Reader ping: http://10.0.10.68:25600 - Immich: @@ -105,8 +105,18 @@ description: Meal Planning ping: http://10.0.10.68:9925 - - Code: - icon: code.png - href: http://code.kotori-waifu - description: Code - ping: http://10.0.10.68:8443 + - Gitea: + icon: gitea.png + href: http://git.kotori-waifu + description: Git Version Control + + - Vaultwarden: + icon: vaultwarden.png + href: http://vault.kotori-waifu + description: Password Manager + ping: http://10.0.10.68:42088 + + - Nexus: + icon: homepage.png + href: https://nexus.kotori-waifu.cc + description: homepage diff --git a/docker/data/prometheus/prometheus.yml b/docker/data/prometheus/prometheus.yml new file mode 100644 index 0000000..89cedab --- /dev/null +++ b/docker/data/prometheus/prometheus.yml @@ -0,0 +1,15 @@ +global: + scrape_interval: 15s + +scrape_configs: + - job_name: 'prometheus' + static_configs: + - targets: ['localhost:9090'] + + - job_name: 'node-exporter' + static_configs: + - targets: ['node-exporter:9100'] + + - job_name: 'cadvisor' + static_configs: + - targets: ['cadvisor:8080'] diff --git a/site.yml b/site.yml index 49a9742..eb6a4e5 100644 --- a/site.yml +++ b/site.yml @@ -3,6 +3,17 @@ hosts: minipc gather_facts: false tasks: + - name: Check if prometheus.yml is a directory + ansible.builtin.stat: + path: /opt/homelab/data/prometheus/prometheus.yml + register: prom_stat + + - name: Remove prometheus.yml if it is a directory + ansible.builtin.file: + path: /opt/homelab/data/prometheus/prometheus.yml + state: absent + when: prom_stat.stat.isdir is defined and prom_stat.stat.isdir + - name: Sync GitOps stacks to target machine ansible.posix.synchronize: src: "{{ playbook_dir }}/docker/stacks/"