feat: add various infrastructure check and automation scripts

This commit is contained in:
2026-11-15 17:17:41 -05:00
parent 336b7759d0
commit b301aa3ece
232 changed files with 8274 additions and 298 deletions

View File

@@ -0,0 +1,13 @@
with open(r'c:\Users\Snarf\OneDrive\Desktop\code\SnarfCode\homelab-gitops-repo\manifests\aerodrome\prometheus\prometheus.yaml', 'r', encoding='utf-8') as f:
text = f.read()
start_marker = "prometheus.yml: |"
start_idx = text.find(start_marker)
end_idx = text.find("\n---", start_idx)
raw_yml = text[start_idx + len(start_marker):end_idx]
print("Contains shipyard:", "shipyard" in raw_yml)
for line in raw_yml.splitlines():
if "shipyard" in line or "spaceport" in line or "node-exporter" in line:
print(line)