2017-04-24 10:48:25 -04:00
|
|
|
======
|
|
|
|
Vault
|
|
|
|
======
|
|
|
|
|
|
|
|
.. image:: https://travis-ci.org/saltstack-formulas/vault-formula.svg?branch=master
|
|
|
|
|
|
|
|
Formulas for working with `Vault <http://www.vaultproject.io>`_
|
|
|
|
|
|
|
|
Available states
|
|
|
|
================
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
|
|
|
|
``vault``
|
|
|
|
----------
|
|
|
|
|
|
|
|
Install the vault binary
|
|
|
|
|
|
|
|
|
|
|
|
``vault.server``
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
Install and configure the vault server
|
|
|
|
|
|
|
|
To use it, just include *vault.server* in your *top.sls*, and configure it using pillars:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
vault:
|
2017-07-28 10:23:12 -04:00
|
|
|
version: 0.7.0
|
2017-04-24 10:48:25 -04:00
|
|
|
listen_protocol: tcp
|
|
|
|
listen_port: 8200
|
|
|
|
listen_address: 0.0.0.0
|
2017-06-06 11:37:05 -04:00
|
|
|
tls_disable: 0
|
2017-04-24 10:48:25 -04:00
|
|
|
default_lease_ttl: 24h
|
|
|
|
max_lease_ttl: 24h
|
|
|
|
self_signed_cert:
|
|
|
|
enabled: false
|
|
|
|
backend: {}
|
|
|
|
dev_mode: true
|
|
|
|
service:
|
|
|
|
type: systemd
|
|
|
|
|
|
|
|
Testing
|
|
|
|
=======
|
|
|
|
|
|
|
|
Testing is done with `Test Kitchen <http://kitchen.ci/>`_
|
|
|
|
for machine setup and `inspec <https://github.com/chef/inspec/>`_
|
|
|
|
for integration tests.
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
|
|
|
|
* Ruby
|
|
|
|
* Docker
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
gem install bundler
|
|
|
|
bundle install
|
|
|
|
bundle exec kitchen test all
|