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 | |
# Add Docker CE Repo | |
sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo | |
# Configure Docker CE Repo | |
sudo sed -i '/^gpgkey=https:\/\/download.docker.com\/linux\/centos\/gpg/a module_hotfixes=True' /etc/yum.repos.d/docker-ce.repo | |
# Install Docker CE | |
sudo dnf install -y docker-ce |
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 | |
# Script to run Ansible Galaxy with podman like docker-compose | |
#GALAXY_NET="galaxy-net" | |
#SINGLE_POD="false" | |
SUDO="" | |
#if [[ `whoami` == root ]] |
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
#!/usr/bin/env bash | |
if [[ "$(whoami)" != "root" ]] | |
then | |
echo | |
echo "*** MUST BE root TO RUN THIS SCRIPT ***" | |
echo | |
exit 1 | |
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
# Authentication via GEOAxIS, RH SSO, & htpasswd | |
openshift_master_identity_providers=[{'name':'GEOAxIS', 'login':'true', 'challenge':'false', 'mappingMethod':'add', 'kind':'OpenIDIdentityProvider', 'client_id':'openshift', 'client_secret':'${OCP_SSO_CLIENT_SECRET:=}', 'urls':{'authorize':'https://${OCP_SSO_HOST}/auth/realms/OpenShift/protocol/openid-connect/auth?kc_idp_hint=${OCP_SSO_GEOAXIS_IDENTITY_PROVIDER_ALIAS:=GEOAxIS}', 'token':'https://${OCP_SSO_HOST}/auth/realms/OpenShift/protocol/openid-connect/token', 'userInfo':'https://${OCP_SSO_HOST}/auth/realms/OpenShift/protocol/openid-connect/userinfo'}, 'claims':{'id':['sub'], 'preferredUsername':['preferred_username'], 'name':['name'], 'email':['email']}}, {'name':'RHSSO', 'login':'true', 'challenge':'false', 'mappingMethod':'add', 'kind':'OpenIDIdentityProvider', 'client_id':'openshift', 'client_secret':'${OCP_SSO_CLIENT_SECRET:=}', 'urls':{'authorize':'https://${OCP_SSO_HOST}/auth/realms/OpenShift/protocol/openid-connect/auth', 'token':'https://${OCP_S |
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 | |
# | |
# Script to change the Route53 public DNS entry associated to this host | |
# with the new EIP assigned to this host when booted. | |
# | |
# Need to get EIP using the CLI since that IP is not actually assigned to the host | |
set -xe | |
INSTANCE_ID="" | |
HOSTED_ZONE="" |
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 | |
# DMC: Create Ignition files for each node based on the base ignition file and the fake root for each host | |
# This script is a work in progress | |
# Things that we have learned so far.... | |
# the bootstrap node I can set the network with the fake root ifcfg-ens3 | |
# that has failed every time for the masters even though m4.2xlarge is ens3 | |
# I've had to use the VPC DHCP option set |
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
export OCP_RELEASE='4.3.0-0.nightly-2019-12-24-120035' | |
export LOCAL_REGISTRY='openshift4-registry.redhatgovsa.io:5000' | |
export LOCAL_REPOSITORY='ocp4/openshift4' | |
export PRODUCT_REPO='openshift-release-dev' | |
export LOCAL_SECRET_JSON='/home/ec2-user/pull-secret.txt' | |
export RELEASE_NAME="ocp-release-nightly" | |
oc adm -a ${LOCAL_SECRET_JSON} release mirror \ | |
--from=quay.io/${PRODUCT_REPO}/${RELEASE_NAME}:${OCP_RELEASE} \ |
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
export OCP_RELEASE=4.2.12 | |
export LOCAL_REGISTRY='openshift4-registry.redhatgovsa.io:5000' | |
export LOCAL_REPOSITORY='ocp4/openshift4' | |
export PRODUCT_REPO='openshift-release-dev' | |
export LOCAL_SECRET_JSON='/home/ec2-user/pull-secret.txt' | |
export RELEASE_NAME="ocp-release" | |
oc adm -a ${LOCAL_SECRET_JSON} release mirror \ | |
--from=quay.io/${PRODUCT_REPO}/${RELEASE_NAME}:${OCP_RELEASE} \ |
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: rstudio-pv-claim | |
labels: | |
app: rstudio | |
spec: | |
accessModes: | |
- ReadWriteOnce |