This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path "engineering/*" { | |
capabilities = ["create", "read", "update", "delete", "list"] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path "engineering/*" { | |
capabilities = ["create", "read", "update", "delete", "list" | |
} | |
path "support/*" { | |
capabilities = ["deny"] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable userpass auth method | |
resource "vault_auth_backend" "userpass" { | |
type = "userpass" | |
} | |
resource "vault_generic_endpoint" "admin" { | |
depends_on = [vault_auth_backend.userpass] | |
path = "auth/userpass/users/admin" | |
ignore_absent_fields = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: all | |
become: true | |
remote_user: | |
roles: | |
- ansible-role-vault |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Create systemd overrides directory | |
ansible.builtin.file: | |
path: /etc/systemd/system/vault.service.d | |
state: directory | |
owner: root | |
group: root | |
mode: '0755' | |
- name: Create systemd overrides file | |
ansible.builtin.copy: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/log/vault/audit.log { | |
rotate 30 | |
daily | |
# Do not execute rotate if the log file is empty. | |
notifempty | |
missingok | |
compress | |
# Set compress on next rotate cycl to prevent entry loss when performing compression. | |
delaycompress | |
postrotate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/log/vault/vault-audit.log { | |
rotate 30 | |
daily | |
# Do not execute rotate if the log file is empty. | |
notifempty | |
missingok | |
compress | |
# Set compress on next rotate cycl to prevent entry loss when performing compression. | |
delaycompress | |
postrotate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description="HashiCorp Vault - A tool for managing secrets" | |
Documentation=https://www.vaultproject.io/docs/ | |
Requires=network-online.target | |
After=network-online.target | |
ConditionFileNotEmpty={{ vault_config_file }} | |
StartLimitIntervalSec=60 | |
StartLimitBurst=3 | |
[Service] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listener "tcp" { | |
address = "[::]:8200" | |
tls_cert_file = "/etc/vault.d/tls/cert.pem" | |
tls_key_file = "/etc/vault.d/tls/key.pem" | |
tls_require_and_verify_client_cert = false | |
tls_disable_client_certs = true | |
} | |
storage "raft" { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euxo pipefail | |
export VAULT_NODE_ID="GIEGTIVLP18994C" | |
export VAULT_NODE_IP_ADDR="10.27.84.13" | |
echo "Installing Vault Enterpise" | |
sudo cp /tmp/vault /usr/bin/ |
OlderNewer