Skip to content

Instantly share code, notes, and snippets.

View drnic's full-sized avatar
🏆
Platinum Status Level

Dr Nic Williams drnic

🏆
Platinum Status Level
View GitHub Profile
@drnic
drnic / output
Created February 25, 2014 15:47
BOSH deployment manifest structure for Cloud Foundry deployment
$ structure_digest ~/bosh-lite/manifests/cf-manifest.yml
.compilation.cloud_properties.name
.compilation.network
.compilation.reuse_compilation_vms
.compilation.workers
.director_uuid
.jobs[].instances
.jobs[].name
.jobs[].networks[].name
.jobs[].networks[].static_ips
@drnic
drnic / stages-for-an-ubuntu-openstack-stemcell.out
Created March 18, 2014 20:31
Rake tasks to display the stages to be used in bosh stemcells. Put the stemcell_debug file in /bosh/bosh-dev/lib/bosh/dev/tasks/stemcell_debug.rake
$ bundle exec rake stemcell:show_stages_os_image[ubuntu]
base_debootstrap
base_apt
bosh_dpkg_list
bosh_sysstat
bosh_sysctl
system_kernel
bosh_users
bosh_monit
bosh_ntpdate
+ local chroot=/mnt/stemcells/openstack/kvm/ubuntu/work/work/chroot
+ local 'script=
export PATH=/var/vcap/bosh/bin:$PATH
export HOME=/root
cd /var/vcap/bosh
cd /home/vcap/bosh-workspace/stemcells
gem env
@drnic
drnic / gist:9902595
Created March 31, 2014 21:18
Initial setup of Cloud Foundry
cf api https://TARGET
cf login -u admin -p admin
cf create-org everyone
cf target -o everyone
cf create-space development
cf target -s development
cf apps
@drnic
drnic / files
Last active August 29, 2015 14:00
camlistore wants gpg
# ./bin/camlistored -configfile=/var/vcap/jobs/camlistore/config/camlistore.json
2014/04/25 16:05:50 Starting camlistored version 0.7; Go go1.2.1 (linux/amd64)
2014/04/25 16:05:50 Using config file /var/vcap/jobs/camlistore/config/camlistore.json
Could not load server config: Failed to transform user config file "/var/vcap/jobs/camlistore/config/camlistore.json" into internal handler configuration: didn't find a key in "/root/.config/camlistore/identity-secring.gpg" for keyId ""; other keyIds in file = [FEC39D43]
# cat /var/vcap/jobs/camlistore/config/camlistore.json
{
"auth": "userpass:alice:secret",
"blobPath":"/var/vcap/store/camlistore",
"runIndex":true,
@drnic
drnic / bosh.help
Created May 1, 2014 22:09
The command line help for the `bosh` command
BOSH CLI helps you manage your BOSH deployments and releases.
Usage: bosh [<options>] <command> [<args>]
-c, --config FILE Override configuration file. Also can be overridden by BOSH_CONFIG environment variable. Defaults to $HOME/.bosh_config. Override precedence is command-line option, then environment variable, then home directory.
--[no-]color Toggle colorized output
-v, --verbose Show additional output
-q, --quiet Suppress all output
-n, --non-interactive Don't ask for user input
-N, --no-track Return Task ID and don't track
-P, --poll INTERVAL Director task polling interval
@drnic
drnic / abstract.md
Created May 5, 2014 14:44
Windy City Rails abstract: The New Era of Orchestration: From Docker to BOSH to Cloud Foundry - Dr Nic Williams

The New Era of Orchestration: From Docker to BOSH to Cloud Foundry

  • Where: Windy City Rails
  • When: September 4-5, 2014
  • Who: Dr Nic Williams, Stark & Wayne

Abstract

In 2014 and beyond, what patterns are emerging for your deployment solutions? How to orchestrate your cloud infrastructure? To use a cloud's orchestrator service, such as AWS Cloud Formation or OpenStack Heat? Or something that will work with multiple infrastructures - public and private - such as BOSH?

@drnic
drnic / Procfile
Last active August 29, 2015 14:01
trying to deploy ghost to cloud foundry
web: NODE_ENV=production npm start

Setup: I have a 3 node setup (the demo/vagrant-cluster extended to 3 nodes), and the issue also appears with 2 nodes.

When I ask the bootstrap node to leave, I cannot bring it back into the cluster.

All nodes report:

    2014/05/11 06:36:40 [ERR] agent: failed to sync remote state: rpc error: No cluster leader
@drnic
drnic / join-fail.log
Created May 13, 2014 00:58
consul cluster on AWS failing to maintain active connections: 1 bootstrap, 2 servers, 1 client
2014/05/13 00:56:46 [INFO] serf: EventMemberFailed: consul-aws-ec2-consul_server_z1-0 10.152.179.49
2014/05/13 00:56:46 [INFO] agent.rpc: Accepted client: 127.0.0.1:53719
2014/05/13 00:56:47 [INFO] serf: attempting reconnect to consul-aws-ec2-consul_server_z1-0 10.152.179.49
2014/05/13 00:56:47 [INFO] serf: EventMemberJoin: consul-aws-ec2-consul_server_z1-0 10.152.179.49
2014/05/13 00:56:48 [INFO] agent.rpc: Accepted client: 127.0.0.1:53721
2014/05/13 00:56:50 [INFO] agent.rpc: Accepted client: 127.0.0.1:53722
2014/05/13 00:56:52 [INFO] agent.rpc: Accepted client: 127.0.0.1:53723
2014/05/13 00:56:54 [INFO] serf: EventMemberFailed: consul-aws-ec2-consul_server_z1-0 10.152.179.49
2014/05/13 00:56:55 [INFO] agent.rpc: Accepted client: 127.0.0.1:53724
2014/05/13 00:56:57 [INFO] agent.rpc: Accepted client: 127.0.0.1:53725