From 26fa26f035721148d3ad0ba9c76b927550176cb1 Mon Sep 17 00:00:00 2001 From: mobinmob Date: Thu, 3 Feb 2022 21:45:31 +0200 Subject: [PATCH] vault: fix and enhance service, add sample conf file. --- srcpkgs/vault/files/vault.conf | 6 ++++++ srcpkgs/vault/files/vault/log/run | 1 + srcpkgs/vault/files/vault/run | 2 +- srcpkgs/vault/template | 3 ++- 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/vault/files/vault.conf create mode 120000 srcpkgs/vault/files/vault/log/run diff --git a/srcpkgs/vault/files/vault.conf b/srcpkgs/vault/files/vault.conf new file mode 100644 index 000000000000..c2a404c6cfcf --- /dev/null +++ b/srcpkgs/vault/files/vault.conf @@ -0,0 +1,6 @@ +# Please configure vault according to the the documentation. +# The contents below are the bare minimum to allow the service to run. + +storage "file" { + path = "/mnt/vault/data" +} diff --git a/srcpkgs/vault/files/vault/log/run b/srcpkgs/vault/files/vault/log/run new file mode 120000 index 000000000000..3a5b4a586051 --- /dev/null +++ b/srcpkgs/vault/files/vault/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/vault/files/vault/run b/srcpkgs/vault/files/vault/run index 840cc2836921..c5b226b3045c 100644 --- a/srcpkgs/vault/files/vault/run +++ b/srcpkgs/vault/files/vault/run @@ -1,3 +1,3 @@ #!/bin/sh -exec chpst -u _vault vault server -config=/etc/vault/ +exec chpst -u _vault vault server -config=/etc/vault.conf diff --git a/srcpkgs/vault/template b/srcpkgs/vault/template index 1ba3566e77c7..ff6064bf94c5 100644 --- a/srcpkgs/vault/template +++ b/srcpkgs/vault/template @@ -1,7 +1,7 @@ # Template file for 'vault' pkgname=vault version=1.9.2 -revision=1 +revision=2 build_style=go go_import_path="github.com/hashicorp/vault" go_build_tags="release" @@ -26,4 +26,5 @@ esac post_install() { vlicense LICENSE vsv vault + vconf ${FILESDIR}/vault.conf }