Skip to content

Instantly share code, notes, and snippets.

@grkvlt
Created July 31, 2016 01:08
Show Gist options
  • Save grkvlt/e2d04d83b6d7e0ad07d83ee5e03c1ae3 to your computer and use it in GitHub Desktop.
Save grkvlt/e2d04d83b6d7e0ad07d83ee5e03c1ae3 to your computer and use it in GitHub Desktop.
CCS Swarm blueprint with plugins for Softlayer
id: swarm-softlayer
name: "swarm-softlayer"
version: "0.1"
location:
jclouds:softlayer:
region: sjc01
privateKeyFile: "~/.ssh/softlayer.pem"
customizers:
- $brooklyn:object:
type: org.apache.brooklyn.location.jclouds.softlayer.SoftLayerSameVlanLocationCustomizer
softlayer.vlan.scopeUid: "swarm"
services:
- type: nfs-server
id: nfs-server
name: "nfs-server"
brooklyn.config:
nfs.export.path: "/swarm"
nfs.block.device: "/dev/xvdc"
provisioning.properties:
minRam: 10g
templateOptions:
blockDevices:
- 25
- 2000
diskType: "SAN"
- type: docker-swarm
id: docker-swarm
name: "docker-swarm"
brooklyn.config:
start.timeout: 30m
swarm.initial.size: 3
swarm.max.size: 6
swarm.manager.size: 3
etcd.initial.size: 3
swarm.port: 4000
swarm.defaultnetwork: "swarm"
swarm.defaultsubnet: "169.254.0.0/16"
swarm.scaling.cpu.limit: 0.80
swarm.strategy: "binpack"
swarm.overcommit: 0.50
swarm.recovery.stabilizationDelay: 30s
swarm.recovery.failOnRecurringFailuresInThisDuration: 5m
swarm.minRam: 40g
swarm.minCores: 8
swarm.templateOptions:
blockDevices:
- 25
- 200
diskType: "LOCAL"
provisioning.properties:
minRam: 5g
network.plugin.spec:
$brooklyn:entitySpec:
type: weave-network-plugin
storage.plugin.spec:
$brooklyn:entitySpec:
type: devicemapper-lvm-storage-plugin
brooklyn.config:
devicemapper.block.device: "/dev/xvdc"
devicemapper.pool.name: "swarm"
volume.plugin.enabled: true
volume.plugin.spec:
$brooklyn:entitySpec:
type: convoy-nfs-volume-plugin
brooklyn.config:
convoy.nfs.server: $brooklyn:entity("nfs-server").attributeWhenReady("host.subnet.address")
convoy.nfs.path: $brooklyn:entity("nfs-server").config("nfs.export.path")
convoy.vfs.path: "/swarm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment