Coder Social home page Coder Social logo

micahyoung / bosh-bootloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudfoundry/bosh-bootloader

0.0 1.0 0.0 2.49 MB

Command line utility for standing up a BOSH director on an IAAS of your choice.

License: Apache License 2.0

Go 93.85% HCL 5.91% Shell 0.25%

bosh-bootloader's Introduction

bosh-bootloader


This is a command line utility for standing up a CloudFoundry or Concourse installation on an IAAS. This CLI is currently under heavy development, and the initial goal is to support bootstrapping a CloudFoundry installation on AWS.

Guides

Prerequisites

Install Dependencies

The following should be installed on your local machine

Install bosh-bootloader

bosh-bootloader can be installed by downloading the latest Github release.

Configure AWS

The AWS IAM user that is provided to bbl will need the following policy:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ec2:*",
                "cloudformation:*",
                "elasticloadbalancing:*",
                "iam:*"
            ],
            "Resource": [
                "*"
            ]
        }
    ]
}

Configure GCP

To allow bbl to set up infrastructure a service account must be provided with the role 'roles/editor'

Example:

gcloud iam service-accounts create <service account name>

gcloud iam service-accounts keys create --iam-account=<service account name> <service account name>.key.json

gcloud projects add-iam-policy-binding <project id> --member='<service account name>' --role='roles/editor'

Usage

The bbl command can be invoked on the command line and will display its usage.

$ bbl
Usage:
  bbl [GLOBAL OPTIONS] COMMAND [OPTIONS]

Global Options:
  --help      [-h]       Prints usage
  --state-dir            Directory containing bbl-state.json
  --debug                Prints debugging output

Commands:
  bosh-deployment-vars   Prints required variables for BOSH deployment
  cloud-config           Prints suggested cloud configuration for BOSH environment
  create-lbs             Attaches load balancer(s)
  delete-lbs             Deletes attached load balancer(s)
  destroy                Tears down BOSH director infrastructure
  director-address       Prints BOSH director address
  director-username      Prints BOSH director username
  director-password      Prints BOSH director password
  director-ca-cert       Prints BOSH director CA certificate
  env-id                 Prints environment ID
  print-env              Prints BOSH friendly environment variables
  help                   Prints usage
  lbs                    Prints attached load balancer(s)
  ssh-key                Prints SSH private key
  up                     Deploys BOSH director on AWS
  update-lbs             Updates load balancer(s)
  version                Prints version

  Use "bbl [command] --help" for more information about a command.

Known Issues

Re-running bbl up Detaches Instances from GCP LBs

Due to bbl's use of Terraform to create infrastructure on GCP, re-running bbl up after deploying either CloudFoundry or Concourse will detach any instances that were attached to a load balancer created by bbl. At this time, the only known work-around is to recreate the affected instance using bosh recreate.

The bbl team is planning to address this issue in an upcoming release.

bosh-bootloader's People

Contributors

christianang avatar zankich avatar cf-infra-bot avatar angelachin avatar evanfarrar avatar gdean123 avatar rizwanreza avatar davewalter avatar genevieve avatar dsabeti avatar lexsys27 avatar flavorjones avatar jtarchie avatar conamex avatar ryanmoran avatar crhino avatar mavenraven avatar valeriap avatar rosenhouse avatar bsnchan avatar cunnie avatar keaty avatar idoru avatar xtreme-sameer-vohra avatar skmichaelson avatar zachgersh avatar

Watchers

Micah Young avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.