Skip to content

Scripts to Automate the builds of isos from edge management on console.redhat.com

Notifications You must be signed in to change notification settings

tosin2013/rhel-edge-management

Repository files navigation

RHEL Edge Deployment

Rhel Edge deployment using https://console.redhat.com/edge/fleet-management. 20220608160403

API Documentation

https://console.redhat.com/docs/api/edge

RHEL edge deployments using console.redhat.com

  1. Get offline token and save it to ~/rh-api-offline-token

Red Hat API Tokens

vim ~/rh-api-offline-token
  1. Ensure there is an SSH Public Key at ~/.ssh/id_rsa.pub
ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa
  1. 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
  1. For image-builder use the following template
cp example.image-builder-vars.sh image-builder-vars.sh
vim image-builder-vars.sh

Running image-builder install manually

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 builder
  • scripts/get-image-builder-status.sh - Get image builder status
  • scripts/download-image-builder-binary.sh - Download image builder image

To delete a image-builder image use the following

$ scripts/delete-image-builder.sh a69a269a-0dbd-4dfb-84a0-8426a205baef

Running bootstrap install manually

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 api
  • bash -x scripts/create-device-groups.sh - Create device group on the redhat console website
  • bash -x scripts/create-image.sh - Create and build rhel image on redhat console.
  • bash -x scripts/get-build-status.sh - Wait for build to complete
  • bash -x scripts/download-iso.sh - Download ISO from redhat console
  • bash -x scripts/automatic_registration.sh - Auto register vms so they will populate on https://console.redhat.com/insights/inventory/

Links

About

Scripts to Automate the builds of isos from edge management on console.redhat.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages