allomov
5/4/2015 - 11:47 AM

bosh-init-openstack.yml

---
name: micro

releases:
- name: bosh-openstack-cpi
  url: file://./releases/bosh-openstack-cpi.tgz
- name: bosh
  url: file://./releases/bosh-release.tgz

stemcells:
- name: bosh-stemcell-2962-openstack-kvm-ubuntu-trusty-go_agent
  url: file://./stemcells/bosh-stemcell-2962-openstack-kvm-ubuntu-trusty-go_agent.tgz

networks:
- name: vip
  type: vip
- name: manual
  type: manual
  subnets:
  - range: 192.168.1.0/24
    gateway: 192.168.1.1
    dns: [8.8.8.8]
    reserved:
    - 192.168.1.1
    - 192.168.1.11
    static:
    - 192.168.1.12-192.168.1.120
    security_groups: [ default, bosh ]
    cloud_properties:
      net_id: 860ed5ca-250a-4cd8-9ab0-7d2cdfbf4e1a

resource_pools:
- name: default
  network: manual
  stemcell:
    url: file://./stemcells/bosh-stemcell-2962-openstack-kvm-ubuntu-trusty-go_agent.tgz
  cloud_properties:
    instance_type: m1.large

cloud_provider:
  template:
    name: cpi
    release: bosh-openstack-cpi
  ssh_tunnel:
    host: PUBLIC_IP
    port: 22
    user: vcap
    private_key: /home/ubuntu/.ssh/id_rsa
  registry: &registry
    username: registry-username
    password: registry-password
    port: 6301
    host: localhost
  mbus: https://mbus-username:mbus-password@PUBLIC_IP:6868
  properties:
    blobstore:
      provider: local
      path: /var/vcap/micro_bosh/data/cache
    registry:
      username: registry-username
      password: registry-password
      port: 6301
      host: localhost
    ntp: []
    openstack: &openstack_properties
      auth_url: xxxx
      username: xxxx
      api_key: xxxx
      tenant: xxxx
      region: RegionOne
      endpoint_type: publicURL
      default_key_name: lomov
      default_security_groups:
        - default
        - bosh
      private_key: /home/ubuntu/.ssh/id_rsa
      state_timeout: 300.0
      wait_resource_poll_interval: 5
      connection_options:
        connect_timeout: 60.0
    agent:
      mbus: https://mbus-username:mbus-password@0.0.0.0:6868

jobs:
- name: bosh
  resource_pool: default
  instances: 1
  templates:
  - name: nats
    release: bosh
  - name: redis
    release: bosh
  - name: postgres
    release: bosh
  - name: powerdns
    release: bosh
  - name: blobstore
    release: bosh
  - name: director
    release: bosh
  - name: health_monitor
    release: bosh
  - name: registry
    release: bosh
  - name: cpi
    release: bosh-openstack-cpi
  networks:
  - name: vip
    static_ips:
    - PUBLIC_IP
  - name: manual
    static_ips:
    - 192.168.1.12
  properties:
    nats:
      user: "nats"
      password: "nats"
      auth_timeout: 3
      address: 127.0.0.1
      port: 4222
    redis:
      listen_addresss: 127.0.0.1
      address: "127.0.0.1"
      password: "redis"
      port: 25255
    postgres: &bosh_db
      adapter: "postgres"
      user: "postgres"
      password: "postgres"
      host: "127.0.0.1"
      database: "bosh"
      port: 5432
    blobstore:
      port: 25250
      address: 192.168.1.12
      director:
        user: "director"
        password: "director"
      agent:
        user: "agent"
        password: "agent"
      provider: "dav"
    director:
      cpi_job: cpi
      address: "127.0.0.1"
      name: "micro"
      port: 25555
      db: *bosh_db
      backend_port: 25556
    registry:
      host: 192.168.1.12
      port: 6301
      username: admin
      password: admin
      address: "127.0.0.1"
      db: *bosh_db
      http:
        user: "admin"
        password: "admin"
        port: 6301
    hm:
      http:
        user: "hm"
        password: "hm"
      director_account:
        user: "admin"
        password: "admin"
    dns:
      address: "127.0.0.1"
      domain_name: "microbosh"
      db: *bosh_db
    ntp: []
    openstack: *openstack_properties