Skip to content

Instantly share code, notes, and snippets.

View calebwashburn's full-sized avatar

Caleb Washburn calebwashburn

  • VMware
  • Phoenix, AZ
View GitHub Profile
@calebwashburn
calebwashburn / cloud-config.yml
Created September 22, 2016 19:24
vsphere cloud-config vm/disk types
vm_types:
- name: nano
cloud_properties:
ram: 512
cpu: 1
disk: 8192
- name: micro
cloud_properties:
ram: 1024
cpu: 1
@calebwashburn
calebwashburn / Concourse.yml
Last active January 25, 2018 16:13
Concourse with uaa and credhub
---
name: concourse
releases:
- name: concourse
version: ((concourse_version))
sha1: ((concourse_sha1))
url: https://bosh.io/d/github.com/concourse/concourse?v=((concourse_version))
- name: garden-runc
version: ((garden_runc_version))

Keybase proof

I hereby claim:

  • I am calebwashburn on github.
  • I am cwashburn (https://keybase.io/cwashburn) on keybase.
  • I have a public key ASAOk0KIfME_FwIoqeZV16tUSEtfAOfnNaOmGsFu9cDnWwo

To claim this, I am signing this object:

@calebwashburn
calebwashburn / concourse-uaa.yml
Last active February 1, 2018 15:20
Concourse with UAA integration
---
name: concourse
releases:
- name: concourse
- name: garden-runc
- name: postgres
- name: uaa
- name: credhub
@calebwashburn
calebwashburn / concourse-uaa.sh
Created February 1, 2018 15:19
Create Concourse team with UAA groups mapped
#!/bin/bash -e
map_group() {
token=$1
group=$2
uaa_host=$3
dn='ou=acme,ou=groups,dc=company,dc=net'
curl -k -H "Authorization: Bearer $token" -H "Content-Type: application/json" -d "{\"displayName\":\"$group\"}" ${uaa_host}/Groups > /dev/null
curl -k -H "Authorization: Bearer $token" -H "Content-Type: application/json" -d "{\"displayName\":\"$group\",\"externalGroup\":\"cn=$group,$dn\",\"origin\":\"ldap\"}" ${uaa_host}/Groups/External > /dev/null
@calebwashburn
calebwashburn / variable-ops.yml
Created March 13, 2018 18:37
sample ops file to add variables
---
- type: replace
path: /variables?/-
value:
name: postgres_password
type: password
- type: replace
path: /variables?/-
value:
name: token_signing_key
@calebwashburn
calebwashburn / concourse-3.10-credhub
Last active April 6, 2018 14:48
concourse-3.10-credhub
instance_groups:
- azs:
- ((az_name))
instances: 1
jobs:
- name: postgres
properties:
databases:
databases:
- name: atc
@calebwashburn
calebwashburn / opsman-uaa-client
Created June 27, 2018 16:35
opsman uaa client
uaac client add -i
Client ID: NEW_CLIENT_NAME
New client secret: DESIRED_PASSWORD
Verify new client secret: DESIRED_PASSWORD
scope (list): opsman.admin
authorized grant types (list): client_credentials
authorities (list): opsman.admin
access token validity (seconds): 43200
refresh token validity (seconds): 43200
redirect uri (list):
@calebwashburn
calebwashburn / credhub.yml
Created July 17, 2018 18:56
Deploying concourse + uaa + credhub
---
- type: replace
path: /instance_groups/name=web/jobs/name=atc/properties/credhub?
value:
client_id: concourse_to_credhub
client_secret: ((concourse_to_credhub_secret))
tls:
ca_cert:
certificate: ((atc_tls.ca))
url: https://((concourse_host_name)):8844
@calebwashburn
calebwashburn / product.yml
Created September 20, 2018 21:19
Test for configuration change
product-properties:
.properties.push_apps_manager_nav_links:
value:
- href: /marketplace
name: Marketplace
- href: https://docs.pivotal.io/pivotalcf/2-1/pas/intro.html
name: Docs
- href: /tools
name: Tools