main.yml #2

  • //
  • guest/
  • russell_jackson/
  • ansible-sdp/
  • roles/
  • perforce-sdp-monitoring/
  • defaults/
  • main.yml
  • View
  • Commits
  • Open Download .zip Download (664 B)
---
# defaults file for perforce_sdp_monitoring

perforce_id: "1"

# repackaged this into tar so it works with unarchive
p4prometheus_config: "/p4/common/config/p4prometheus.yml"
p4prometheus_metrics_dir: "/p4/metrics"

perforce_user: "perforce"
perforce_group: "perforce"

perforce_location:
  address: ""
  city: ""
  country: ""
  latitude: "0"
  longitude: "0"
  office: ""
  state: ""
  studio: ""
  zip: ""

# Network latency monitoring - only runs on non-commit servers
p4_network_latency_enabled: true

# Disk space monitoring
p4_monitor_volumes:
  - "/p4"
  - "/hxdepots"
  - "/hxlogs"
  - "/hxmetadata"
p4_disk_warn_percent: 80
p4_disk_crit_percent: 90

# Change User Description Committed
#2 32507 Russell C. Jackson (Rusty) Fix monitoring role bugs and add health check, network latency, and disk space monitoring.

- Fix circular symlink (src and dest were identical)
- Fix force_apt_get on generic package module (split by OS family)
- Add missing become:yes on privileged tasks
- Add perforce_location defaults to prevent undefined variable errors
- Make case sensitivity check query live server via p4 info
- Remove redundant tasks already handled by install_p4prom.sh
- Remove unused handlers
- Add p4 health check probe (p4 info liveness and response time)
- Add network latency monitoring (ping commit server)
- Add disk space monitoring with configurable warn/crit thresholds
#1 32488 Russell C. Jackson (Rusty) Ansible scaffolding for the sdp - Needs work.