Skip to content

Instantly share code, notes, and snippets.

View csterwa's full-sized avatar

Chris Sterling csterwa

View GitHub Profile
@csterwa
csterwa / gist:167b2fc1fffcd16af72b
Last active August 29, 2015 14:10
Cloud Foundry Contrib Services - BOSH Deployment Manifest
---
name: cf-services-contrib
director_uuid: [BOSH Director UUID from `bosh status`]
releases:
- name: cf-services-contrib
version: 1
compilation:
@csterwa
csterwa / gist:64526036a9342a3662634ef1572d33f7
Created October 18, 2016 14:49
Update East Service Registry with Peer in West
$ cf update-service service-registry -c '{"peers": [{"uri": "https://eureka-829ee860-9004-11e6-bdf4-0800200c9a66.west.example.com"}]}'
@csterwa
csterwa / gist:e25b9ad03769de85bfa5babc6aec214d
Created October 18, 2016 14:51
Update West Service Registry with Peer in East
$ cf update-service service-registry -c '{"peers": [{"uri": "https://eureka-4156d4d4-900a-11e6-ae22-56b6b6499611.east.example.com"}]}'
@csterwa
csterwa / gist:592d7c455ce9d0ca1f50e6534b77d391
Created October 18, 2016 14:52
Verify Service Registry Update Succeeded
$ cf service service-registry
Service instance: service-registry
Service: p-service-registry
Plan: standard
Description: Service Registry for Spring Cloud Applications
Documentation url: http://docs.pivotal.io/spring-cloud-services/
Dashboard: https://spring-cloud-broker.east.example.com/dashboard/p-service-registry/4156d4d4-900a-11e6-ae22-56b6b6499611
Last Operation
@csterwa
csterwa / config-server-client-token-renew.sh
Created April 28, 2017 20:58
Renews a Vault token via Spring Cloud Services Config Server client app
#!/bin/bash
APP=$1
if [ "$APP" = "" ]
then
echo "ERROR: Must provide application name that is accessible via `cf app [appname]` and bound to Config Server instance as first argument to script."
exit 1
fi
INTERVAL=$2
if [ "$INTERVAL" = "" ]
then