Skip to content

Instantly share code, notes, and snippets.

View tchughesiv's full-sized avatar
🏠
Working from home

Tommy Hughes IV tchughesiv

🏠
Working from home
View GitHub Profile
openssl genrsa -out apps-crc.testing.key 2048

openssl req -new -x509 \
    -key apps-crc.testing.key \
    -subj "/C=US/ST=CA/O=Acme, Inc./CN=*.apps-crc.testing" \
    -reqexts SAN \
    -config <(cat /etc/ssl/openssl.cnf \
        <(printf "\n[SAN]\nsubjectAltName=DNS:*.apps-crc.testing,DNS:console-openshift-console.apps-crc.testing")) \
    -out apps-crc.testing.ca.crt
{"level":"info","ts":"2020-03-25T23:49:38.599932647Z","logger":"cmd","msg":"Go Version: go1.12.12"}
{"level":"info","ts":"2020-03-25T23:49:38.60012725Z","logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
{"level":"info","ts":"2020-03-25T23:49:38.600133694Z","logger":"cmd","msg":"Version of operator-sdk: v0.14.1"}
{"level":"info","ts":"2020-03-25T23:49:38.600136627Z","logger":"cmd","msg":"Kie Operator Version: 7.8.0"}
{"level":"info","ts":"2020-03-25T23:49:38.60013874Z","logger":"cmd","msg":""}
{"level":"info","ts":1585180178.6005194,"logger":"leader","msg":"Trying to become the leader."}
{"level":"info","ts":1585180181.0680432,"logger":"leader","msg":"No pre-existing lock was found."}
{"level":"info","ts":1585180181.0768168,"logger":"leader","msg":"Became the leader."}
{"level":"info","ts":1585180183.5325613,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":"0.0.0.0:8383"}
APP_REGISTRY="tchughesiv"
APP_REGISTRY_ORG="kiecloud-operators"
INTERNAL_REGISTRY="registry.internal.com:5000/images"

oc adm catalog build \
    --appregistry-endpoint https://quay.io/cnr \
    --appregistry-org ${APP_REGISTRY} \
    --to="${INTERNAL_REGISTRY}/${APP_REGISTRY_ORG}:v1"
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: "2019-08-23T17:49:10Z"
generation: 1
name: kieapps.app.kiegroup.org
resourceVersion: "16691"
selfLink: /apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/kieapps.app.kiegroup.org
uid: 4ff51d25-c5ce-11e9-8888-06b2a7a37941
spec:
apiVersion: operators.coreos.com/v1alpha1
kind: InstallPlan
metadata:
generateName: install-
selfLink: >-
/apis/operators.coreos.com/v1alpha1/namespaces/tommy/installplans/install-98fwd
resourceVersion: '40199'
name: install-98fwd
uid: ea87c05f-c5d4-11e9-86a1-06b2a7a37941
creationTimestamp: '2019-08-23T18:36:27Z'
# OAB
ansible_service_broker_registry_name=dh
ansible_service_broker_registry_url=""
ansible_service_broker_registry_type=dockerhub
ansible_service_broker_registry_organization=ansibleplaybookbundle
ansible_service_broker_registry_tag=latest
ansible_service_broker_registry_whitelist=['.*-apb$']
@tchughesiv
tchughesiv / ansible hosts file example
Last active May 1, 2017 22:05
rhel ocp install notes
# Create an OSEv3 group that contains the masters and nodes groups
[OSEv3:children]
masters
nodes
# Set variables common for all OSEv3 hosts
[OSEv3:vars]
# SSH user, this user should allow ssh based auth without requiring a password
ansible_ssh_user=root
RUN yum clean all && yum-config-manager --disable \* &> /dev/null && \
### Add necessary Red Hat repos here
yum-config-manager --enable rhel-7-server-rpms,rhel-7-server-optional-rpms &> /dev/null && \
yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical --setopt=tsflags=nodocs && \
### EPEL needs
curl -o epel-release-latest-7.noarch.rpm -SL https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
--retry 9 --retry-max-time 0 -C - && \
rpm -ivh epel-release-latest-7.noarch.rpm && rm epel-release-latest-7.noarch.rpm && \
yum -y install --setopt=tsflags=nodocs yum-plugin-priorities && \
yum-config-manager --disable epel && \

Keybase proof

I hereby claim:

  • I am tchughesiv on github.
  • I am tchughesiv (https://keybase.io/tchughesiv) on keybase.
  • I have a public key ASAc9Gm-r2Whdc6-zfw4pDb-dSn2WDi7PoGpAODlfW7XJQo

To claim this, I am signing this object:

# Copyright (c) 2016-present Sonatype, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,