https://github.com/github/puppet-vault
:floppy_disk: :package: puppet-module to install Hashicorp's Vault.
https://github.com/github/puppet-vault
Last synced: 5 months ago
JSON representation
:floppy_disk: :package: puppet-module to install Hashicorp's Vault.
- Host: GitHub
- URL: https://github.com/github/puppet-vault
- Owner: github
- Archived: true
- Fork: true (bfraser/puppet-vault)
- Created: 2016-06-21T00:11:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-09T00:46:07.000Z (over 9 years ago)
- Last Synced: 2024-09-25T21:10:47.249Z (over 1 year ago)
- Language: Ruby
- Homepage: https://vaultproject.io
- Size: 25.4 KB
- Stars: 7
- Watchers: 5
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING
Awesome Lists containing this project
README
# puppet-vault
[](https://travis-ci.org/rhoml/puppet-vault)
[](https://forge.puppetlabs.com/rhoml/vault)
[](https://gemnasium.com/github.com/rhoml/puppet-vault)
# Overview
This is a puppet module to install Hashicorp's [vault project](https://www.vaultproject.io) to keep your secrets safe. This module doesn't build the Vault packages which should be pretty easy to do using fpm.
Documentation for Vault can be found on their [site](https://www.vaultproject.io/docs/config/index.html). Take into consideration:
* You can only define one storage backend, listener and telemetry on the config file.
* Other configurations should be set up using Vault API or CLI.
# Install Vault
````
include ::vault
````
# Configure Vault using Hiera
This module enables you to use hiera to configure your Vault server. It also allows you to use module [data](https://github.com/rhoml/puppet-vault/blob/master/data/common.yaml).
````
vault::config_hash:
backend:
consul:
address: '127.0.0.1:8500'
advertise_addr: "http://%{::ipaddress_eth0}"
path: 'vault/'
listener:
tcp:
address: "%{::fqdn}:8200"
tls_disable: 1
telemetry:
statsite_address: '127.0.0.1:8125'
disable_hostname: true
disable_mlock: true
vault::manage_user: true
vault::package_ensure: 'latest'
vault::vault_user: 'vault'
vault::restart_cmd: '/etc/init.d/vault restart'
````
# Uninstalling Vault
Ensure the following hiera key is present so Vault can be correctly uninstalled
```
vault::package_ensure: absent
```
# See also
* [hiera-vault](https://github.com/jsok/hiera-vault)
* [consul](https://github.com/solarkennedy/puppet-consul)