This file contains 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: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: httpd-pv-claim | |
labels: | |
app: httpd-frontend | |
spec: | |
accessModes: | |
- ReadWriteMany |
This file contains 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 | |
DETAILS=$(nginx -V 2>&1) | |
# 2.1.1 Ensure only required modules are installed (Manual) | |
#echo $DETAILS | |
# 2.1.2 Ensure HTTP WebDAV module is not installed (Automated) | |
echo -n '2.1.2: ' | |
if [[ $DETAILS =~ 'http_dav_module' ]]; then echo 'fail'; else echo 'pass'; fi |
This file contains 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 -xe | |
SNOWBALL_IP='192.168.1.240' | |
S3="aws --profile snowballEdge --region snow --endpoint https://${SNOWBALL_IP}:8443 --ca-bundle /etc/pki/ca-trust/source/anchors/sbe.crt s3" | |
EC2="aws --profile snowballEdge --region snow --endpoint https://${SNOWBALL_IP}:8243 --ca-bundle /etc/pki/ca-trust/source/anchors/sbe.crt ec2" | |
BUCKET="redhat-dan" | |
IGN_CONFIGS='/home/danclark/openshift_clusters/snow/' | |
IGN_BASE='/home/danclark/openshift_clusters/install-config.yaml' |
This file contains 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
FROM registry.access.redhat.com/ubi9 | |
MAINTAINER Dan Clark <danclark@redhat.com> | |
LABEL description="IBM RTC SCM CLI" | |
COPY EWM-scmTools-Linux64-7.0.3.zip /usr/local | |
RUN dnf -y update && \ | |
dnf -y install unzip && \ | |
dnf clean all && \ | |
pushd /usr/local && \ |
This file contains 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: v1 | |
#kind: PersistentVolumeClaim | |
#metadata: | |
# name: httpd-pv-claim | |
# labels: | |
# app: httpd-frontend | |
#spec: | |
# accessModes: | |
# - ReadWriteOnce |
This file contains 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: mirror.openshift.io/v1alpha2 | |
kind: ImageSetConfiguration | |
archiveSize: 2 | |
storageConfig: | |
local: | |
path: /opt/data/mirror | |
mirror: | |
platform: | |
channels: | |
- name: stable-4.10 |
This file contains 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
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
stats socket /var/lib/haproxy/stats level admin | |
chroot /var/lib/haproxy | |
user haproxy | |
group haproxy | |
daemon | |
defaults |
This file contains 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 | |
az login | |
az account set --subscription "Azure subscription 1" | |
az account show | |
OCP_TENANT_ID=$(az account show --query tenantId -o tsv) | |
echo $OCP_TENANT_ID | |
OCP_SUBSCRIPTION_ID=$(az account show --query id -o tsv) | |
echo $OCP_SUBSCRIPTION_ID | |
PREFIX=$SUBSCRIPTION_CODE-ocp-dev |
This file contains 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 | |
# Tool to generate an ACS scan of container images needed for any particular operator/version | |
# Requires a running ACS system. | |
OC_MIRROR="${OC_MIRROR:-oc-mirror}" | |
OCP_VERSION="${OCP_VERSION:-4.11}" | |
OPERATOR_CATALOG="${OPERATOR_CATALOG:-registry.redhat.io/redhat/redhat-operator-index}" | |
OPERATOR="${OPERATOR:-compliance-operator}" | |
#OPERATOR_CHANNEL="" |
This file contains 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 -xe | |
REGEX="registry.redhat.io|registry.access.redhat.com|quay.io" | |
OCP_VER="4.11.13" | |
CONT_NAME="samples_export" | |
IMG=$(curl -s https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/${OCP_VER}/release.txt | grep cluster-samples-operator | awk '{print $2}') |
NewerOlder