forked from cshunger/app-autoscaler-release
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathextension-manifest.yml
58 lines (58 loc) · 2.19 KB
/
extension-manifest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
extension:
name: app-autoscaler-cm-deploy
version: 1.0
type: bosh-release
uiconfig:
- name: ext_parameters
title: "Properties for external template sample"
properties:
- name: servicebroker_port
label: "Service broker port"
description: "Port to access service broker"
type: text
validation-regex: "^(?:[0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$"
mandatory: true
hidden: false
sample-value: "E.g. 35880"
- name: servicebroker_username
label: "Service broker username"
description: "User name for the service broker"
mandatory: true
sample-value: "E.g. admin"
default: "admin"
- name: servicebroker_password
label: "Service broker password"
type: password
mandatory: true
sample-value: "E.g. mypassword"
default: "admin"
- name: api-port
label: "API Port"
description: "Port for api"
type: text
validation-regex: "^(?:[0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$"
mandatory: true
hidden: false
sample-value: "E.g. 35880"
states:
- name: Sync Blobs
phase: "Syncing Bosh Blobs"
script: bosh2 sync-blobs
- name: Create Release
phase: "Creating a release for App Autoscaler"
script: bosh2 -e IBMCloudPrivate create-release --force --name app-autoscaler
- name: Upload Release
phase: "Uploading a release for App Autoscaler"
script: bosh2 upload-release -e IBMCloudPrivate -d app-autoscaler
- name: Upload Postgres Release
phase: "Uploading Postgres release"
script: bosh2 upload-release -e IBMCloudPrivate -d app-autoscaler ./postgres_17.tgz
- name: Upload Cloud Foundry Routing Release
phase: "Uploading cf-routing-release"
script: bosh2 upload-release -e IBMCloudPrivate -d app-autoscaler ./cf-routing-release.tgz
- name: Generate deployment yaml
phase: "Generating the deployment yaml"
script: ./scripts/generate-bosh-lite-manifest -r ./manifests/cf-merge-property-overrides.yaml -p ./manifests/property-overrides.yaml -d ./manifests/db-stub-override.yaml -v v1
- name: Deploy App Autoscaler
phase: "Deploying App Autoscaler"
script: bosh2 deploy -e IBMCloudPrivate -d app-autoscaler ./bosh/deployments/autoscaler.yml -n