diff options
author | tv <tv@krebsco.de> | 2015-07-16 23:22:30 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-07-16 23:22:30 +0200 |
commit | 6aadd262fc1ec1cb7159da9ee62bd35616ddc23d (patch) | |
tree | 57983c04bb49fe0375300861111a61cede545794 /old/Makefile | |
parent | 546d86da1e3cab814372fc57c83e737617c7fed8 (diff) |
Goodbye old world, and thanks for all the fish!
Diffstat (limited to 'old/Makefile')
-rw-r--r-- | old/Makefile | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/old/Makefile b/old/Makefile deleted file mode 100644 index bef7727..0000000 --- a/old/Makefile +++ /dev/null @@ -1,48 +0,0 @@ -all:;@exit 23 - -tv-cluster := cd mkdir nomic rmdir wu -deploy-cd:; ./deploy cd -deploy-mkdir:; ./deploy mkdir -deploy-nomic:; ./deploy nomic root@nomic-local -deploy-rmdir:; ./deploy rmdir -deploy-wu:; ./deploy wu root@localhost - -ifndef cluster -cluster := $(LOGNAME) -endif -hosts := $($(cluster)-cluster) -ifeq ($(hosts),) -$(error bad cluster: $(cluster)) -else -.ONESHELL: - -.PHONY: deploy $(addprefix deploy-,$(hosts)) -deploy: - exec parallel \ - -j 0 \ - --no-notice \ - --rpl '{u} s/^.* deploy-(.*)/\1/' \ - --tagstring '{u}' \ - --line-buffer \ - $(MAKE) deploy-{} ::: $(hosts) - -.PHONY: rotate-consul-encrypt -rotate-consul-encrypt: - umask 0377 - mkencrypt() { dd status=none if=/dev/random bs=1 count=16 | base64; } - json=$$(printf '{"encrypt":"%s"}\n' $$(mkencrypt)) - cmd=' - f=secrets/{}/rsync/etc/consul/encrypt.json - rm -f "$$f" - echo "$$json" > "$$f" - ' - export json - exec parallel \ - -j 0 \ - --no-notice \ - --rpl '{u} s/^.* deploy-(.*)/\1/' \ - --tagstring '{u}' \ - --line-buffer \ - --quote \ - sh -eufc "$$cmd" ::: $(hosts) -endif |