Skip to content

Instantly share code, notes, and snippets.

View eriknelson's full-sized avatar
🤘

Erik Nelson eriknelson

🤘
View GitHub Profile
+ '[' 1001 '!=' 1001 ']'
+ oc-login.sh
Attempting to login with a service account...
Logged into "https://kubernetes.default:443" as "system:serviceaccount:foo:apb-d708c176-57e3-41cd-98b0-ea34ca18d363" using the token provided.
You have one project on this server: "foo"
Using project "foo".
Welcome! See 'oc help' to get started.
+ touch /etc/apb/bind-creds
+ [[ -e /opt/apb/actions/provision.yaml ]]
+ ansible-playbook /opt/apb/actions/provision.yml --extra-vars '{"namespace":"foo","postgresql_database":"admin","postgresql_password":"admin","postgresql_user":"admin","postgresql_version":"9.5"}'
+ '[' 1001 '!=' 1001 ']'
+ oc-login.sh
Attempting to login with a service account...
Logged into "https://kubernetes.default:443" as "system:serviceaccount:foo:apb-f3f74be0-79d2-4979-a84d-02a72d2b2024" using the token provided.
You have one project on this server: "foo"
Using project "foo".
Welcome! See 'oc help' to get started.
+ touch /etc/apb/bind-creds
+ [[ -e /opt/apb/actions/provision.yaml ]]
+ [[ -e /opt/apb/actions/provision.yml ]]
@eriknelson
eriknelson / main.go
Last active July 8, 2017 02:47
listprocessing
package main
import (
"fmt"
"regexp"
"sync"
)
func _totallist() []string {
return []string{
{
"services": [
{
"name": "dockerhub-eriknelson-postgresql-demo-apb",
"id": "564b88d0b86bf60bed98971daa33040c",
"description": "PostgreSQL apb implementation",
"bindable": true,
"metadata": {
"displayName": "Postgresql demo",
"documentationUrl": "https://www.postgresql.org/docs/",
name: rhscl-postgresql-apb
image: eriknelson/rhscl-postgresql-apb
description: SCL PostgreSQL apb implementation
bindable: True
async: optional
metadata:
documentationUrl: https://www.postgresql.org/docs/
longDescription: An apb that deploys postgresql 9.4 or 9.5.
dependencies: ['registry.access.redhat.com/rhscl/postgresql-95-rhel7']
displayName: PostgreSQL (APB)
################################################################################
# Shared Parameters
################################################################################
_p: &_p
- name: postgresql_database
default: admin
type: string
title: PostgreSQL Database Name
required: true
- name: postgresql_password
diff --git a/pkg/broker/broker.go b/pkg/broker/broker.go
index 8f5f6445..dfb2a93e 100644
--- a/pkg/broker/broker.go
+++ b/pkg/broker/broker.go
@@ -470,8 +470,22 @@ func (a AnsibleBroker) Deprovision(instanceUUID uuid.UUID, async bool) (*Deprovi
return nil, err
}
- var token string
+ // NOTE, HACK: Check to see if there are any outstanding jobs for the
[2017-08-01T13:27:56.857Z] [DEBUG] NSK: raw decoded yaml: id: eea7e67f-910a-4812-87df-87560dcda4bb
name: hello-world-apb
image: cfchase/hello-world-apb
description: hello-world-apb description
bindable: False
async: optional
metadata:
displayName: Hello World (APB)
longDescription: A sample APB to deploy Hello World
dependencies: ['docker.io/ansibleplaybookbundle/hello-world:latest']
# /usr/share/xsessions/i3.desktop
[Desktop Entry]
Name=i3
Comment=improved dynamic tiling window manager
Exec=/home/ernelson/.dotfiles/nskd/start_i3.sh
Type=Application
X-LightDM-DesktopName=i3
DesktopNames=i3
Keywords=tiling;wm;windowmanager;window;manager;
#!/bin/bash
CONNAME="Raleigh (RDU2)"
CONID=$(nmcli con | grep Raleigh | awk '{print $3}')
ACTION=$1
if [[ "$ACTION" != "up" ]] && [[ "$ACTION" != "down" ]]; then
echo "ERROR: First argument must be 'up' or 'down'"
exit 1
elif [[ "$ACTION" == "up" ]]; then
echo "Connecting to RH VPN..."