You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by om...@apache.org on 2019/07/03 12:04:46 UTC

[incubator-dlab] branch DLAB-terraform updated: added terraform installation;

This is an automated email from the ASF dual-hosted git repository.

omartushevskyi pushed a commit to branch DLAB-terraform
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-terraform by this push:
     new 8792813  added terraform installation;
8792813 is described below

commit 879281373f3f08a3f5c7683d4c30b1ea8cb42652
Author: Oleh Martushevskyi <Ol...@epam.com>
AuthorDate: Wed Jul 3 15:04:37 2019 +0300

    added terraform installation;
---
 .../terraform/aws/modules/ssn-k8s/files/masters-user-data.sh         | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/terraform/aws/modules/ssn-k8s/files/masters-user-data.sh b/infrastructure-provisioning/terraform/aws/modules/ssn-k8s/files/masters-user-data.sh
index 850884e..ac76009 100644
--- a/infrastructure-provisioning/terraform/aws/modules/ssn-k8s/files/masters-user-data.sh
+++ b/infrastructure-provisioning/terraform/aws/modules/ssn-k8s/files/masters-user-data.sh
@@ -23,7 +23,7 @@ sudo chmod 700 /home/${k8s-os-user}/.ssh
 sudo chmod 600 /home/${k8s-os-user}/.ssh/authorized_keys
 
 sudo apt-get update
-sudo apt-get install -y python-pip jq
+sudo apt-get install -y python-pip jq unzip
 sudo pip install -U pip
 sudo pip install awscli
 
@@ -162,3 +162,6 @@ sudo chmod 755 /usr/local/bin/remove-etcd-member.sh
 sleep 600
 sudo -i -u ${k8s-os-user} helm repo update
 sudo bash -c 'echo "* * * * * root /usr/local/bin/remove-etcd-member.sh >> /var/log/cron_k8s.log 2>&1" >> /etc/crontab'
+wget https://releases.hashicorp.com/terraform/0.12.3/terraform_0.12.3_linux_amd64.zip -O /tmp/terraform_0.12.3_linux_amd64.zip
+unzip /tmp/terraform_0.12.3_linux_amd64.zip -d /tmp/
+sudo mv /tmp/terraform /usr/local/bin/


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org