Skip to content

Instantly share code, notes, and snippets.

View rkoster's full-sized avatar

Ruben Koster rkoster

View GitHub Profile
@rkoster
rkoster / migrate_blobs.sh
Last active December 18, 2015 01:39
Script for migrating blobs from one blob store to an other. This script expects a config/private.tmp.yml file which will be renamed to config/private.yml when blobs are downloaded. The contents for the new config/final.yml are hardcoded into the script. You should fill in your own target blobstore credentials
#!/bin/sh
# reset stuff
sudo rm -r .blobs
rm -r blobs
rm -r blobs_import
git checkout -- config/blobs.yml
git checkout -- config/final.yml
rm config/private.yml
@rkoster
rkoster / openstack-services-contrib
Created August 6, 2013 17:44
Services contrib sampel manifest
---
name: cf
director_uuid: <director-uuid>
releases:
- name: cf-release
version: latest
- name: cf-services-contrib
version: latest
@rkoster
rkoster / gist:7546242
Last active December 28, 2015 18:49 — forked from yudai/gist:7540823
module Bosh::OpenStackCloud
class ExconLoggingInstrumentor
REDACTED = "[REDACTED]"
def self.instrument(name, params = {}, &block)
params = params.dup
if params.has_key?(:headers) && params[:headers].has_key?('Authorization')
params[:headers] = params[:headers].dup
params[:headers]['Authorization'] = REDACTED
end
if params.has_key?(:password)
compilation:
cloud_properties:
name: random
network: cf1
reuse_compilation_vms: true
workers: 6
director_uuid: d235f4e9-fc81-4924-b331-3712f16611ec
jobs:
- instances: 1
name: ha_proxy_z1
@rkoster
rkoster / gist:8453995
Created January 16, 2014 12:15
Unable to upload final release blobs to s3
➜ cf-services-contrib-release git:(master) bosh create release --final
Syncing blobs...
Are you sure you want to generate final version? yes
Building FINAL release
-----------------------------------
Building packages
-----------------
Building atmos_gateway...
GOPATH: /home/cf-internet/bosh-workspace/repos/cf-acceptance-tests/gopath │····························
GOROOT: │····························
/usr/bin/go │····························
github.com/onsi/ginkgo 8004a15e410a927eadcd0d1cb336d390e1eee4f9 │····························
github.com/onsi/gomega 3da99a5a1412b006
@rkoster
rkoster / test
Created March 20, 2014 19:18
Run cloudfoundry/cf-acceptance-tests against bosh-lite
cat > integration_config.json <<EOF
{ "apps_domain": "10.244.0.34.xip.io" }
EOF
export ADMIN_USER=admin
export ADMIN_PASSWORD=admin
export CF_USER=cats-user
export CF_USER_PASSWORD=cats-user
export CF_ORG=cats-org
export CF_SPACE=cats-space
@rkoster
rkoster / mongodb_gateway.log
Created May 26, 2014 10:07
Misleading nats error. The actual problem is on line 3-7. The gateway was unable to connect to the uaa which turned out to be an dns issue.
{"timestamp":1401091322.861017,"message":"MongoaaS-Provisioner: Initializing"}
{"timestamp":1401091322.8612764,"message":"Connecting with NATS"}
{"timestamp":1401091513.6574829,"message":"error: Connection timed out - connect(2)
/var/vcap/packages/mongodb_gateway/.../gems/cf-uaa-lib-2.0.0/lib/uaa/http.rb:161:in `rescue innet_http_request'|
/var/vcap/packages/mongodb_gateway/.../gems/cf-uaa-lib-2.0.0/lib/uaa/http.rb:149:in `net_http_request'|
/var/vcap/packages/mongodb_gateway/.../gems/cf-uaa-lib-2.0.0/lib/uaa/http.rb:137:in `request'|
/var/vcap/packages/mongodb_gateway/.../gems/cf-uaa-lib-2.0.0/lib/uaa/token_issuer.rb:140:in `implicit_grant_with_creds'|
/var/vcap/packages/mongodb_gateway/.../gems/vcap_services_base-0.2.5/lib/base/http_handler.rb:41: in `refresh_client_auth_token'|
/var/vcap/packages/mongodb_gateway/.../gems/vcap_services_base-0.2.5/lib/base/http_handler.rb:56 in `cc_req_hdrs'|
/var/vcap/packages/mongodb_gateway/.../gems/vcap_services_base-0.2.5/lib/base/catalog_manager_v2.rb:44:in `initiali
@rkoster
rkoster / rebuild_bosh_lite
Created July 4, 2014 09:32
Rebuild bosh-lite
#!/bin/sh
cd ~/workspace/bosh-lite
vagrant suspend
vagrant destroy -f
vagrant up
say "please enter your root password" &
scripts/add-route
cd ~/workspace/stemcells
@rkoster
rkoster / delete-deployment
Last active August 29, 2015 14:03
C3CI jenkins jobs
#!bash -e
GITHUB_BASE_URL="${GIT_URL}/tree/${GIT_COMMIT}"
GITHUB_INF_URL="${GITHUB_BASE_URL}/infrastructures/${JOB_INFRASTRUCTURE_DIR}/cf"
echo "***********************"
export DESC="desc JOB_INFRASTRUCTURE_DIR: <a href='${GITHUB_INF_URL}'>$JOB_INFRASTRUCTURE_DIR</a>"
echo $DESC
echo "DESC=$DESC" > tmp.var
echo "***********************"