cluster-deployment/jobs/vault/vault.job

12 lines
372 B
Text
Raw Permalink Normal View History

#!/usr/bin/env bash
RUN "sudo apt-get install -y hashicorp-vault hashicorp-vault-systemd";
COPY "../vault/server.hcl" "/tmp/vault-server.hcl";
RUN "sudo chown root:root /tmp/vault-server.hcl";
RUN "sudo mkdir -p /etc/vault";
RUN "sudo mv /tmp/vault-server.hcl /etc/vault/server.hcl";
RUN "sudo systemctl enable vault.service";
RUN "sudo systemctl start vault.service";