1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
directories = {
"/var/lib/geopulse": {},
}
files = {
"/etc/deployments/geopulse/kube.yaml": {
"content_type": "mako",
"context": node.metadata.get("containers")["geopulse"],
"triggers": {"svc_s6rc:geopulse:restart"},
},
"/etc/deployments/geopulse/secret.yaml": {
"content_type": "mako",
"mode": "0600",
"triggers": {"svc_s6rc:geopulse:restart"},
},
}
actions = {
"keygen": {
"command": """
set -ex
cd /var/lib/geopulse/
curl -sSfL https://raw.githubusercontent.com/tess1o/geopulse/refs/tags/1.2.0/generate-keys.sh |
sed -e 's|KEYS_DIR="/keys"|KEYS_DIR="./keys"|' |
sh -
""",
"unless": """
cd /var/lib/geopulse/keys &&
test -f jwt-private-key.pem &&
test -f jwt-public-key.pem &&
test -f ai-encryption-key.txt
""",
"needs": {
"directory:/var/lib/geopulse",
},
},
}
|