blob: f343f0d9c10dede6606173cffb4651b79b568d8a (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 | # vim: ft=sh ts=4 sw=4 et
post_install () {
    getent passwd vault > /dev/null || useradd \
        -s /bin/nologin -c 'Vault daemon' -d /var/lib/vault -M -r -U vault
    if [[ ! -d /var/lib/vault ]] ; then
        mkdir /var/lib/vault
        chown vault:vault /var/lib/vault
    fi
    cat <<EOF
The default configuration stores data in files under "/var/lib/vault",
and listens on "localhost" with TLS disabled. Please consider modifying
the configuration file "/etc/vault.hcl" to suit your needs. For more
information read: https://vaultproject.io/docs/config/index.html
A systemd unit for Vault has been installed, and daemon can be started
normally using "systemctl":
  systemctl enable vault.service
  systemctl start vault.service
IMPORTANT: Be sure to initialize the Vault backend using "vault init"!
EOF
}
post_upgrade () {
    post_install
}
 |