Added example pillar
This commit is contained in:
parent
865ec58732
commit
e0b13c665a
2 changed files with 9 additions and 2 deletions
7
pillar.example
Normal file
7
pillar.example
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
vault:
|
||||||
|
vault_version: 0.7.0
|
||||||
|
skip_verify: true
|
||||||
|
protocol: https
|
||||||
|
hostname: vault.hostname.com
|
||||||
|
port: 8200
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
vault packages:
|
vault packages:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- names:
|
- names:
|
||||||
- jq
|
|
||||||
- unzip
|
- unzip
|
||||||
|
- curl
|
||||||
|
|
||||||
download vault:
|
download vault:
|
||||||
cmd.run:
|
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
|
- unless: test -e /tmp/vault.zip
|
||||||
|
|
||||||
install vault:
|
install vault:
|
||||||
|
|
Loading…
Reference in a new issue