GithubHelp home page GithubHelp logo

marciopocebon / cg-bootstrap-concourse-ami Goto Github PK

View Code? Open in Web Editor NEW

This project forked from s-matyukevich/cg-bootstrap-concourse-ami

0.0 1.0 0.0 17 KB

A packer template and associated resources for creating an AMI that runs a standalone concourse installation suitable for bootstrapping more complex infrastructure

License: Other

Shell 27.18% Python 21.37% Ruby 36.92% HTML 14.53%

cg-bootstrap-concourse-ami's Introduction

cg-bootstrap-concourse-ami

A packer template and associated resources for creating an AMI that runs a standalone Concourse installation suitable for bootstrapping more complex infrastructure.

Setup

To build an AMI with this template first create a secrets.json file with the following contents:

{
	"aws_access_key": "your-aws-access-key",
	"aws_secret_key": "your-aws-secret-key",
	"aws_region": "us-gov-west-1"
}

If deploying to a region other than us-gov-west-1 add the the source_ami key to the secrets with the appropriate AMI-ID for the region. According to the Concourse installation guide only Ubuntu 14.04 LTS is supported.

AMI-IDs for other regions can be found by using Ubuntu's AMI locator and selecting the 14.04 LTS hvm:ebs-ssd image for the desired region.

Building

Once a secrets file has been created created, the AMI can be built with the following command:

packer build -var-file=secrets.json bootstrap_concourse.json

Once the process finishes a new AMI will be ready for use in the selected region.

Using

Setting credentials

The AMI created by this template supports setting the concourse basic-auth username and password via user-data when the instance is boooted.

This is done by providing a simple YAML document that contains username and password keys as the instance's user-data. The hostname key is optional, but if set will be passed as external-url to concourse. If hostname is not provided, then the public-hostname from the metadata service will be used

# This is a sample YAML file that will configure the concourse username and password

username: admin
password: swordfish
hostname: ci.example.com

Accessing Concourse

Concourse runs on port 80. Ensure the instance is placed into a security group that allows access to this port.

cg-bootstrap-concourse-ami's People

Contributors

cnelson avatar linuxbozo avatar

Watchers

James Cloos 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.