A Service Broker for Spring config server
Go to file
DigitalEagle d5df3af1ff
Update README.md
2022-08-30 13:56:43 -06:00
bin modified manifest and broker script 2022-04-08 12:39:15 -06:00
broker readded parser 2022-05-13 15:53:55 -06:00
cf fixed typo 2022-05-09 17:59:52 -06:00
ci Added release notes 2020-07-23 10:36:11 -04:00
config Adding in ability to send across json variables 2022-04-08 01:22:22 -06:00
httpartifacttransport removed local file check 2022-04-14 01:26:27 -06:00
vendor changed int parsing 2022-04-21 11:42:24 -06:00
.gitignore Configured pipeline including integration tests 2020-07-23 10:36:11 -04:00
LICENSE Initial commit 2020-06-10 06:02:39 +02:00
Makefile Added file back with changes 2022-04-14 01:21:05 -06:00
README.md Update README.md 2022-08-30 13:56:43 -06:00
go.mod Added parsing updates 2022-04-21 10:52:48 -06:00
go.sum sum changes 2022-05-13 15:54:51 -06:00
main.go Updated parser for release 2022-04-19 18:44:45 -06:00

README.md

Config Server Broker

This repo implements a service broker for config server.

Setup

  1. Clone repo to directory or home.
  2. Create a Config-Server space (optional) under system.
$cf target -o system
$cf create-space config-server
$cf target -o system -s config-server
  1. Modify the contents of cf/secrets.yml add the credentials needed, the instance guid for the space being used, etc.

Broker Auth Section

  • user - The user needed for creating the service-broker
  • password - The password you create for creating the service-broker

Cloud Foundry Config Section

  • api_url - The Cloud Foundry API URL
  • cf_username - The user in CF that has permissions to create services with the API
  • cf_password - the password for above user
  • uaa_client_id - The Client ID, which can possibly be found in CredHub. If not the UAA client needs to be created
  • uaa_client_secret - The secret for the client id above
  • instance_space_guid - The GUID for the current space, This can be found by doing cf space config-server --guid
  • instance_domain - The instance domain which is likely the same as the API base domain
  • config_server_download_uri - This can be either a file:// or an https:// protocol. The use of file will look within the service-broker itself and should reference the location of the config-server.jar that has been packaged along with the broker
  1. While within the config-server-broker base directory, run make push if the binary doesn't need to be rebuilt. The only reason the binary may need to be rebuilt is if there is a code change. To build, run make build first, then run make push. All jars should be located under the app/artifacts directory, the binary should be located under the app directory. The app directory is what gets pushed to the CF container.

  2. Create the service broker.

$ cf create-service-broker [user from the Broker Auth section] [password from the Broker Auth section] [App URL created for the running app]
  1. Once the push is complete, the service broker is now running. You should now be able to create a service like the following example.
$cf create-service config-server default test-service -c "whatever json configuration you wish to use for config-server - see config-server docs from Spring.io"