Skip to content

Instantly share code, notes, and snippets.

@jlsherrill
Created November 21, 2024 15:07
Show Gist options
  • Save jlsherrill/741c0200311b287ffeb43ded3a73664e to your computer and use it in GitHub Desktop.
Save jlsherrill/741c0200311b287ffeb43ded3a73664e to your computer and use it in GitHub Desktop.
system instructions

Assign a system using:

RHC (preferred)

Prerequisites

The system is registered for subscriptions and insights:

rhc connect

Assign the template

Add the system to the template from the Template System's page

Or with the following curl command from the system itself:

API TBD

curl -X POST https://console.redhat.com/api/patch/v1/templates/$UUID/assign/  --cert /etc/pki/consumer/cert.pem --key /etc/pki/consumer/key.pam

Local Repo File

Prerequisites

Registered for subscriptions via:

rhc connect

or

subscription-manager register

Download the repo file

 curl -O /etc/yum.repos.d/template.repo  https://console.redhat.com/api/content-sources/v1/templates/$UUID/config.repo --cert /etc/pki/consumer/cert.pem --key /etc/pki/consumer/key.pam

Note that adding or a removing a repository from the template will not be reflected on the client until this file is redownloaded.

Ansible

Prerequisites

Registered for subscriptions via:

rhc connect

or

subscription-manager register

or using the rhc ansible module

Downloading the repo config


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment