cf-concourse

command module
v0.0.0-...-23dddbb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2017 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Server

Befor running, generate a UAA client:

ENV_DOMAIN=example.com

UAA_CLIENT_SECRET=$(openssl rand -hex 32)
CONCOURSE_CLIENT_SECRET=$(openssl rand -hex 32)

# Need openid for username, and cloud_controller.read for organizations
# Keep this callback as localhost - we don't actually follow it.
uaac client add cf-concourse-integration \
    --name "cf-concourse-integration" \
    --scope "openid cloud_controller.read" \
    --authorized_grant_types "authorization_code" \
    --redirect_uri "https://localhost/oauth2callback" \
    --access_token_validity "3600" \
    --secret "notasecret" \
    --autoapprove true

# Need openid for username, and cloud_controller.read for organizations
# Set this callback to the URL this server will be at, which should be:
# https://cf.system.${ENV_DOMAIN}
uaac client add cf-concourse-web-integration \
    --name "cf-concourse-web-integration" \
    --scope "openid cloud_controller.read" \
    --authorized_grant_types "authorization_code" \
    --redirect_uri "https://concourse.${ENV_DOMAIN}/auth/uaa/callback" \
    --access_token_validity "3600" \
    --secret $WEB_SECRET

Build and push it to CloudFoundry:

govendor sync

cf target -o system -s concourse
cf push
cf set-env cf OUR_URL https://cf.system.${ENV_DOMAIN}
cf set-env cf CONCOURSE_CALLBACK_URL https://concourse.${ENV_DOMAIN}/auth/external/callbac
cf set-env cf CONCOURSE_CLIENT_ID concourse
cf set-env cf CONCOURSE_CLIENT_SECRET $CONCOURSE_CLIENT_SECRET
cf set-env cf UAA_WEB_CLIENT_SECRET $UAA_CLIENT_SECRET
cf set-env cf UAA_WEB_CLIENT_SECRET $UAA_CLIENT_SECRET
cf set-env cf CF_API https://api.system.${ENV_DOMAIN}
cf restage cf

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址