-
Install http://tmate.io
-
Configure
~/.tmux.conf
curl -sSL -o ~/.tmux.conf https://gist.github.com/gullitmiranda/e631f14a66a8ff658eb7/raw/fc3cfb7cd2ef1cc6e5d0de66b1e93b68652de866/tmux.conf
-
Start
tmate
server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
NAMESPACE=your_namespace_on_quay | |
TAG=the_tag | |
# https://quay.io/organization/your_namespace_on_quay?tab=applications | |
ACCESS_TOKEN=xxxxx | |
for repository in $(curl -s -X GET -H "Authorization: Bearer $ACCESS_TOKEN" "https://quay.io/api/v1/repository?namespace=$NAMESPACE" | jq -r '.repositories[].name' | sort); do | |
curl -s -X DELETE -H "Authorization: Bearer $ACCESS_TOKEN" https://quay.io/api/v1/repository/$NAMESPACE/$repository/tag/$TAG |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
images/ | |
layers/ | |
node_modules/ | |
.cache/ | |
manifests/ |
- https://docs.openshift.com/container-platform/4.3/operators/olm-restricted-networks.html
- docs bug to add procedure for creating the CatalogSource manually https://bugzilla.redhat.com/show_bug.cgi?id=1796464
- using
oc
from 4.4 as 4.3 apparently has a bug in theoc adm catalog
command(s)
oc patch OperatorHub cluster --type json \
-p '[{"op": "add", "path": "/spec/disableAllDefaultSources", "value": true}]'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Create mirror repo following disconnected instructions | |
### | |
# create dir | |
mkdir -p ~/registry1/{auth,certs,data} | |
# create cert | |
openssl req -newkey rsa:4096 -nodes -sha256 -keyout ~/registry1/certs/domain.key -x509 -days 365 -out ~/registry1/certs/domain.crt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
TMATE_URL=https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-amd64.tar.xz | |
VERSION_FILENAME=$(basename -s .tar.xz "${TMATE_URL}") | |
DEPLOY_DIR=/opt/tmate | |
sudo mkdir -p /opt/tmate | |
cd /opt/tmate | |
sudo curl -RLOJ "${TMATE_URL}" | |
sudo tar -xJvf "${VERSION_FILENAME}.tar.xz" | |
sudo ln -sf "${DEPLOY_DIR}/${VERSION_FILENAME}/tmate" "/usr/local/bin/tmate" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Description: This method prepares arguments and parameters for a job template | |
# | |
module Example | |
module Automate | |
module AutomationManagement | |
module AnsibleTower | |
module Service | |
module Provisioning | |
module StateMachines |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# / Infra / VM / Provisioning / Naming / default (vmname) | |
# | |
# Description: This is the default naming scheme | |
# 1. If VM Name was not chosen during dialog processing then use vm_prefix | |
# from dialog else use model and [:environment] tag to generate name | |
# 2. Else use VM name chosen in dialog | |
# 3. Add 3 digit suffix to vmname if more than one VM is being provisioned | |
# | |
module ManageIQ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Description: This method sends an e-mail when the following event is raised: | |
# Events: vm_provisioned | |
# | |
# Model Notes: | |
# 1. to_email_address - used to specify an email address in the case where the | |
# vm's owner does not have an email address. To specify more than one email | |
# address separate email address with commas. (I.e. [email protected],[email protected]) | |
# 2. from_email_address - used to specify an email address in the event the | |
# requester replies to the email |
NewerOlder