Skip to content

Instantly share code, notes, and snippets.

@bonzofenix
Last active August 29, 2015 14:02
Show Gist options
  • Save bonzofenix/c573a231ef0e32d75b0b to your computer and use it in GitHub Desktop.
Save bonzofenix/c573a231ef0e32d75b0b to your computer and use it in GitHub Desktop.
Deploying microbosh to openstack.
# CHANGE: Director UUID
# CHANGE: Elastic IP 1
# CHANGE: microBOSH IP address
# CHANGE: OpenStack Auth URL
# CHANGE: OpenStack Username
# CHANGE: OpenStack Password
# CHANGE: OpenStack Tenant
# CHANGE: OpenStack Region (optional)
---
name: bosh
director_uuid: 6dacddb7-64d3-43ad-a0a5-0c2aaff14179
release:
name: bosh
version: latest
compilation:
workers: 1
network: default
reuse_compilation_vms: true
cloud_properties:
instance_type: m1.medium
update:
canaries: 1
canary_watch_time: 3000-120000
update_watch_time: 3000-120000
max_in_flight: 4
networks:
- name: default
type: manual
subnets:
- name: ashburn
range: 10.240.6.0/24
gateway: 10.240.6.1
static:
- 10.240.6.10 - 10.240.6.20
cloud_properties:
net_id: 2a88d3d9-bda5-47ef-ab04-2a3465fae898
# - name: default
# type: dynamic
# cloud_properties:
# security_groups:
# - bosh # CHANGE: Security Group
# net_id: 2a88d3d9-bda5-47ef-ab04-2a3465fae898
resource_pools:
- name: large
network: default
size: 1
stemcell:
name: bosh-openstack-kvm-ubuntu-lucid
version: latest
cloud_properties:
instance_type: m1.large
jobs:
- name: core
template:
- powerdns
- nats
- postgres
- redis
- director
- blobstore
- registry
- health_monitor
instances: 1
resource_pool: large
persistent_disk: 50000
networks:
- name: default
default: [dns, gateway]
static_ips:
- 10.240.6.11 # CHANGE: Elastic IP 1
properties:
env:
postgres: &bosh_db
user: postgres
password: postges
host: 10.240.6.11
listen_address: 0.0.0.0
database: bosh
dns:
address: 10.240.6.11 # CHANGE: Elastic IP 1
db: *bosh_db
user: powerdns
password: powerdns
database:
name: powerdns
webserver:
password: powerdns
replication:
basic_auth: replication:zxKDUBeCfKYXk
user: replication
password: powerdns
recursor: 10.240.6.10 # CHANGE: microBOSH IP address
nats:
address: 10.240.6.11
user: nats
password: nats
redis:
address: 10.240.6.11
password: redis
director:
name: bosh
address: 10.240.6.11
db: *bosh_db
blobstore:
address: 10.240.6.11
agent:
user: agent
password: agent
director:
user: director
password: director
registry:
address: 10.240.6.11
db: *bosh_db
http:
port: 25777
user: registry
password: registry
hm:
http:
user: hm
password: hm
director_account:
user: admin
password: admin
event_nats_enabled: false
email_notifications: false
tsdb_enabled: false
pagerduty_enabled: false
varz_enabled: true
openstack:
auth_url: https://wmg-iad.openstack.blueboxgrid.com:5001/v2.0
username: user
api_key: pass
tenant: staging
default_security_groups: ["bosh"]
default_key_name: microbosh
private_key: microbosh.pem
---
name: microbosh-openstack
logging:
level: DEBUG
network:
type: manual
ip: 10.230.12.50
cloud_properties:
net_id: 53e020ad-bc34-4126-bf44-e0a3e2b04591
resources:
persistent_disk: 16384
cloud_properties:
instance_type: m1.medium
cloud:
plugin: openstack
properties:
openstack:
auth_url: https://wmg-sea.openstack.blueboxgrid.com:5001/v2.0
username: admin #any user with creation permissions
api_key: admin #password
tenant: production
default_security_groups: ["bosh", "ssh"]
default_key_name: microbosh_west
private_key: microbosh_west.pem
apply_spec:
properties:
director:
max_threads: 3
hm:
resurrector_enabled: true
ntp:
- 0.north-america.pool.ntp.org
- 1.north-america.pool.ntp.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment