Sha256: b398714f70049d8c5cca42340a5b61b7c2ed23a0bbf573c6007d63c6e1162f52

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

#!/bin/bash

zone=$(curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/zone)
export zone=${zone##*/}
export region=${zone%-*}
gcloud config set compute/zone ${zone}
gcloud config set compute/region ${region}
export project_id=`curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/project/project-id`

if [ ! -f ~/.ssh/bosh  ]; then
    ssh-keygen -t rsa -f ~/.ssh/bosh -C bosh

    echo "------------------~/.ssh/bosh.pub------------------"
    cat ~/.ssh/bosh.pub
    echo "---------------------------------------------------"

    echo "Navigate to your project's web console and add the new SSH public key by pasting the contents of ~/.ssh/bosh.pub:"
    read -p "Press [Enter] to continue..."
fi

export ssh_key_path=$HOME/.ssh/bosh

while ! bosh-init -v; do
   echo "bosh-init is not ready yet..."
   sleep 5
done

mkdir google-bosh-director
cd google-bosh-director

cp ~/gcp/manifest.yml manifest.yml

bosh-init deploy manifest.yml

bosh target 10.0.0.6

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kite-0.0.4 tpl/gcp/scripts/02_deploy_director.sh
kite-0.0.3 tpl/gcp/scripts/02_deploy_director.sh