diff --git a/deploy.yml b/deploy.yml index f71c1d0..21751b2 100644 --- a/deploy.yml +++ b/deploy.yml @@ -1,4 +1,4 @@ --- - hosts: vaultservers roles: - - role: vaultdeploy + - role: vault-deploy diff --git a/hosts b/hosts index abf7768..3924224 100644 --- a/hosts +++ b/hosts @@ -2,4 +2,4 @@ localhost [vaultservers:vars] -vault_version=0.7.0 +vault_version=0.10.3 diff --git a/roles/vaultdeploy/files/vault.service b/roles/vault-deploy/files/vault.service similarity index 100% rename from roles/vaultdeploy/files/vault.service rename to roles/vault-deploy/files/vault.service diff --git a/roles/vault-deploy/files/vaultconfig.hcl b/roles/vault-deploy/files/vaultconfig.hcl new file mode 100644 index 0000000..11fc6a6 --- /dev/null +++ b/roles/vault-deploy/files/vaultconfig.hcl @@ -0,0 +1,9 @@ +storage "consul" { + address = "127.0.0.1:8500" + path = "vault" +} + +listener "tcp" { + address = "127.0.0.1:8200" + tls_disable = 1 +} diff --git a/roles/vaultdeploy/tasks/main.yml b/roles/vault-deploy/tasks/main.yml similarity index 95% rename from roles/vaultdeploy/tasks/main.yml rename to roles/vault-deploy/tasks/main.yml index aa9f956..7a29d9d 100644 --- a/roles/vaultdeploy/tasks/main.yml +++ b/roles/vault-deploy/tasks/main.yml @@ -5,7 +5,7 @@ update_cache: yes become: true - - name: download and install vault binary + - name: Download and install vault binary unarchive: src: "https://releases.hashicorp.com/vault/{{ vault_version }}/vault_{{ vault_version }}_linux_amd64.zip" dest: /usr/bin/ diff --git a/roles/vaultdeploy/files/vaultconfig.hcl b/roles/vaultdeploy/files/vaultconfig.hcl deleted file mode 100644 index dc1a264..0000000 --- a/roles/vaultdeploy/files/vaultconfig.hcl +++ /dev/null @@ -1,9 +0,0 @@ -backend "consul" { - address = "127.0.0.1:8500" - path = "vault" -} - -listener "tcp" { - address = "127.0.0.1:8200" - tls_disable = 1 -}