Skip to content

Commit 99cd6df

Browse files
committed
vars and docs
1 parent 05e66e7 commit 99cd6df

File tree

4 files changed

+59
-11
lines changed

4 files changed

+59
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,11 @@
88
- Update documentation
99

1010
## v1.0.2
11+
1112
- Set correct RAM amount in Vagrantfile
1213
- Rename Vagrant inventory back to cluster_nodes
14+
15+
# v1.0.3
16+
17+
- Move all vars to defaults
18+
- Documentation updates

README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Vault
22

3-
![](https://travis-ci.org/brianshumate/ansible-vault.svg?branch=master)
3+
[![Build Status](https://travis-ci.org/brianshumate/ansible-vault.svg?branch=master)](https://travis-ci.org/brianshumate/ansible-vault)
4+
[![Ansible Galaxy](https://img.shields.io/badge/galaxy-brianshumate.vault-blue.svg)](https://galaxy.ansible.com/brianshumate/vault/)
5+
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/brianshumate/ansible-vault.svg)](http://isitmaintained.com/project/brianshumate/ansible-vault "Average time to resolve an issue")
6+
[![Percentage of issues still open](http://isitmaintained.com/badge/open/brianshumate/ansible-vault.svg)](http://isitmaintained.com/project/brianshumate/ansible-vault "Percentage of issues still open")
47

58
This Ansible role performs a basic [Vault](https://vault.io/) installation,
69
including filesystem structure and example configuration.
@@ -21,7 +24,7 @@ software and versions:
2124

2225
## Role Variables
2326

24-
The role specifies variables in `defaults/main.yml` and `vars/*.yml`.
27+
The role defines variables in `defaults/main.yml`:
2528

2629
| Name | Default Value | Description |
2730
| -------------- | ------------- | -----------------------------------|
@@ -47,8 +50,11 @@ The role specifies variables in `defaults/main.yml` and `vars/*.yml`.
4750

4851
### OS Distribution Variables
4952

50-
The Vault binary works on most Linux platforms and is not distribution
51-
specific. Some distributions require installation of specific OS packages with different nomenclature, so this role has support for major Linux distributions.
53+
The `consul` binary works on most Linux platforms and is not distribution
54+
specific. However, some distributions require installation of specific OS
55+
packages with different naming, so this role was built with support for
56+
popular Linux distributions and defines these variables to deal with the
57+
differences acros distros:
5258

5359
| Name | Default Value | Description |
5460
| -------------- | ------------- | -----------------------------------|
@@ -71,14 +77,12 @@ specific. Some distributions require installation of specific OS packages with d
7177

7278
## Dependencies
7379

74-
None
80+
Ansible requires GNU tar and this role performs some local use of the
81+
unarchive module, so ensure that your system has `gtar` installed.
7582

7683
## Example Playbook
7784

78-
79-
After you have reviewed and altered any necessary variables, and created a
80-
host inventory file, basic Vault installation is possible using the
81-
included `site.yml` playbook example:
85+
Basic installation is possible using the included `site.yml` playbook:
8286

8387
```
8488
ansible-playbook -i hosts site.yml
@@ -106,5 +110,5 @@ BSD
106110

107111
## Contributors
108112

109-
Special thanks to the folks listed in [CONTRIBUTORS.md](https://github.com/brianshumate/ansible-vault/blob/master/CONTRIBUTORS.md) for their
113+
Special thanks to the folks listed in [CONTRIBUTORS.md](https://github.com/brianshumate/ansible-vault/blob/master/CONTRIBUTORS.md) for their
110114
contributions to this project.

defaults/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,41 @@ vault_address: "0.0.0.0"
2121
vault_port: "8200"
2222
vault_node_name: "{{ inventory_hostname_short }}"
2323
vault_main_config: "{{ vault_config_path }}/vault_main.hcl"
24+
25+
# CentOS vars
26+
vault_centos_pkg: "{{ vault_version }}_linux_amd64.zip"
27+
vault_centos_url: "{{ vault_zip_url }}"
28+
vault_centos_sha256: "{{ vault_zip_sha256 }}"
29+
30+
vault_centos_os_packages:
31+
- libselinux-python
32+
- git
33+
- unzip
34+
35+
# Debian vars
36+
vault_debian_pkg: "{{ vault_version }}_linux_amd64.zip"
37+
vault_debian_url: "{{ vault_zip_url }}"
38+
vault_debian_sha256: "{{ vault_zip_sha256 }}"
39+
40+
vault_debian_os_packages:
41+
- git
42+
- unzip
43+
44+
# Red Hat vars
45+
vault_redhat_pkg: "{{ vault_version }}_linux_amd64.zip"
46+
vault_redhat_url: "{{ vault_zip_url }}"
47+
vault_redhat_sha256: "{{ vault_zip_sha256 }}"
48+
49+
vault_redhat_os_packages:
50+
- libselinux-python
51+
- git
52+
- unzip
53+
54+
# Ubuntu vars
55+
vault_ubuntu_pkg: "{{ vault_version }}_linux_amd64.zip"
56+
vault_ubuntu_url: "{{ vault_zip_url }}"
57+
vault_ubuntu_sha256: "{{ vault_zip_sha256 }}"
58+
59+
vault_ubuntu_os_packages:
60+
- git
61+
- unzip

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0.2
1+
v1.0.3

0 commit comments

Comments
 (0)