diff --git a/README.md b/README.md index 2d466d3..6fb5d85 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Puppet module for managing Hashicorp's [Vault](https://vaultproject.io/) ##Prerequisites This module requires: -- [puppet-staging](https://github.com/nanliu/puppet-staging) +- [puppet-archive](https://github.com/nanliu/puppet-staging) - a `zip` package to be installed (eg `package { "zip": ensure => installed }`) ##Installation diff --git a/manifests/install.pp b/manifests/install.pp index 52cdf70..f641a18 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -18,10 +18,11 @@ if $::operatingsystem != 'darwin' { ensure_packages(['unzip']) } - staging::file { 'vault.zip': - source => $vault::real_download_url, + archive::file { 'vault.zip': + source => $vault::real_download_url, + checksum => $vault::checksum, } -> - staging::extract { 'vault.zip': + archive::extract { 'vault.zip': target => $vault::bin_dir, creates => "${vault::bin_dir}/vault", } -> diff --git a/manifests/params.pp b/manifests/params.pp index 634b47c..b1d4dda 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -9,6 +9,7 @@ $package_name = 'vault' $package_ensure = 'latest' $version = '0.6.0' + $checksum = '283b4f591da8a4bf92067bf9ff5b70249f20705cc963bea96ecaf032911f27c2' $download_url_base = 'https://releases.hashicorp.com/vault/' $download_extension = 'zip'