Skip to content

Commit

Permalink
fix(package): add missed cleanup & add storage backend to prod test
Browse files Browse the repository at this point in the history
  • Loading branch information
rbjorklin committed Mar 30, 2019
1 parent 65482c2 commit d0ed5e5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ suites:
- vault
vault.sls:
vault:
config:
storage:
file:
path: /var/lib/vault/data
tls_disable: 1
self_signed_cert:
enabled: True
Expand Down
21 changes: 21 additions & 0 deletions vault/package/gpg/clean.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# vim: ft=sls syntax=yaml softtabstop=2 tabstop=2 shiftwidth=2 expandtab autoindent

{% from "vault/map.jinja" import vault with context %}

vault-package-gpg-clean-cmd-run:
cmd.run:
- name: gpg --batch --yes --delete-key {{ vault.hashicorp_key_id }}
- onlyif: gpg --list-keys {{ vault.hashicorp_key_id }}

vault-package-gpg-clean-file-absent:
file.absent:
- name: /opt/vault/hashicorp.asc

vault-package-gpg-clean-file-absent-checksum:
file.absent:
- name: /opt/vault/{{ vault.version }}_SHA256SUMS

vault-package-gpg-clean-file-absent-signature:
file.absent:
- name: /opt/vault/{{ vault.version }}_SHA256SUMS.sig

0 comments on commit d0ed5e5

Please sign in to comment.