Skip to content

vault-config

Shortcut: vc

Help option

~ $ dk vault-config --help


Current context is: default
Usage: dk vault-config [OPTIONS]

  Configure vault. Your role must be "IT" or "ADMIN" to run global vault
  configuration.

  Examples:

          1) Global vault config
          dk vault-config --url http://dummy-vault-url:8200 --token my-vault-token

          2) Kitchen vault config with default service
          dk vault-config --kitchen my-kitchen --service default

          3) Kitchen vault config with configuration inherited from parent
          dk vault-config --kitchen my-kitchen --inherit

          4) Kitchen vault config with custom service
          dk vault-config --kitchen my-kitchen \
              --prefix my-kitchen-prefix \
              --private True \
              --service custom \
              --token my-vault-token \
              --inheritable True \
              --url http://dummy-vault-url:8200

          Note: To continue the command in next line, use
              \ (in Linux)
              or
              ^ (in Windows)

Options:
  -k, --kitchen TEXT      Kitchen name
  -h, --inherit           Configuration inherited from parent kitchen
  -s, --service TEXT      Service can be custom or default
  -u, --url TEXT          Vault url (with port)
  -t, --token TEXT        Vault token
  -r, --prefix TEXT       Vault prefix, if exist
  -p, --private TEXT      Whether vault is private or not
  -i, --inheritable TEXT  Whether vault Values are Inheritable or not
  -y, --yes               Force yes
  --help                  Show this message and exit.

Configure the global vault connection

~ $ dk vault-config --url [VAULT_URL] --token [VAULT_TOKEN]

Configure custom, private, non-inheritable kitchen vault connection using shortcuts and explicit options

~ $ dk vault-config -k Kitchen_Name -s custom -p True -i False -u [VAULT_URL] -t [VAULT_TOKEN]


Current context is: default
YYYY-MM-DD HH:MM:SS - Setting the vault info
Done.