mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 04:48:06 +00:00
Added example inventory
This commit is contained in:
20
hpk-inv.py
Normal file
20
hpk-inv.py
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
|
def get_pass(filename: str) -> str:
|
||||||
|
"""Get the data from the password manager."""
|
||||||
|
r = subprocess.run(["pass", "show", filename], capture_output=True, check=True)
|
||||||
|
return r.stdout.decode("utf-8")
|
||||||
|
|
||||||
|
chatmail = [
|
||||||
|
(
|
||||||
|
"c1.testrun.org",
|
||||||
|
{
|
||||||
|
"ssh_user": "root",
|
||||||
|
"domain": "c1.testrun.org",
|
||||||
|
"dkim_selector": "2023",
|
||||||
|
"dkim_key": get_pass("delta/c1.testrun.org/dkim_key"),
|
||||||
|
"dkim_txt": get_pass("delta/c1.testrun.org/dkim_txt"),
|
||||||
|
},
|
||||||
|
),
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user