cluster-deployment/jobs/vault/vault.job

11 lines
372 B
Bash
Executable file

#!/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";