Added example pillar

This commit is contained in:
Marcus Young 2017-04-11 09:02:56 -05:00
parent 865ec58732
commit e0b13c665a
2 changed files with 9 additions and 2 deletions

7
pillar.example Normal file
View File

@ -0,0 +1,7 @@
vault:
vault_version: 0.7.0
skip_verify: true
protocol: https
hostname: vault.hostname.com
port: 8200

View File

@ -1,12 +1,12 @@
vault packages:
pkg.installed:
- names:
- jq
- unzip
- curl
download vault:
cmd.run:
- name: curl --silent -L https://releases.hashicorp.com/vault/{{ pillar['pkgs']['vault_version'] }}/vault_{{ pillar['pkgs']['vault_version'] }}_linux_amd64.zip -o /tmp/vault.zip
- name: curl --silent -L https://releases.hashicorp.com/vault/{{ pillar['vault']['vault_version'] }}/vault_{{ pillar['vault']['vault_version'] }}_linux_amd64.zip -o /tmp/vault.zip
- unless: test -e /tmp/vault.zip
install vault: