Files
configpolicy/group_vars/pikvm.yml
Dustin C. Hatch 7eeacdecd7 pikvm: Add user for Prometheus metrics
PiKVM exports metrics in Prometheus format, but requires authentication
to scrape them.
2025-12-01 12:17:26 -06:00

21 lines
452 B
YAML

root_authorized_keys: |
{{ dustin_ssh_keys_sk }}
root_password_hash: ''
pikvm_users:
- username: dustin
password: >-
{{ lookup('pipe','rbw get --folder Pyrocufflink ' + ansible_hostname + ' dustin') }}
- username: prometheus
password: >-
{{
lookup(
"kubernetes.core.k8s",
kind="Secret",
namespace="victoria-metrics",
resource_name="vmagent",
).data["pikvm.password"]
| b64decode
}}