Introduces pre-commit framework with hooks for: - General file hygiene (trailing whitespace, EOF, large files) - Secret detection (TruffleHog) - YAML linting (yamllint) - Ansible linting (ansible-lint) - Python linting/formatting (ruff) - Shell script analysis (shellcheck, shfmt) - TOML formatting (taplo) - JSON formatting (prettier) Fixes 91+ ansible-lint violations: - Renamed variables to use role prefixes (e.g., brew_start -> alloy_brew_start) - Capitalized handler names per convention - Added changed_when to command tasks - Fixed template usage in task names Fixes shellcheck warnings: - Removed unused variables - Fixed SC2155 (declare and assign separately) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
583 B
YAML
20 lines
583 B
YAML
---
|
|
# Plex metrics collection configuration
|
|
|
|
# Plex server URL
|
|
plex_metrics_url: "http://localhost:32400"
|
|
|
|
# Path to file containing Plex token (should have 600 permissions)
|
|
plex_metrics_token_file: "/Users/erichblume/.plex-token"
|
|
|
|
# Metrics collection interval in seconds
|
|
plex_metrics_interval: 60
|
|
|
|
# Output directory for prometheus textfile collector
|
|
plex_metrics_dir: /opt/homebrew/var/node_exporter/textfile
|
|
|
|
# Script installation path
|
|
plex_metrics_script: /Users/erichblume/bin/plex-metrics
|
|
|
|
# Log directory for metrics script output
|
|
plex_metrics_log_dir: /opt/homebrew/var/log
|