Moving setup into its own role, where we just set up the system configuuration for running k3s'

This commit is contained in:
2024-02-11 15:10:38 -08:00
parent 35505f90f3
commit afd64caebd
35 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
alerting:
alertmanagers:
- follow_redirects: true
enable_http2: true
scheme: http
timeout: 10s
api_version: v2
static_configs:
- targets: []
scrape_configs:
- job_name: prometheus-scraper
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- localhost:9090
- "{{PRIVATE_IP}}":9100

View File

@@ -0,0 +1,6 @@
server {
server_name {{SERVER_NAME}};
location / {
proxy_pass http://127.0.0.1:{{PORT}};
}
}

View File

@@ -0,0 +1,15 @@
{
"backend": {
"file": {
"path": "/vault/file"
}
},
"listener": {
"tcp": {
"address": "0.0.0.0:{{VAULT_PORT}}",
"tls_disable": 1
}
},
"ui": true
}