Skip to content

Instantly share code, notes, and snippets.

@grkvlt
Last active April 10, 2017 23:01
Show Gist options
  • Save grkvlt/b4efca176b419a0313b54935d943d888 to your computer and use it in GitHub Desktop.
Save grkvlt/b4efca176b419a0313b54935d943d888 to your computer and use it in GitHub Desktop.
OpenShift Origin on Blue Box with daily repave
id: openshift
name: "openshift"
description: |
Creates an OpenShift Origin 1.4.1 cluster with load balanced master servers
on CentOS 7 virtual machines in an IBM Blue Box OpenStack cloud.
Runs a scheduled repave on two machines every day at 16h00.
location:
ibm-bluebox-lon-vpn-centos
services:
- type: openshift-origin-template
id: openshift-origin
name: "openshift-origin"
brooklyn.config:
# configure openshift
openshift.version: 1.4.1
# configure repave policy
openshift.repave.size: 2
openshift.repave.period: 1 day
openshift.repave.start: 11:30:00
# set cluster size
openshift.master.clusterSize: 2
openshift.etcd.clusterSize: 3
openshift.node.clusterSize: 5
# set machine config
openshift.master.minCores: 2
openshift.master.minRam: 2000
openshift.node.minCores: 2
openshift.node.minRam: 4000
openshift.etcd.minCores: 1
openshift.etcd.minRam: 2000
openshift.lb.minCores: 1
openshift.lb.minRam: 2000
# set shared machine details
openshift.domain: "openshift.local"
openshift.ssh.loginUser: "amp"
openshift.ssh.privateKeyFile: "~/.ssh/adk.pem"
# local access to openshift.local hosts
- type: empty-software-process
id: localhost
name: "localhost"
location: localhost
brooklyn.config:
openshift.configureHostsFile: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment