krebszones: RIP

This commit is contained in:
tv 2023-08-02 18:14:32 +02:00
parent 7e98588f8e
commit 363b381eec
3 changed files with 0 additions and 20 deletions

View File

@ -1,13 +0,0 @@
{ pkgs, ... }:
pkgs.writeDashBin "krebszones" ''
set -efu
export OVH_ZONE_CONFIG=''${OVH_ZONE_CONFIG:-$HOME/.secrets/krebs/ovh-zone.conf}
case $* in
import)
set -- import /etc/zones/krebsco.de krebsco.de
echo "+ krebszones $*" >&2
;;
esac
exec ${pkgs.ovh-zone}/bin/ovh-zone "$@"
''

View File

@ -35,12 +35,6 @@
export SYSTEM="$1"
$(nix-build $HOME/sync/stockholm/lass/krops.nix --no-out-link --argstr name "$SYSTEM" -A deploy)
'')
(pkgs.writeDashBin "krebsco.de" ''
TMPDIR=$(${pkgs.coreutils}/bin/mktemp -d)
${pkgs.brain}/bin/brain show krebs-secrets/ovh-secrets.json > "$TMPDIR"/ovh-secrets.json
OVH_ZONE_CONFIG="$TMPDIR"/ovh-secrets.json ${pkgs.krebszones}/bin/krebszones import
${pkgs.coreutils}/bin/rm -rf "$TMPDIR"
'')
(pkgs.writeDashBin "lassul.us" ''
TMPDIR=$(${pkgs.coreutils}/bin/mktemp -d)
${pkgs.pass}/bin/pass show admin/ovh/api.config > "$TMPDIR"/ovh-secrets.json

View File

@ -37,7 +37,6 @@ with import ./lib;
gnupg1compat
haskellPackages.hledger
jq
krebszones
mkpasswd
netcat
netcup