Skip to content

Instantly share code, notes, and snippets.

@csterwa
Last active August 29, 2015 14:10
Show Gist options
  • Save csterwa/167b2fc1fffcd16af72b to your computer and use it in GitHub Desktop.
Save csterwa/167b2fc1fffcd16af72b to your computer and use it in GitHub Desktop.
Cloud Foundry Contrib Services - BOSH Deployment Manifest
---
name: cf-services-contrib
director_uuid: [BOSH Director UUID from `bosh status`]
releases:
- name: cf-services-contrib
version: 1
compilation:
workers: 3
network: default
reuse_compilation_vms: true
cloud_properties:
instance_type: m1.small # CHANGE
update:
canaries: 1
canary_watch_time: 30000-60000
update_watch_time: 30000-60000
max_in_flight: 4
networks:
- name: floating
type: vip
cloud_properties: {}
- name: default
type: dynamic
cloud_properties:
security_groups:
- cf # CHANGE
resource_pools:
- name: common
network: default
size: 8
stemcell:
name: bosh-warden-boshlite-ubuntu-lucid-go_agent
version: latest
cloud_properties:
instance_type: m1.small # CHANGE
jobs:
- name: gateways
release: cf-services-contrib
template:
- elasticsearch_gateway
- mongodb_gateway
- memcached_gateway
- postgresql_gateway_ng
- redis_gateway
- rabbit_gateway
- vblob_gateway
instances: 1
resource_pool: common
networks:
- name: default
default: [dns, gateway]
properties:
# Service credentials
uaa_client_id: "cf"
uaa_endpoint: http://uaa.[CF Domain from `cf domains`, ex. 10.244.0.34.xip.io]
uaa_client_auth_credentials:
username: uaaadmin
password: admin
- name: mongodb_service_node
release: cf-services-contrib
template: mongodb_node_ng
instances: 1
resource_pool: common
persistent_disk: 10000
properties:
plan: default
networks:
- name: default
default: [dns, gateway]
- name: memcached_service_node
release: cf-services-contrib
template: memcached_node_ng
instances: 1
resource_pool: common
persistent_disk: 10000
properties:
plan: default
networks:
- name: default
default: [dns, gateway]
- name: vblob_service_node
release: cf-services-contrib
template: vblob_node_ng
instances: 1
resource_pool: common
persistent_disk: 10000
properties:
plan: default
networks:
- name: default
default: [dns, gateway]
- name: elasticsearch_service_node
release: cf-services-contrib
template: elasticsearch_node
instances: 1
resource_pool: common
persistent_disk: 10000
properties:
plan: "free"
networks:
- name: default
default: [dns, gateway]
- name: postgresql_service_node
release: cf-services-contrib
template: postgresql_node_ng
instances: 1
resource_pool: common
persistent_disk: 10000
properties:
postgresql_node:
plan: default
networks:
- name: default
default: [dns, gateway]
- name: redis_service_node
release: cf-services-contrib
template: redis_node_ng
instances: 1
resource_pool: common
persistent_disk: 10000
properties:
plan: default
networks:
- name: default
default: [dns, gateway]
- name: rabbit_service_node
release: cf-services-contrib
template: rabbit_node_ng
instances: 1
resource_pool: common
persistent_disk: 10000
properties:
plan: default
networks:
- name: default
default: [dns, gateway]
properties:
networks:
apps: default
management: default
cc:
srv_api_uri: http://api.[CF Domain from `cf domains`, ex. 10.244.0.34.xip.io]
nats:
address: [BOSH nats IP address]
port: 4222 # CHANGE to BOSH nats port if not 4222
user: nats
password: nats
authorization_timeout: 5
service_plans:
mongodb:
default:
description: "Developer, shared VM, 250MB storage, 10 connections"
free: true
job_management:
high_water: 230
low_water: 20
configuration:
capacity: 125
max_clients: 10
quota_files: 4
quota_data_size: 240
enable_journaling: true
backup:
enable: true
lifecycle:
enable: true
serialization: enable
snapshot:
quota: 1
memcached:
default:
description: "Developer"
free: true
job_management:
high_water: 230
low_water: 20
configuration:
capacity: 125
vblob:
default:
description: "Developer"
free: true
job_management:
high_water: 230
low_water: 20
configuration:
capacity: 125
elasticsearch:
"free":
description: "Developer"
free: true
job_management:
high_water: 230
low_water: 20
configuration:
capacity: 125
postgresql:
default:
description: "Developer, 250MB storage, 10 connections"
free: true
job_management:
high_water: 230
low_water: 20
configuration:
capacity: 125
max_clients: 10
quota_files: 4
quota_data_size: 240
enable_journaling: true
backup:
enable: false
lifecycle:
enable: false
serialization: enable
snapshot:
quota: 1
redis:
default:
description: "Developer, 250MB storage, 10 connections"
free: true
job_management:
high_water: 230
low_water: 20
configuration:
capacity: 125
max_clients: 10
quota_files: 4
quota_data_size: 240
enable_journaling: true
backup:
enable: false
lifecycle:
enable: false
serialization: enable
snapshot:
quota: 1
rabbit:
default:
description: "Developer, 250MB storage, 10 connections"
free: true
job_management:
high_water: 230
low_water: 20
configuration:
capacity: 125
max_clients: 10
quota_files: 4
quota_data_size: 240
enable_journaling: true
bandwidth_quotas:
per_second: 1
per_day: 10
time_window: 86400
backup:
enable: false
lifecycle:
enable: false
serialization: enable
snapshot:
quota: 1
mongodb_gateway:
token: MONGODB_SERVICE_TOKEN # CHANGE - the token you use later with `cf create-service-auth-token`
default_plan: default
supported_versions: ["2.2"]
version_aliases:
current: "2.2"
cc_api_version: v2
mongodb_node:
supported_versions: ["2.2"]
default_version: "2.2"
max_tmp: 900
memcached_gateway:
token: MEMCACHED_SERVICE_TOKEN # CHANGE - the token you use later with `cf create-service-auth-token`
supported_versions: ["1.4"]
version_aliases:
current: "1.4"
cc_api_version: v2
memcached_node:
supported_versions: ["1.4"]
default_version: "1.4"
elasticsearch_gateway:
token: ELASTICSEARCH_SERVICE_TOKEN # CHANGE - the token you use later with `cf create-service-auth-token`
supported_versions: ["0.20"]
version_aliases:
current: "0.20"
cc_api_version: v2
elasticsearch_node:
supported_versions: ["0.20"]
default_version: "0.20"
postgresql_gateway:
token: POSTGRESQL_SERVICE_TOKEN # CHANGE - the token you use later with `cf create-service-auth-token`
default_plan: default
supported_versions: ["9.3"]
version_aliases:
current: "9.3"
cc_api_version: v2
postgresql_node:
supported_versions: ["9.3"]
default_version: "9.3"
max_tmp: 900
password: POSTGRESQL_ROOT_PASSWORD # CHANGE
redis_gateway:
token: REDIS_SERVICE_TOKEN # CHANGE - the token you use later with `cf create-service-auth-token`
default_plan: default
supported_versions: ["2.6"]
version_aliases:
current: "2.6"
cc_api_version: v2
redis_node:
supported_versions: ["2.6"]
default_version: "2.6"
max_tmp: 900
rabbit_gateway:
token: RABBIT_SERVICE_TOKEN # CHANGE - the token you use later with `cf create-service-auth-token`
default_plan: "default"
supported_versions: ["3.0"]
version_aliases:
current: "3.0"
cc_api_version: v2
rabbit_node:
supported_versions: ["3.0"]
default_version: "3.0"
max_tmp: 900
m_actions: ["restart"] #restarts crashed rabbitMQ nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment