tasks: add update_hound_repos
This commit is contained in:
parent
daa0cd24c3
commit
b0fcba7020
1 changed files with 10 additions and 0 deletions
10
tasks.py
10
tasks.py
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
from typing import Any, List
|
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")
|
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
|
@task
|
||||||
def update_sops_files(c):
|
def update_sops_files(c):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue