File tree 7 files changed +27
-10
lines changed
7 files changed +27
-10
lines changed Original file line number Diff line number Diff line change 101
101
102
102
- Fix issue in wait_for (thanks @pierrefh )
103
103
- Add contributing guidelines in CONTRIBUTING.md
104
+ - Fix checksum var
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ The role defines variables in `defaults/main.yml`:
47
47
| ` vault_main_config ` | ` {{ vault_config_path }}/vault_main.hcl ` | Main configuration file path |
48
48
| ` vault_consul ` | ` 127.0.0.1:8500 ` | Address of Consul backend |
49
49
| ` vault_consul_path ` | ` vault ` | Consul path to use |
50
+ | ` vault_backend ` | ` backend_consul.j2 ` | Backend template filename |
50
51
51
52
### OS Distribution Variables
52
53
@@ -95,6 +96,16 @@ You can also pass variables in using the `--extra-vars` option to the
95
96
ansible-playbook -i hosts site.yml --extra-vars "vault_datacenter=maui"
96
97
```
97
98
99
+ Specify a template file with a different backend definition
100
+ (see ` templates/backend_consul.j2 ` ):
101
+
102
+ ```
103
+ ansible-playbook -i hosts site.yml --extra-vars "vault_backed=backend_file.j2"
104
+ ```
105
+
106
+ You need to make sure that the template file ` backend_file.j2 ` is in the
107
+ role directory for this to work.
108
+
98
109
### Vagrant and VirtualBox
99
110
100
111
See ` examples/README_VAGRANT.md ` for details on quick Vagrant deployments
Original file line number Diff line number Diff line change @@ -24,4 +24,5 @@ vault_address: "0.0.0.0"
24
24
vault_port : " 8200"
25
25
vault_node_name : " {{ inventory_hostname_short }}"
26
26
vault_main_config : " {{ vault_config_path }}/vault_main.hcl"
27
- vault_primary_node : " {{hostvars[groups['primary'][0]]['ansible_fqdn']}}"
27
+ vault_primary_node : " {{hostvars[groups['primary'][0]]['ansible_fqdn']}}"
28
+ vault_backend : " consul"
Original file line number Diff line number Diff line change 47
47
connection : local
48
48
get_url :
49
49
url : " {{ vault_zip_url }}"
50
- dest : " {{ role_path }}/files/{{ vault_pkg }} checksum=sha256:{{ vault_sha256.stdout.split(' ')|first }}"
50
+ dest : " {{ role_path }}/files/{{ vault_pkg }}"
51
+ checksum : " sha256:{{ vault_sha256.stdout.split(' ')|first }}"
51
52
timeout : 42
52
53
run_once : true
53
54
tags : installation
Original file line number Diff line number Diff line change 22
22
when : ansible_distribution == "Ubuntu" and ansible_distribution_version|version_compare(13.04, '<')
23
23
24
24
- name : Create cluster groupings
25
- group_by : " key=os_{{ ansible_os_family }}"
25
+ group_by :
26
+ key : " os_{{ ansible_os_family }}"
26
27
27
28
- name : Create cluster groupings
28
- group_by : " key={{ vault_node_role }}"
29
+ group_by :
30
+ key : " {{ vault_node_role }}"
29
31
30
32
- name : " Add Vault user"
31
33
user :
Original file line number Diff line number Diff line change
1
+ backend "consul" {
2
+ address = "127.0.0.1:8500"
3
+ redirect_addr = "http://{{ vault_address }}:{{ vault_port }}"
4
+ cluster_addr = "http://{{ vault_primary_node }}:{{ vault_port }}/"
5
+ path = "vault"
6
+ }
Original file line number Diff line number Diff line change 1
- backend "consul" {
2
- address = "127.0.0.1:8500"
3
- redirect_addr = "http://{{ vault_address }}:{{ vault_port }}"
4
- cluster_addr = "http://{{ vault_primary_node }}:{{ vault_port }}/"
5
- path = "vault"
6
- }
1
+ {% include backend_ {{ vault_backend }}.j 2 with context %}
7
2
8
3
cluster_name = "sutakku"
9
4
You can’t perform that action at this time.
0 commit comments