Skip to content

Commit

Permalink
Merge branch 'master' of github.com:wardviaene/terraform-course
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Jul 31, 2018
2 parents b80ec25 + 3307e2c commit d498d1e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
8 changes: 5 additions & 3 deletions docker-demo-3/scripts/jenkins-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ rm -f get-pip.py
pip install awscli

# install terraform
cd /usr/local/bin
wget -q https://releases.hashicorp.com/terraform/0.7.7/terraform_0.7.7_linux_amd64.zip
unzip terraform_0.7.7_linux_amd64.zip
TERRAFORM_VERSION="0.11.7"
wget -q https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
&& unzip -o terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin \
&& rm terraform_${TERRAFORM_VERSION}_linux_amd64.zip

# clean up
apt-get clean
rm terraform_0.7.7_linux_amd64.zip
4 changes: 2 additions & 2 deletions jenkins-packer-demo/output.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
output "jenkins-ip" {
value = "${aws_instance.jenkins-instance.*.public_ip}"
value = ["${aws_instance.jenkins-instance.*.public_ip}"]
}
output "app-ip" {
value = "${aws_instance.app-instance.*.public_ip}"
value = ["${aws_instance.app-instance.*.public_ip}"]
}
9 changes: 6 additions & 3 deletions jenkins-packer-demo/scripts/jenkins-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ rm -f get-pip.py
pip install awscli

# install terraform
cd /usr/local/bin
wget -q https://releases.hashicorp.com/terraform/0.7.7/terraform_0.7.7_linux_amd64.zip
unzip terraform_0.7.7_linux_amd64.zip
TERRAFORM_VERSION="0.11.7"
wget -q https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
&& unzip -o terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin \
&& rm terraform_${TERRAFORM_VERSION}_linux_amd64.zip

# install packer
cd /usr/local/bin
wget -q https://releases.hashicorp.com/packer/0.10.2/packer_0.10.2_linux_amd64.zip
unzip packer_0.10.2_linux_amd64.zip
# clean up
Expand Down

0 comments on commit d498d1e

Please sign in to comment.