Skip to content

Commit

Permalink
download once/copy many, docs updates
Browse files Browse the repository at this point in the history
  • Loading branch information
brianshumate committed Oct 22, 2016
1 parent 99cd6df commit 23d2a31
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 61 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@

- Move all vars to defaults
- Documentation updates

# v1.0.4

- Correct URL in docs
- Remove vars dir
- Enable download once / copy many install
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
[![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")
[![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")

This Ansible role performs a basic [Vault](https://vault.io/) installation,
including filesystem structure and example configuration.
This Ansible role performs a basic [Vault](https://vaultproject.io/)
installation, including filesystem structure and example configuration.

It can also bootstrap a minimal development or evaluation server in a
Vagrant and VirtualBox based environment. See
It can also bootstrap a minimal development or evaluation server or HA
Consul-backed cluster in a Vagrant and VirtualBox based environment. See
[README_VAGRANT.md](https://github.com/brianshumate/ansible-vault/blob/master/examples/README_VAGRANT.md) and the associated [Vagrantfile](https://github.com/brianshumate/ansible-vault/blob/master/examples/Vagrantfile) for more details about the developer mode setup.

## Requirements
Expand Down
23 changes: 18 additions & 5 deletions tasks/CentOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,27 @@
with_items: "{{ vault_centos_os_packages }}"
tags: installation

- name: Download Vault
get_url: "url={{ vault_zip_url }} dest=/tmp/{{ vault_centos_pkg }} sha256sum={{ vault_centos_sha256 }} timeout=74"
- name: Download vault
become: no
connection: local
get_url: "url={{ vault_zip_url }} dest={{ role_path }}/files/{{ vault_centos_pkg }} sha256sum={{ vault_zip_sha256 }} timeout=74"
run_once: true
tags: installation

- name: Install Vault
unarchive: "copy=no creates=/usr/local/bin/vault src=/tmp/{{ vault_centos_pkg }} dest=/usr/local/bin/ owner={{ vault_user }} group={{ vault_group }} mode=0755"
- name: Unarchive vault
become: no
connection: local
unarchive: "src={{ role_path }}/files/{{ vault_centos_pkg }} dest={{ role_path }}/files/ creates={{ role_path }}/files/vault"
run_once: true
tags: installation

- name: Install vault
copy: "src={{ role_path }}/files/vault dest=/usr/local/bin/ owner={{ vault_user }} group={{ vault_group }} mode=0755"
tags: installation

- name: Cleanup
file: path=/tmp/"{{ vault_centos_pkg }}" state=absent
become: no
connection: local
file: "dest={{ role_path }}/files/vault* state=absent"
run_once: true
tags: installation
19 changes: 16 additions & 3 deletions tasks/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,26 @@
tags: installation

- name: Download Vault
get_url: "url={{ vault_zip_url }} dest=/tmp/{{ vault_debian_pkg }} sha256sum={{ vault_debian_sha256 }} timeout=74 validate_certs=False"
become: no
connection: local
get_url: "url={{ Vault_zip_url }} dest={{ role_path }}/files/{{ Vault_debian_pkg }} sha256sum={{ Vault_zip_sha256 }} timeout=74"
run_once: true
tags: installation

- name: Unarchive Vault
become: no
connection: local
unarchive: "src={{ role_path }}/files/{{ Vault_debian_pkg }} dest={{ role_path }}/files/ creates={{ role_path }}/files/Vault"
run_once: true
tags: installation

- name: Install Vault
unarchive: "copy=no creates=/usr/local/bin/vault src=/tmp/{{ vault_debian_pkg }} dest=/usr/local/bin/ owner={{ vault_user }} group={{ vault_group }} mode=0755"
copy: "src={{ role_path }}/files/Vault dest=/usr/local/bin/ owner={{ Vault_user }} group={{ Vault_group }} mode=0755"
tags: installation

- name: Cleanup
file: path=/tmp/"{{ vault_debian_pkg }}" state=absent
become: no
connection: local
file: "dest={{ role_path }}/files/Vault* state=absent"
run_once: true
tags: installation
23 changes: 18 additions & 5 deletions tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,27 @@
when: "vault_dnsmasq == true"
tags: installation

- name: Download Vault
get_url: "url={{ vault_zip_url }} dest=/tmp/{{ vault_redhat_pkg }} sha256sum={{ vault_redhat_sha256 }} timeout=74"
- name: Download vault
become: no
connection: local
get_url: "url={{ vault_zip_url }} dest={{ role_path }}/files/{{ vault_centos_pkg }} sha256sum={{ vault_zip_sha256 }} timeout=74"
run_once: true
tags: installation

- name: Install Vault
unarchive: "copy=no creates=/usr/loca/bin/vault src=/tmp/{{ vault_redhat_pkg }} dest=/usr/local/bin/ owner={{ vault_user }} group={{ vault_group }} mode=0755"
- name: Unarchive vault
become: no
connection: local
unarchive: "src={{ role_path }}/files/{{ vault_centos_pkg }} dest={{ role_path }}/files/ creates={{ role_path }}/files/vault"
run_once: true
tags: installation

- name: Install vault
copy: "src={{ role_path }}/files/vault dest=/usr/local/bin/ owner={{ vault_user }} group={{ vault_group }} mode=0755"
tags: installation

- name: Cleanup
file: path=/tmp/"{{ vault_redhat_pkg }}" state=absent
become: no
connection: local
file: "dest={{ role_path }}/files/vault* state=absent"
run_once: true
tags: installation
19 changes: 16 additions & 3 deletions tasks/Ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,26 @@
tags: installation

- name: Download Vault
get_url: "url={{ vault_zip_url }} dest=/tmp/{{ vault_ubuntu_pkg }} sha256sum={{ vault_ubuntu_sha256 }} timeout=74"
become: no
connection: local
get_url: "url={{ Vault_zip_url }} dest={{ role_path }}/files/{{ Vault_debian_pkg }} sha256sum={{ Vault_zip_sha256 }} timeout=74"
run_once: true
tags: installation

- name: Unarchive Vault
become: no
connection: local
unarchive: "src={{ role_path }}/files/{{ Vault_debian_pkg }} dest={{ role_path }}/files/ creates={{ role_path }}/files/Vault"
run_once: true
tags: installation

- name: Install Vault
unarchive: "copy=no creates=/usr/local/bin/vault src=/tmp/{{ vault_ubuntu_pkg }} dest=/usr/local/bin/ owner={{ vault_user }} group={{ vault_group }} mode=0755"
copy: "src={{ role_path }}/files/Vault dest=/usr/local/bin/ owner={{ Vault_user }} group={{ Vault_group }} mode=0755"
tags: installation

- name: Cleanup
file: path=/tmp/"{{ vault_ubuntu_pkg }}" state=absent
become: no
connection: local
file: "dest={{ role_path }}/files/Vault* state=absent"
run_once: true
tags: installation
40 changes: 0 additions & 40 deletions vars/main.yml

This file was deleted.

2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.3
v1.0.4

0 comments on commit 23d2a31

Please sign in to comment.