Request# | Activate Forms | REST API Endpoint | Activate Openshift role | Observations | Example |
---|---|---|---|---|---|
1 | Create/Delete Project | POST /apis/project.openshift.io/v1/projectrequests DELETE /apis/project.openshift.io/v1/projects |
activate-project | JSON schema defined here | Createcurl -XPOST -H "Authorization: Bearer $TOKEN" -H "Accept: application/json" -H "Content-Type: application/json" https://$API_URL:8443/apis/project.openshift.io/v1/projectrequests -d {JSON} Delete curl -XDELETE -H "Authorization: Bearer $TOKEN" -H 'Accept: application/json' https://$API_URL/apis/project.openshift.io/v1/projects/$PROJECT_NAME |
2 | Sync groups | POST /apis/user.openshift.io/v1/groups |
activate-groups-sync | Syncs AD groups with Openshift ones. JSON schema defined here |
TBC - Tomas to define exactly how we are going to do this. |
3 | Bind Role | `POST /apis/rbac.authorization.k8s.io/v1beta1/namespaces/$PROJECT_NAME/rolebin |
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
@font-face { | |
font-family: ""; | |
/* Add other properties here, as needed. For example: */ | |
/* | |
font-weight: 100 900; | |
font-style: normal italic; | |
*/ | |
src: url(data:application/octet-stream;base64,d09GMgABAAAAAIkEABEAAAABZMwAAIifAAEFYAAAAAAAAAAAAAAAAAAAAAAAAAAAGoEWG4GHIhyoDAZgAIlkCGwJnBURCAqDqiCC9HEBNgIkA5FUC4hsAAQgBYcfB6BZDIE9W4REcYRc91sVOei5balkI7jSUiObOzXM9NzGrxiNVraKsc2i2e0A09W/V8r+//9PPioyZhpI221DABHxihdighyybiQTgiOMmwxTwtQomSSMIDikaBD6ZHsMraI3EZcglpOTsHWewixaJTiW3HRHRW27SMdEHtwhEZmd+MSPJY2E9hTV6ajmlRBTY7s71eC/A5vMe3HzsY4WtLM1qcZ0lBnNLKwYJxpyMI3XHH7Ejs9VrZDtXMp3w4yONTVPt2JKYs1p+68m+7e2jvIwny9W9J+ePtCNrKxk3rgQ/DfyyV7QCNfIvsynP2wMSZkN4j+kSIqE0eD5qztx3CB7uZKKxRGBNz2Gz+S+sgtiHUK1cQRvT5LjmzCdVPovjc/WGLsGhKRUk2GPflJB38XzH1m9h/cJ8peJ+Xl+bn/OfW/jLdnIGD1AqWi7wYrZWMVHPnZjkVNSidQm2sBqYoB08x8cZMIuhJGEBEgY2fsyN1lAJuwwZKoMRVmKRZzVtlgcY4Q6imt3W59dv7V2bD/W96rgZoQFlPOXzMJtfy2tVCCkgQ/VYT7p1DLMnn/8aeIy/TJlGX72/dhK4zshpclOQojcObk0uTQZjAyiS0dz/5mXnWRpdrIUoA9Iyp4VxJZIncKWVVVZVTUAjnTm/0iWSSatgL2CBZHNZ3OSCcE9xKZ79ceuD9r// |
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
vmaccepteula | |
install --firstdisk --overwritevmfs --novmfsondisk | |
network --bootproto=dhcp | |
rootpw Password123!! | |
keyboard English | |
reboot | |
%firstboot --interpreter=busybox |
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
#!/bin/bash | |
# Get list of hosts and outstanding errata from Satellite | |
hammer --csv content-hosts --export --columns "Name,OS,Security Errata,Bug Fix Errata,Enhancement Errata" --file /var/www/html/pub/errata.all.csv.txt | |
# Now create an html file from the CSV file | |
html_file=/var/www/html/pub/errata.html | |
( echo "<html> | |
<head><title>Contents Hosts Outstanding Errata</title> | |
</head> |
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 python3 | |
import os | |
import json | |
ENV_LIST = dict(os.environ.items()) | |
VALUES = [{"key": k, "value": v, "secured": "true"} for k, v in ENV_LIST.items()] | |
LOCAL_VARS = json.dumps(VALUES, indent=4) | |
# Meant to be invoked in shell as '$ python3 env-to-json.py > local_vars.json' |
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
#!/bin/bash | |
# Help. | |
if [[ "$1" == "-h" || "$1" == "--help" ]]; then | |
echo 'Usage: teams-chat-post.sh "<webhook_url>" "<title>" "<color>" "<message>"' | |
exit 0 | |
fi | |
# Webhook or Token. | |
WEBHOOK_URL=$1 | |
if [[ "${WEBHOOK_URL}" == "" ]] |
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
/* | |
* locktest.c | |
* | |
* Lock a file (block until we have a lock), write a message to the file, and | |
* sleep for a while. If we run multiple of these at once in a loop, we can show | |
* that file system locking is working correctly. | |
* | |
* USAGE: | |
* locktest.exe FILENAME SECONDS MESSAGE NUMRUNS | |
* |
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
#!/bin/bash | |
# Author: Matt Owens <[email protected]> | |
# | |
# This script watches for messages in a specific log file | |
# | |
pids=$$ | |
FILE="$1" | |
PIPE="$2" |
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
ip_vs | |
ip_vs_rr | |
ip_vs_wrr | |
ip_vs_sh | |
nf_conntrack_ipv4 |
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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: kube-dash | |
namespace: kube-system | |
annotations: | |
kubernetes.io/ingress.class: traefik | |
spec: | |
rules: | |
- host: kube-dash.k8s.example.org |