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", }, }, }