Skip to content

Commit 6002c63

Browse files
author
Bryan Kendall
committed
better tags, extend system default for ttls
1 parent 0232fee commit 6002c63

4 files changed

Lines changed: 7 additions & 2 deletions

File tree

ansible/roles/vault/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
recurse=yes
2222

2323
- name: copy vault config
24+
tags: [ deploy ]
2425
become: true
2526
template:
2627
src=vault.hcl

ansible/roles/vault/templates/vault.hcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ listener "tcp" {
1919
tls_cert_file = "/opt/vault/server/cert.pem"
2020
tls_key_file = "/opt/vault/server/key.pem"
2121
}
22+
23+
max_lease_ttl = "8760h"

ansible/vault-values.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
with_items:
6262
- type: "aws"
6363
config:
64-
default_lease_ttl: "31536000s" # 1 year, in seconds
65-
max_lease_ttl: "31536000s" # 1 year, in seconds
64+
default_lease_ttl: "8760h" # 1 year, in hours
65+
max_lease_ttl: "8760h" # 1 year, in hours
6666

6767
- name: configure 1h aws root credentials
6868
run_once: true

ansible/vault.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
tasks:
1212
- name: get seal status
13+
tags: [ deploy ]
1314
uri:
1415
method=GET
1516
url=http://{{ ansible_default_ipv4.address }}:8200/v1/sys/seal-status
@@ -18,6 +19,7 @@
1819
register: seal_status
1920

2021
- name: unseal vault
22+
tags: [ deploy ]
2123
when: seal_status.json.sealed
2224
uri:
2325
method=PUT

0 commit comments

Comments
 (0)