Skip to content
This repository has been archived by the owner on Nov 30, 2017. It is now read-only.

Latest commit

 

History

History
38 lines (28 loc) · 1.06 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.06 KB

Download Manager for Pivotal OpsMgr

This application automates the discovery of new releases for installed tiles, and their upload to a Pivotal OpsMgr. Administrators can then move quickly to installation/upgrade.

It also allows discovery of new product tiles and their initial upload.

Local deployment

Setup environment variables for configuration:

export OPSMGR_URL=https://10.20.30.40
export OPSMGR_SKIP_SSL_VERIFICATION=true
export OPSMGR_USERNAME=admin
export OPSMGR_PASSWORD=<password>
export PIVOTAL_NETWORK_TOKEN=<token>

Next launch the app:

go run main.go

The application will eventually run at http://localhost:3000

Cloud Foundry deployment

appname=opsmgr-download-mgr
cf push $appname -m 128M -k 256M --no-start
cf set-env $appname OPSMGR_URL $OPSMGR_URL
cf set-env $appname OPSMGR_SKIP_SSL_VERIFICATION $OPSMGR_SKIP_SSL_VERIFICATION
cf set-env $appname OPSMGR_USERNAME $OPSMGR_USERNAME
cf set-env $appname OPSMGR_PASSWORD $OPSMGR_PASSWORD
cf set-env $appname PIVOTAL_NETWORK_TOKEN $PIVOTAL_NETWORK_TOKEN
cf start $appname