Skip to content

Instantly share code, notes, and snippets.

View calebwashburn's full-sized avatar

Caleb Washburn calebwashburn

  • VMware
  • Phoenix, AZ
View GitHub Profile
---
# Source: antrea/templates/agent/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: antrea-agent
namespace: kube-system
labels:
app: antrea
---

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@calebwashburn
calebwashburn / README.md
Created August 23, 2022 14:58
Spring Music Deploy

Deploy Script

Pre-requistes

Copy files to deploy directory

From this gist copy

  • deploy.sh
  • manifest.yml

Ensure deploy.sh is executable

# install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install git lastpass-cli go
lpass login caleb.washburn@me.com
# get SSH keys from lastpass
mkdir -p ~/.ssh
lpass show --name ssh-public --notes > ~/.ssh/id_rsa.pub
lpass show --name ssh-private --notes > ~/.ssh/id_rsa
cloud_provider:
mbus: https://mbus:((mbus_bootstrap_password))@((internal_ip)):6868
properties:
agent:
mbus: https://mbus:((mbus_bootstrap_password))@0.0.0.0:6868
aws:
default_key_name: ((default_key_name))
default_security_groups: ((default_security_groups))
region: ((region))
iam_instance_profile: ((iam_instance_profile))
---
platform: linux
inputs:
- name: platform-automation-tasks
- name: config # contains download-file config file
- name: vars # variable files to be made available
optional: true
- name: secrets
# secret files to be made available
#!/bin/bash -e
if [ ! -z "$CA_CERT" ]
then
temp_pem=$(mktemp)
echo "${CA_CERT}" > $temp_pem
openssl x509 -in $temp_pem -inform PEM -out /usr/local/share/ca-certificates/custom.crt
update-ca-certificates
fi
# The inputs, outputs, params, filename, and filepath
# of this task file are part of its semantically versioned API.
# See our documentation for a detailed discussion of our semver API.
# See www.semver.org for an explanation of semantic versioning.
# code_snippet configure-director start yaml
---
platform: linux
inputs:
SET TERM ^ ;
ALTER PROCEDURE LIST_ESTIMATE_BY_CREATED_ON (
DATE1 Date,
DATE2 Date )
RETURNS (
"Estimate ID" Varchar(40) CHARACTER SET NONE,
"Customer" Varchar(72) CHARACTER SET NONE,
"Written On" Date,
RO_ID Integer,
!/bin/bash -e
PIVNET_TOKEN=$1
version=$(bosh interpolate ../config/versions/cf.yml --path /product-version)
glob=$(bosh interpolate ../config/versions/cf.yml --path /pivnet-file-glob)
slug=$(bosh interpolate ../config/versions/cf.yml --path /pivnet-product-slug)
mkdir -p cf-tcg
mkdir -p ../config/templates
mkdir -p ../config/defaults