tasks: add update_hound_repos

This commit is contained in:
zowoq 2023-01-16 09:37:38 +10:00
parent daa0cd24c3
commit b0fcba7020

View file

@ -1,6 +1,7 @@
#!/usr/bin/env python3
import json
import os
import subprocess
import sys
from typing import Any, List
@ -95,6 +96,15 @@ def _format_disks(host: DeployHost, devices: List[str]) -> None:
host.run("mount -t ext4 /dev/md127 /mnt/boot")
@task
def update_hound_repos(c):
"""
Update list of repos for hound search
"""
os.chdir("services/hound")
c.run("./update-hound.py > hound.json")
@task
def update_sops_files(c):
"""