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
| #!ipxe | |
| set cluster_name ocp4 | |
| set domain_name example.com | |
| set fileserver 192.168.122.1:80 | |
| set kernel rhcos-live-kernel-x86_64 | |
| set initrd rhcos-live-initramfs.x86_64.img | |
| set rootfs rhcos-live-rootfs.x86_64.img |
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
| podman login registry.redhat.io | |
| export domain=quay.ralvares.local | |
| export QUAY=/data/quay | |
| mkdir -p $QUAY/postgres-quay | |
| mkdir $QUAY/clair | |
| mkdir -p $QUAY/config/extra_ca_certs | |
| mkdir $QUAY/storage |
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
| ## ADD Certificate | |
| registry=registry.example.local:5000 | |
| oc create configmap registry-bastion -n openshift-config --from-file=registry.example.local..5000=/registry/certs/domain.crt | |
| oc patch image.config.openshift.io/cluster --patch '{"spec":{"additionalTrustedCA":{"name":"registry-bastion"}}}' --type=merge | |
| https://access.redhat.com/solutions/5067531 | |
| This repository contains a curated set of image streams and templates for OpenShift. |
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
| Worker-3 | |
| ================================================== | |
| apiVersion: machineconfiguration.openshift.io/v1 | |
| kind: MachineConfigPool | |
| metadata: | |
| name: worker-3 | |
| spec: | |
| machineConfigSelector: | |
| matchExpressions: |
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
| kind: LDAPSyncConfig | |
| apiVersion: v1 | |
| url: ldap://ldap.local | |
| augmentedActiveDirectory: | |
| groupsQuery: | |
| derefAliases: never | |
| pageSize: 0 | |
| groupUIDAttribute: dn | |
| groupNameAttributes: [ cn ] | |
| usersQuery: |
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
| yum install openscap-utils | |
| wget -O - https://www.redhat.com/security/data/oval/v2/RHEL8/rhel-8.oval.xml.bz2 | bzip2 --decompress > rhel-8.oval.xml | |
| oscap-podman registry.access.redhat.com/ubi8 oval eval --report vulnerability.html rhel-8.oval.xml | |
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
| My environment is below: | |
| Centos8 | |
| libvirtd (libvirt) 7.0.0 | |
| libvirt network: default - Range 192.168.122.0/24 | |
| Domain and Single Node IP: *.sno.local 192.168.122.10 | |
| Extracting openshift-baremetal-install | |
| export VERSION=latest-4.8 |
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
| ### Namespace per tier ### | |
| oc new-project kiosk-backend | |
| oc new-project kiosk-frontend | |
| oc new-project kiosk-database | |
| oc new-app https://github.com/jankleinert/concession-kiosk-backend --name backend -n kiosk-backend | |
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
| ## Download Artifacts | |
| ## openshift-client | |
| curl -s https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.9/openshift-client-linux.tar.gz | tar zxvf - oc && mv oc /usr/local/bin | |
| ## butane | |
| wget https://mirror.openshift.com/pub/openshift-v4/clients/butane/latest/butane -O /usr/local/bin/butane && chmod +x /usr/local/bin/butane |
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
| USER=$(oc get AutomationController -n ansible-automation-platform -o=jsonpath='{.items..status.adminUser}') | |
| PASS=$(oc get -n ansible-automation-platform secret $(oc get AutomationController -n ansible-automation-platform -o=jsonpath='{.items..status.adminPasswordSecret}') -o go-template='{{index .data "password" | base64decode}}') | |
| FILENAME=$(cat manifest_ansible-tower.zip | base64) | |
| ROUTE=$(oc get AutomationController -n ansible-automation-platform -o=jsonpath='{.items..status.URL}') | |
| header="Content-Type: application/json" | |
| request_body=$(cat <<EOF | |
| { | |
| "eula_accepted": true, |