Skip to content

Commit

Permalink
fix(package): explicitly require package providing setcap
Browse files Browse the repository at this point in the history
  • Loading branch information
dafyddj committed Jul 10, 2019
1 parent 3656e31 commit d476700
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions vault/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ vault:
version: 1.1.0
platform: linux_amd64
gpg_pkg: gnupg2
setcap_pkg: libcap
dev_mode: False
verify_download: True
self_signed_cert:
Expand Down
3 changes: 1 addition & 2 deletions vault/osfamilymap.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-
# vim: ft=sls syntax=yaml softtabstop=2 tabstop=2 shiftwidth=2 expandtab autoindent

RedHat:

Debian:
setcap_pkg: libcap2-bin

MacOS:
platform: darwin_amd64
6 changes: 6 additions & 0 deletions vault/package/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,14 @@ vault-package-install-file-symlink:
- target: /opt/vault/bin/vault
- force: true

vault-package-install-pkg-installed:
pkg.installed:
- name: {{ vault.setcap_pkg }}

vault-package-install-cmd-run:
cmd.run:
- name: setcap cap_ipc_lock=+ep /opt/vault/bin/vault
- require:
- pkg: vault-package-install-pkg-installed
- onchanges:
- archive: vault-package-install-archive-extracted

0 comments on commit d476700

Please sign in to comment.