Files
railiance-infra/scripts/sops.sh

11 lines
253 B
Bash

#!/usr/bin/env bash
set -euo pipefail
case "${1:-}" in
edit) sops inventory/group_vars/secrets.sops.yaml ;;
rotate) sops --rotate --in-place inventory/group_vars/secrets.sops.yaml ;;
*)
echo "Usage: scripts/sops.sh [edit|rotate]"
;;
esac