diff options
author | Paul Stemmet | 2022-11-20 11:59:44 +0000 |
---|---|---|
committer | Bazaah | 2022-11-20 12:45:11 +0000 |
commit | 37cefafb069f23644d3e30e889d27fee447b638a (patch) | |
tree | f0b463aca9396013eda0f249a3252a67c78f85a2 /PKGBUILD | |
download | aur-vault-agent.tar.gz |
repo: Genesis
This is a small package that contains a systemd template service for use
with Vault agents.
The basic idea is to add any configuration to:
/etc/vault-agent.d/$instance/agent.hcl
and start the service:
systemctl enable --now vault-agent@$instance.service
Environment configuration that belongs to all agents on the system
(upstream vault address, for example) can be added to:
/etc/default/vault-agent
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cac66954bd1e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Paul Stemmet <aur@luxolus.com> + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + +pkgname=vault-agent +pkgver=20221120 +pkgrel=1 +pkgdesc='Systemd service and configuration for Vault agents' +arch=('any') +url='https://developer.hashicorp.com/vault/docs/agent' +license=('MPL2') +options=('emptydirs' '!strip') +depends=('vault') +source=('vault-agent@.service') +sha256sums=('c87a9312392507c0121e567bb067f6a0f1ce57fc865635383de3d525698f99ac') + +pkgver() { + date --utc +'%Y%m%d' +} + +package() { + cd "${pkgdir}" + + install -D -d -m755 "${pkgdir}/etc/vault-agent.d" + install -D -m644 "${srcdir}/vault-agent@.service" \ + "${pkgdir}/usr/lib/systemd/system/vault-agent@.service" +} + +# vim:set ts=2 sw=2 et: |