Skip to content

Instantly share code, notes, and snippets.

@jhunt
Created March 19, 2018 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhunt/8c1b873793fa114fe2a7a201508a213f to your computer and use it in GitHub Desktop.
Save jhunt/8c1b873793fa114fe2a7a201508a213f to your computer and use it in GitHub Desktop.
Genesis Example Lab Cloud Configs
# to use this file, first get cc-me from https://github.com/jhunt/cc-me
# then, run this:
# spruce merge cc.yml | spruce json | cc-me
---
vsphere:
cc:
azs:
- name: z1
cloud_properties:
datacenters:
- name: Buffalo-Lab
clusters:
- cluster1: {}
disk_types:
- &default { name: default, disk_size: 8192 }
vm_types:
- name: default
cloud_properties: { cpu: 1, ram: 1024, disk: 8192 }
- name: compilation
cloud_properties: { cpu: 2, ram: 4096, disk: 8192 }
vm_extensions: []
compilation:
workers: 4
azs: [z1]
vm_type: compilation
network: compilation
reuse_compilation_vms: yes
net:
range: 10.200.128.0/17
gateway: 10.200.128.1
cloud_properties:
name: VMNetwork
environments:
- name: jhunt-lab-proto
.: (( inject vsphere.cc ))
networking:
- .: (( inject vsphere.net ))
limit: 10.200.219.0/26
layout: bestfit
reserved:
- 10.200.219.0 - 10.200.219.4
networks:
- { name: compilation, net: /30 }
- { name: vault, net: /30, static: 3 }
- { name: sandbox, net: /30, static: 2 }
- name: jhunt-lab-sandbox
.: (( inject vsphere.cc ))
networking:
- .: (( inject vsphere.net ))
limit: 10.200.219.64/26
layout: bestfit
networks:
- { name: compilation, net: /30 }
- { name: bosh, net: /30, static: 1 }
- { name: jumpbox, net: /30, static: 2 }
- { name: cf-edge, net: /30, static: 2 }
- { name: cf-core, net: /28 }
- { name: cf-runtime, net: /28 }
- { name: cf-services, net: /28 }
---
# cloud-config for jhunt-lab-proto
# this cloud-config proudly generated with cc-me!
# (https://github.com/jhunt/cc-me)
networks:
# 10.200.219.0/30 (4 hosts) 10.200.219.0 - 10.200.219.3
- name: compilation
type: manual
subnets:
- range: 10.200.128.0/17
gateway: 10.200.128.1
az: []
cloud_properties: {"name":"VMNetwork"}
reserved:
- 10.200.219.0 - 10.200.219.4
- 10.200.128.1 - 10.200.218.255
- 10.200.219.4 - 10.200.255.254
static: []
# 10.200.219.4/30 (4 hosts) 10.200.219.4 - 10.200.219.7
- name: sandbox
type: manual
subnets:
- range: 10.200.128.0/17
gateway: 10.200.128.1
az: []
cloud_properties: {"name":"VMNetwork"}
reserved:
- 10.200.219.0 - 10.200.219.4
- 10.200.128.1 - 10.200.219.3
- 10.200.219.8 - 10.200.255.254
static: # 2 (2)
- 10.200.219.4 - 10.200.219.6
# 10.200.219.8/30 (4 hosts) 10.200.219.8 - 10.200.219.11
- name: vault
type: manual
subnets:
- range: 10.200.128.0/17
gateway: 10.200.128.1
az: []
cloud_properties: {"name":"VMNetwork"}
reserved:
- 10.200.219.0 - 10.200.219.4
- 10.200.128.1 - 10.200.219.7
- 10.200.219.12 - 10.200.255.254
static: # 3 (3)
- 10.200.219.8 - 10.200.219.11
azs: [{"name":"z1","cloud_properties":{"datacenters":[{"name":"Buffalo-Lab","clusters":[{"cluster1":{}}]}]}}]
compilation: {"azs":["z1"],"reuse_compilation_vms":true,"workers":4,"network":"compilation","vm_type":"compilation"}
vm_types: [{"name":"default","cloud_properties":{"ram":1024,"disk":8192,"cpu":1}},{"name":"compilation","cloud_properties":{"ram":4096,"cpu":2,"disk":8192}}]
vm_extensions: []
disk_types: [{"name":"default","disk_size":8192}]
---
# cloud-config for jhunt-lab-sandbox
# this cloud-config proudly generated with cc-me!
# (https://github.com/jhunt/cc-me)
networks:
# 10.200.219.64/30 (4 hosts) 10.200.219.64 - 10.200.219.67
- name: bosh
type: manual
subnets:
- range: 10.200.128.0/17
gateway: 10.200.128.1
az: []
cloud_properties: {"name":"VMNetwork"}
reserved:
- 10.200.128.1 - 10.200.219.63
- 10.200.219.68 - 10.200.255.254
static: # 1 (1)
- 10.200.219.64 - 10.200.219.65
# 10.200.219.68/30 (4 hosts) 10.200.219.68 - 10.200.219.71
- name: cf-edge
type: manual
subnets:
- range: 10.200.128.0/17
gateway: 10.200.128.1
az: []
cloud_properties: {"name":"VMNetwork"}
reserved:
- 10.200.128.1 - 10.200.219.67
- 10.200.219.72 - 10.200.255.254
static: # 2 (2)
- 10.200.219.68 - 10.200.219.70
# 10.200.219.72/30 (4 hosts) 10.200.219.72 - 10.200.219.75
- name: compilation
type: manual
subnets:
- range: 10.200.128.0/17
gateway: 10.200.128.1
az: []
cloud_properties: {"name":"VMNetwork"}
reserved:
- 10.200.128.1 - 10.200.219.71
- 10.200.219.76 - 10.200.255.254
static: []
# 10.200.219.76/30 (4 hosts) 10.200.219.76 - 10.200.219.79
- name: jumpbox
type: manual
subnets:
- range: 10.200.128.0/17
gateway: 10.200.128.1
az: []
cloud_properties: {"name":"VMNetwork"}
reserved:
- 10.200.128.1 - 10.200.219.75
- 10.200.219.80 - 10.200.255.254
static: # 2 (2)
- 10.200.219.76 - 10.200.219.78
# 10.200.219.80/28 (16 hosts) 10.200.219.80 - 10.200.219.95
- name: cf-core
type: manual
subnets:
- range: 10.200.128.0/17
gateway: 10.200.128.1
az: []
cloud_properties: {"name":"VMNetwork"}
reserved:
- 10.200.128.1 - 10.200.219.79
- 10.200.219.96 - 10.200.255.254
static: []
# 10.200.219.96/28 (16 hosts) 10.200.219.96 - 10.200.219.111
- name: cf-runtime
type: manual
subnets:
- range: 10.200.128.0/17
gateway: 10.200.128.1
az: []
cloud_properties: {"name":"VMNetwork"}
reserved:
- 10.200.128.1 - 10.200.219.95
- 10.200.219.112 - 10.200.255.254
static: []
# 10.200.219.112/28 (16 hosts) 10.200.219.112 - 10.200.219.127
- name: cf-services
type: manual
subnets:
- range: 10.200.128.0/17
gateway: 10.200.128.1
az: []
cloud_properties: {"name":"VMNetwork"}
reserved:
- 10.200.128.1 - 10.200.219.111
- 10.200.219.128 - 10.200.255.254
static: []
vm_types: [{"name":"default","cloud_properties":{"ram":1024,"disk":8192,"cpu":1}},{"name":"compilation","cloud_properties":{"cpu":2,"disk":8192,"ram":4096}}]
disk_types: [{"disk_size":8192,"name":"default"}]
vm_extensions: []
compilation: {"network":"compilation","vm_type":"compilation","workers":4,"azs":["z1"],"reuse_compilation_vms":true}
azs: [{"name":"z1","cloud_properties":{"datacenters":[{"name":"Buffalo-Lab","clusters":[{"cluster1":{}}]}]}}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment