350650ecc2
- Create systemd service templates for llama_exporter, nvidia_exporter, and podman. - Add Prometheus configuration template for GPU metrics scraping. - Introduce variables for GPU monitoring role in main.yml. - Implement tasks for syncing llama models, including user setup and package installation. - Update podman tasks to ensure proper sudo access and lingering for the podman user. - Modify inventory to include gpu_monitoring group. - Add Terraform modules for deploying Vaultwarden, including ingress and service configurations. - Create Grafana dashboard for real-time GPU monitoring metrics. - Update secrets and environment files to include Vaultwarden admin token.
14 lines
441 B
YAML
14 lines
441 B
YAML
---
|
|
- name: Add Prometheus firewall rules
|
|
become: true
|
|
community.general.ufw:
|
|
rule: allow
|
|
src: "{{ item.cidr }}"
|
|
port: "{{ prometheus_fw_port | string }}"
|
|
proto: "{{ prometheus_fw_proto }}"
|
|
comment: "{{ item.comment | default(omit) }}"
|
|
loop: "{{ prometheus_fw_allowed_networks }}"
|
|
loop_control:
|
|
label: "{{ item.cidr }} -> port {{ prometheus_fw_port }}"
|
|
when: item.cidr is defined and item.cidr | length > 0
|