Small script to provision the Template Service Broker in OpenShift and add any templates you might want there. Template URLs or local paths can be specified as a list of arguments to the script.
Have an OpenShift cluster >= 3.6 with the Service Catalog enabled.
The most simple way to do this is by running oc cluster up --service-catalog.
Once the cluster is up you are ready to run potsb.sh.
- Logs in to OpenShift as
system:admin. - Uses the
openshiftproject. - Allow unauthenticated access to the Template Service Broker API.
- Create each template specified in the arguments in the
openshiftproject.
Note: This will not add any custom templates
./potsb.sh
Result: You will now be able to see all default availble templates in the Catalog.
./potsb.sh https://raw.githubusercontent.com/aidenkeating/fh-sync-server/FH-3807_update-sync-template/fh-sync-server-DEVELOPMENT.yaml
Result: You will now be able to see all default templates along with a Sync template in the Catalog.