-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Vault Enterprise support and more
- Add initial Vault Enterprise variables - Add initial Vault Enterprise installation tasks - Update when statements to avoid warnings about template delimiters - Update documentation
- Loading branch information
1 parent
b7fa795
commit a3cffc3
Showing
10 changed files
with
156 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
# File: tasks/install_enterprise.yml | ||
# Vault Enterprise package installation tasks | ||
|
||
- name: OS packages | ||
package: | ||
name: "{{ item }}" | ||
state: present | ||
with_items: "{{ vault_os_packages }}" | ||
tags: installation | ||
|
||
- name: Check Vault Enterprise package checksum file | ||
local_action: stat path="{{ role_path }}/files/{{ vault_enterprise_shasums }}" | ||
become: no | ||
run_once: true | ||
register: vault_checksum | ||
|
||
- name: Get Vault Enterprise package checksum file | ||
local_action: get_url url="{{ vault_checksum_file_url }}" | ||
dest="{{ role_path }}/files/{{ vault_enterprise_shasums }}" | ||
become: no | ||
run_once: true | ||
tags: installation | ||
when: not vault_checksum.stat.exists | bool | ||
|
||
- name: Get Vault Enterprise package checksum | ||
local_action: shell grep "{{ vault_enterprise_pkg }}" "{{ role_path }}/files/{{ vault_enterprise_shasums }}" | awk '{print $1}' | ||
become: no | ||
run_once: true | ||
register: vault_sha256 | ||
tags: installation | ||
|
||
- name: Check Vault Enterprise package file | ||
local_action: stat path="{{ role_path }}/files/{{ vault_enterprise_pkg }}" | ||
become: no | ||
run_once: true | ||
register: vault_package | ||
|
||
- name: Download Vault Enterprise | ||
local_action: get_url url="{{ vault_zip_url }}" dest="{{ role_path }}/files/{{ vault_enterprise_pkg }}" checksum="sha256:{{ vault_sha256.stdout }}" timeout="42" | ||
become: no | ||
run_once: true | ||
tags: installation | ||
when: not vault_package.stat.exists | bool | ||
|
||
- name: Unarchive Vault Enterprise | ||
local_action: unarchive src="{{ role_path }}/files/{{ vault_enterprise_pkg }}" dest="{{ role_path }}/files/" creates="{{ role_path }}/files/vault" | ||
become: no | ||
run_once: true | ||
tags: installation | ||
|
||
- name: Install Vault Enterprise | ||
copy: | ||
src: "{{ role_path }}/files/vault" | ||
dest: "{{ vault_bin_path }}" | ||
owner: "{{ vault_user }}" | ||
group: "{{ vault_group }}" | ||
mode: "0755" | ||
tags: installation | ||
|
||
- name: Cleanup | ||
local_action: file path="{{ item }}" state="absent" | ||
become: no | ||
with_fileglob: "{{ role_path }}/files/vault" | ||
run_once: true | ||
tags: installation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v1.5.7 | ||
v1.6.0 |