Skip to content

Commit

Permalink
Update bootstrap.sh; Removed .env; Fixed .tfvars (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
vshatravenko authored and Louis committed Aug 28, 2017
1 parent bb9642c commit 2f74e7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
3 changes: 1 addition & 2 deletions lib/kite/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ def generate()
copy_file("aws/terraform/bosh-aws-base.tf", "terraform/bosh-aws-base.tf")
copy_file("aws/terraform/outputs.tf", "terraform/outputs.tf")
copy_file("aws/terraform/variables.tf", "terraform/variables.tf")
copy_file("aws/terraform/variables.tf", "terraform/variables.tf")
template("aws/terraform/terraform.tfvars.erb", "terraform/terraform.tfvars")

template("aws/env.example.erb", ".env")
copy_file("aws/README.md", "README.md")
copy_file("aws/bootstrap.sh", "bootstrap.sh")

Expand Down
7 changes: 2 additions & 5 deletions tpl/aws/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
#!/usr/bin/env bash

source ./.env

pushd terraform && terraform apply && popd

bash ./bin/make_manifest_bosh-init.sh
kite render-manifest --manifest=bosh
bosh-init deploy bosh-director.yml

read -p "Enter bosh director ip: " bosh_director_ip
pushd terraform && BOSH_DIRECTOR_IP=$(terraform output eip) && popd
bosh target $BOSH_DIRECTOR_IP

bash ./bin/make_cloud_config.sh
kite render-manifest --manifest=concourse
bosh update cloud-config aws-cloud.yml

bosh upload stemcell https://bosh.io/d/stemcells/bosh-aws-xen-hvm-ubuntu-trusty-go_agent
bosh upload release https://bosh.io/d/github.com/concourse/concourse
bosh upload release https://bosh.io/d/github.com/cloudfoundry-incubator/garden-runc-release

bash ./bin/make_manifest_concourse-cluster.sh
bosh deployment concourse.yml

bosh deploy
12 changes: 0 additions & 12 deletions tpl/aws/env.example.erb

This file was deleted.

0 comments on commit 2f74e7e

Please sign in to comment.