Skip to content

Instantly share code, notes, and snippets.

@eriknelson
Created July 20, 2017 16:57
Show Gist options
  • Save eriknelson/5a7842b0df830a2669f27675f853fece to your computer and use it in GitHub Desktop.
Save eriknelson/5a7842b0df830a2669f27675f853fece to your computer and use it in GitHub Desktop.
name: rhscl-postgresql-apb
image: eriknelson/rhscl-postgresql-apb
description: SCL PostgreSQL apb implementation
bindable: True
async: optional
metadata:
documentationUrl: https://www.postgresql.org/docs/
longDescription: An apb that deploys postgresql 9.4 or 9.5.
dependencies: ['registry.access.redhat.com/rhscl/postgresql-95-rhel7']
displayName: PostgreSQL (APB)
console.openshift.io/iconClass: icon-postgresql
dependencies:
- postgresql_version
- registry.access.redhat.com/rhscl/{{
plans:
- name: "dev"
description: A single DB server with no storage
free: true
default: true
metadata:
display_name: Development
long_description: This plan provides a single non-HA PostgreSQL server without persistent storage
cost: $0.00
parameters:
- name: postgresql_database
default: admin
type: string
title: PostgreSQL Database Name
required: true
- name: postgresql_password
type: string
description: A random alphanumeric string if left blank
title: PostgreSQL Password
- name: postgresql_user
default: admin
title: PostgreSQL User
type: string
maxlength: 63
required: true
- name: postgresql_version
default: 9.5
enum: ['9.5', '9.4']
type: enum
title: PostgreSQL Version
required: true
# ...
name: rhscl-postgresql-apb
image: eriknelson/rhscl-postgresql-apb
description: SCL PostgreSQL apb implementation
bindable: True
async: optional
metadata:
documentationUrl: https://www.postgresql.org/docs/
longDescription: An apb that deploys postgresql 9.4 or 9.5.
dependencies: ['registry.access.redhat.com/rhscl/postgresql-95-rhel7']
displayName: PostgreSQL (APB)
console.openshift.io/iconClass: icon-postgresql
dependencies:
- postgresql_version
- registry.access.redhat.com/rhscl/{{
plans:
- dev:
description: A single DB server with no storage
free: true
default: true
metadata:
display_name: Development
long_description: This plan provides a single non-HA PostgreSQL server without persistent storage
cost: $0.00
parameters:
- postgresql_database:
default: admin
type: string
title: PostgreSQL Database Name
required: true
- postgresql_password:
type: string
description: A random alphanumeric string if left blank
title: PostgreSQL Password
- postgresql_user:
default: admin
title: PostgreSQL User
type: string
maxlength: 63
required: true
- postgresql_version:
default: 9.5
enum: ['9.5', '9.4']
type: enum
title: PostgreSQL Version
required: true
- prod:
description: HA DB Server with 1TB of Storage
free: false
metadata:
display_name: Production
long_description: This plan provides a single non-HA PostgreSQL server with persistent storage
cost: $5.99 monthly
parameters:
- postgresql_database:
default: admin
type: string
title: PostgreSQL Database Name
required: true
- postgresql_password:
type: string
description: A random alphanumeric string if left blank
title: PostgreSQL Password
- postgresql_user:
default: admin
title: PostgreSQL User
type: string
maxlength: 63
required: true
- postgresql_version:
default: 9.5
enum: ['9.5', '9.4']
type: enum
title: PostgreSQL Version
required: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment