Rhel Edge deployment using https://console.redhat.com/edge/fleet-management.
https://console.redhat.com/docs/api/edge
- Get offline token and save it to
~/rh-api-offline-token
vim ~/rh-api-offline-token
- Ensure there is an SSH Public Key at
~/.ssh/id_rsa.pub
ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa
- Copy the cluster variables example file and modify as needed
cp example.rhel-edge-vars.sh rhel-edge-vars.sh
vim rhel-edge-vars.sh
- For image-builder use the following template
cp example.image-builder-vars.sh image-builder-vars.sh
vim image-builder-vars.sh
TARGET ENDPOINT: https://console.redhat.com/insights/image-builder`
source image-builder-vars.sh && source authenticate-to-api.sh
scripts/create-image-builder.sh
- Create image via image builderscripts/get-image-builder-status.sh
- Get image builder statusscripts/download-image-builder-binary.sh
- Download image builder image
$ scripts/delete-image-builder.sh a69a269a-0dbd-4dfb-84a0-8426a205baef
The bootstrap install script calls the scripts below in order. If you would like to walk thru the script call the scripts below. TARGET ENDPOINT: https://console.redhat.com/edge/inventory
source rhel-edge-vars.sh && source authenticate-to-api.sh
scripts/authenticate-to-api.sh
- authenticate to rhel console apibash -x scripts/create-device-groups.sh
- Create device group on the redhat console websitebash -x scripts/create-image.sh
- Create and build rhel image on redhat console.bash -x scripts/get-build-status.sh
- Wait for build to completebash -x scripts/download-iso.sh
- Download ISO from redhat consolebash -x scripts/automatic_registration.sh
- Auto register vms so they will populate on https://console.redhat.com/insights/inventory/