Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vault offline installation #1371

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ https://archive.apache.org/dist/zookeeper/zookeeper-3.4.12/zookeeper-3.4.12.tar.
https://archive.apache.org/dist/ignite/2.7.6/apache-ignite-2.7.6-bin.zip
https://releases.hashicorp.com/vault/1.4.0/vault_1.4.0_linux_amd64.zip
https://get.helm.sh/helm-v3.2.0-linux-amd64.tar.gz
https://github.com/hashicorp/vault-helm/archive/v0.4.0.tar.gz

[images]
k8s.gcr.io/kube-apiserver:v1.14.6
Expand Down Expand Up @@ -219,4 +220,4 @@ k8s.gcr.io/coredns:1.6.5
calico/cni:v3.13.2
calico/kube-controllers:v3.13.2
calico/node:v3.13.2
calico/pod2daemon-flexvol:v3.13.2
calico/pod2daemon-flexvol:v3.13.2
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ https://archive.apache.org/dist/zookeeper/zookeeper-3.4.12/zookeeper-3.4.12.tar.
https://archive.apache.org/dist/ignite/2.7.6/apache-ignite-2.7.6-bin.zip
https://releases.hashicorp.com/vault/1.4.0/vault_1.4.0_linux_amd64.zip
https://get.helm.sh/helm-v3.2.0-linux-amd64.tar.gz
https://github.com/hashicorp/vault-helm/archive/v0.4.0.tar.gz

[images]
k8s.gcr.io/kube-apiserver:v1.14.6
Expand Down Expand Up @@ -216,4 +217,4 @@ k8s.gcr.io/coredns:1.6.5
calico/cni:v3.13.2
calico/kube-controllers:v3.13.2
calico/node:v3.13.2
calico/pod2daemon-flexvol:v3.13.2
calico/pod2daemon-flexvol:v3.13.2
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ https://packages.elastic.co/curator/5/debian9/pool/main/e/elasticsearch-curator/
https://archive.apache.org/dist/ignite/2.7.6/apache-ignite-2.7.6-bin.zip
https://releases.hashicorp.com/vault/1.4.0/vault_1.4.0_linux_amd64.zip
https://get.helm.sh/helm-v3.2.0-linux-amd64.tar.gz
https://github.com/hashicorp/vault-helm/archive/v0.4.0.tar.gz

[images]
k8s.gcr.io/kube-apiserver:v1.14.6
Expand Down Expand Up @@ -243,4 +244,4 @@ k8s.gcr.io/coredns:1.6.5
calico/cni:v3.13.2
calico/kube-controllers:v3.13.2
calico/node:v3.13.2
calico/pod2daemon-flexvol:v3.13.2
calico/pod2daemon-flexvol:v3.13.2
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function configure_kubernetes {
fi
if [ "${command_result[1]}" = "1" ] ; then
log_and_print "Installing Vault Agent Helm Chart...";
helm install vault --set "injector.externalVaultAddr=$vault_protocol://external-vault:8200" https://github.com/hashicorp/vault-helm/archive/v0.4.0.tar.gz
helm install vault --set "injector.externalVaultAddr=$vault_protocol://external-vault:8200" /tmp/v0.4.0.tar.gz
check_status "$?" "Vault Agent Helm Chart installed." "There was an error during installation of Vault Agent Helm Chart.";
fi
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@
vars:
file_name: "{{ vault_file_name }}"

- name: Download Vault Agent Helm Chart tar
include_role:
name: download
tasks_from: download_file
vars:
file_name: "v0.4.0.tar.gz"

- name: Check for Vault package
stat:
path: "{{ specification.vault_install_dir }}/bin/vault"
Expand Down